[FFmpeg-user] ffmpeg-2.1.1 latest - raw data decode/encode appears broken

David Favor david at davidfavor.com
Fri Jan 3 00:48:42 CET 2014


Carl Eugen Hoyos wrote:
> David Favor <david <at> davidfavor.com> writes:
> 
>> This .VOB file contains three streams - simple audio 
>> + simple video...
>>
>> And a dvd_nav_packet stream which is a complex, 
>> template based, menu system to navigate to different 
>> points in the other .VOB files
>>
>> I'd like to break apart this .VOB file into audio + video 
>> + data files. Then edit the audio + video + reassemble 
>> the .VOB file with these three files. Seems very simple.
> 
> If you cannot use FFmpeg to "edit" your audio and video 
> stream (you did not explain why), edit it with whatever 
> applications you want to use, then remux the result together 
> with the original data stream into a new vob file.
> Why do you want to save the only stream that you do not want 
> to edit in an independent file?
> 
> Carl Eugen

You're asking a complex question.

What I'm after is to figure out if ffmpeg has a bug that requires
submitting to the devel list or if I have a syntax error in my
command. My reasons would take this thread off point.

Back to my original question... Given the following streams, what's
the correct syntax to extract the data stream.

ffmpeg -i "VTS_01_0.VOB" 2>&1 | egrep '^ *(Duration:|Stream)'
    Duration: 00:00:33.99, start: 0.300300, bitrate: 80296 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, smpte170m), 720x480 [SAR 8:9 DAR 4:3], 
max. 8000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:2[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s

So what's wrong with this syntax...

    ffmpeg -y -i VTS_01_0.VOB -map 0:0 -c:d copy -f data foo.data

Produces this error...

David-Favor-iMac> ffmpeg -y -i VTS_01_0.VOB -map 0:0 -c:d copy -f data foo.data
ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
   built on Dec 15 2013 16:10:57 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
   configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample 
--enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger 
--enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libass 
--enable-libbluray --enable-gnutls --enable-libfreetype --disable-indev=jack --disable-outdev=xv 
--mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 
--enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree 
--enable-libfaac
   libavutil      52. 48.101 / 52. 48.101
   libavcodec     55. 39.101 / 55. 39.101
   libavformat    55. 19.104 / 55. 19.104
   libavdevice    55.  5.100 / 55.  5.100
   libavfilter     3. 90.100 /  3. 90.100
   libavresample   1.  1.  0 /  1.  1.  0
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
[pcm_dvd @ 0x7f8609078e00] block_size has changed
Guessed Channel Layout for  Input Stream #0.2 : stereo
Input #0, mpeg, from 'VTS_01_0.VOB':
   Duration: 00:00:33.99, start: 0.300300, bitrate: 80296 kb/s
     Stream #0:0[0x1bf]: Data: dvd_nav_packet
     Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, smpte170m), 720x480 [SAR 8:9 DAR 
4:3], max. 8000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
     Stream #0:2[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s
Output #0, data, to 'foo.data':
   Metadata:
     encoder         : Lavf55.19.104
     Stream #0:0: Data: dvd_nav_packet
Stream mapping:
   Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpeg @ 0x7f8609018800] New subtitle stream 0:3 at pos:5228558 and DTS:5.3053s
[data @ 0x7f8609019400] Application provided invalid, non monotonically increasing dts to muxer in 
stream 0: 22651629 >= 22651629
[data @ 0x7f8609019400] Application provided invalid, non monotonically increasing dts to muxer in 
stream 0: 25669644 >= 25669644
[data @ 0x7f8609019400] Application provided invalid, non monotonically increasing dts to muxer in 
stream 0: 28687659 >= 28687659
size=    1381kB time=00:05:52.28 bitrate=  32.1kbits/s
video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead inf%
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)


More information about the ffmpeg-user mailing list