[FFmpeg-user] Timestamps are unset ... Fix your code

sean darcy seandarcy2 at gmail.com
Sun May 22 18:59:00 CEST 2016


I'm trying to copy the last section of a VOB, but I get an odd warning 
about timestamps:

[svcd @ 0x1d91760] 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

Is there anything I should do, or is this a warning to the ffmpeg devs?

But it seems to work, even with 0x0 frame size and no VBV buffer:

ffmpeg -ss 00:19:30 -i VTS_01_4.VOB -c:a:0 copy -c:v:0 copy 
-avoid_negative_ts auto  ../../out4A.VOB
ffmpeg version 3.0.git Copyright (c) 2000-2016 the FFmpeg developers
   built with gcc 5.3.1 (GCC) 20151207 (Red Hat 5.3.1-2)
   configuration: --prefix=/usr --bindir=/usr/bin 
--datadir=/usr/share/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man 
--shlibdir=/usr/lib64 --extra-cflags='-Ofast -march=native -fopenmp 
-mtune=native -fomit-frame-pointer -pipe' --extra-ldflags= 
--enable-static --enable-shared --enable-gray --enable-gpl 
--enable-nonfree --enable-version3 --enable-avdevice --enable-avcodec 
--enable-avformat --enable-avutil --enable-swresample --enable-swscale 
--enable-postproc --enable-avfilter --enable-avresample 
--enable-pthreads --enable-x11grab --enable-vdpau 
--enable-hardcoded-tables --enable-avisynth --enable-frei0r 
--enable-libfdk-aac --enable-libgsm --enable-libmp3lame 
--enable-libopencore-amrwb --enable-libopencv --enable-libopenjpeg 
--enable-libopus --enable-librtmp --enable-libschroedinger 
--enable-libsoxr --enable-libspeex --enable-libtheora 
--enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis 
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libxvid 
--enable-zlib --disable-debug --cpu=amdfam10 --arch=x86_64 --enable-pic 
--enable-opengl --enable-openssl
   libavutil      55. 19.100 / 55. 19.100
   libavcodec     57. 31.100 / 57. 31.100
   libavformat    57. 29.101 / 57. 29.101
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 40.102 /  6. 40.102
   libavresample   3.  0.  0 /  3.  0.  0
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
[mpeg2video @ 0x1d905a0] Invalid frame dimensions 0x0.
     Last message repeated 8 times
Input #0, mpeg, from 'VTS_01_4.VOB':
   Duration: 25:12:15.54, start: 5080.509411, bitrate: 94 kb/s
     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, 
smpte170m), 720x480 [SAR 8:9 DAR 4:3], max. 8500 kb/s, 29.97 fps, 29.97 
tbr, 90k tbn, 59.94 tbc
     Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
     Stream #0:2[0x1bf]: Data: dvd_nav_packet
[svcd @ 0x1d91760] 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 '../../out4A.VOB':
   Metadata:
     encoder         : Lavf57.29.101
     Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR 4:3], 
q=2-31, max. 8500 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
     Stream #0:1: Audio: ac3, 48000 Hz, stereo, 224 kb/s
Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[svcd @ 0x1d91760] 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=16267 fps=3315 q=-1.0 Lsize=  363900kB time=00:09:02.85 
bitrate=5491.5kbits/s speed= 111x
video:344584kB audio:14842kB subtitle:0kB other streams:0kB global 
headers:0kB muxing overhead: 1.244807%
[video at sixcore VIDEO_TS]$



More information about the ffmpeg-user mailing list