[FFmpeg-user] How to resolve conflicting errors in copying stream ??

Sub Phil phil4000n at gmail.com
Wed Feb 15 11:05:36 EET 2017


Hi,

Executing
ffmpeg -y -i VTS_01_2.VOB -c copy -t 50 VTS_01_2_CUT.VOB

Leads to this warning
Timestamps are unset in a packet for stream 0. This is deprecated and will
STOP WORKING in the future. Fix your code to set the timestamps properly

PROBLEM: how to lossless copy?

Now, if I try
ffmpeg -y -i VTS_01_2.VOB -c:v copy -t 50 -vf "setpts=PTS-STARTPTS"
VTS_01_2_CUT.VOB

Leads to this error:
Filtergraph 'setpts=PTS-STARTPTS' was defined for video output stream 0:0
but codec copy was selected.
Filtering and streamcopy cannot be used together.

Thanks

Phil


F:\>ffmpeg -y -i VTS_01_2.VOB -c copy -t 50 VTS_01_2_CUT.VOB
ffmpeg version N-83454-g3aae1ef Copyright (c) 2000-2017 the FFmpeg
developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda
--enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx
--enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig
--enable-frei0r --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable-libzimg --enable-lzma --enable-zlib
  libavutil      55. 46.100 / 55. 46.100
  libavcodec     57. 77.100 / 57. 77.100
  libavformat    57. 66.101 / 57. 66.101
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[mpeg2video @ 0000000000624100] Invalid frame dimensions 0x0.
    Last message repeated 5 times
Input #0, mpeg, from 'VTS_01_2.VOB':
  Duration: 00:18:28.51, start: 1083.420000, bitrate: 7749 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bottom
first), 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:2[0x1bf]: Data: dvd_nav_packet
[svcd @ 000000000061a380] VBV buffer size not set, using default size of
130KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
Output #0, svcd, to 'VTS_01_2_CUT.VOB':
  Metadata:
    encoder         : Lavf57.66.101
    Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bottom first),
720x480 [SAR 8:9 DAR 4:3], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
    Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[svcd @ 000000000061a380] Timestamps are unset in a packet for stream 0.
This is deprecated and will stop working in the future. Fix your code to
set the timestamps properly
frame= 1487 fps=0.0 q=-1.0 Lsize=   46458kB time=00:00:49.98
bitrate=7613.4kbits/s speed= 152x
video:44721kB audio:1167kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 1.240955%

F:\>


More information about the ffmpeg-user mailing list