[Ffmpeg-devel] [patch] Allow demuxing of subtitle streams from VOBs

Borat borat
Tue Oct 17 05:23:40 CEST 2006


Hi,

the attached patch allows FFmpeg to demux dvdsub subtitle streams from
a VOB file and store them in a format known as VobSub (which is a stub
VOB and usually has the .sub file suffix).

Current behaviour:
ffmpeg -i VTS_01_1.VOB -vn -an en.sub.vob -scodec copy -newsubtitle
[banner]
Seems that stream 0 comes from film source: 25.00 (25025/1001) -> 25.00 (25/1)
Input #0, mpeg, from 'VTS_01_1.VOB':
  Duration: 00:02:19.3, start: 0.287267, bitrate: 7215 kb/s
  Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576, 8700 kb/s, 25.00 fps(r)
  Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, 256 kb/s
  Stream #0.2[0x20]: Subtitle: dvdsub
No audio or video streams available

After applying the patch:
ffmpeg -i VTS_01_1.VOB -vn -an en.sub.vob -scodec copy -newsubtitle
[banner]
Seems that stream 0 comes from film source: 25.00 (25025/1001) -> 25.00 (25/1)
Input #0, mpeg, from 'VTS_01_1.VOB':
  Duration: 00:02:19.3, start: 0.287267, bitrate: 7215 kb/s
  Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576, 8700 kb/s, 25.00 fps(r)
  Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, 256 kb/s
  Stream #0.2[0x20]: Subtitle: dvdsub
Note: Output file will not contain a video or audio stream
Output #0, vob, to 'en.sub.vob':
  Stream #0.0: Subtitle: dvdsub
Stream mapping:
  Stream #0.2 -> #0.0
[some buffer underflow warnings may appear]
size=     178kB time=135.2 bitrate=  10.8kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead 1.#INF00%

The content of the above last output line should be corrected in
regards to the % overhead and to add a "subtitle:..kB" info - it
should read

video:0kB audio:0kB subtitle:178kB global headers:0kB muxing overhead 0.000000%

It would be great if somebody who has more C experience than I could
provide a patch for that.


-- 
regards,
B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.patch
Type: application/octet-stream
Size: 452 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061017/5bf4db44/attachment.obj>



More information about the ffmpeg-devel mailing list