LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-28-2010, 09:08 PM   #1
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 65
ffmpeg, trying to demux VOB, subtitles show up in video stream


I am trying to demux a set of VOB's from a DVD. I want to be able to extract any video/audio/subtitle/closed caption stream to a raw file. Then I want to wrap the streams that I want into an MKV file. (Probably the video, best quality audio, and all of the subtitles. But who knows, maybe all the streams...)

To extract the mpeg2 video from the VOB (which I pulled off the DVD using vobcopy) I am trying to use this command:
Code:
$ ffmpeg -i VTS_01_1.VOB -an -sn -vcodec copy -f rawvideo output.mpeg
The problem is, that when I open output.mpeg in something like VLC, the subtitles are still there. I can turn them on/off, but I don't understand why they are there. FYI: if I do -f mpeg2video, I get the same exact output, checked with an md5sum.

Here is a sample output:
Code:
$ ffmpeg -i VTS_01_1.VOB -an -sn -vcodec copy -f rawvideo output.mpeg
FFmpeg version UNKNOWN, Copyright (c) 2000-2010 Fabrice Bellard, et al.
  built on Jan 10 2010 17:47:18 with gcc 4.4.2 20091208 (prerelease)
  configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libtheora --enable-postproc --enable-shared --enable-pthreads --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-version3 --enable-nonfree
  libavutil     50. 7. 0 / 50. 7. 0
  libavcodec    52.45. 0 / 52.45. 0
  libavformat   52.46. 0 / 52.46. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 8. 0 /  0. 8. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[mpeg @ 0x824b390]max_analyze_duration reached
Input #0, mpeg, from 'VTS_01_1.VOB':
  Duration: 00:22:22.22, start: 0.045500, bitrate: 6399 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480 [PAR 32:27 DAR 16:9], 7500 kb/s, 27.48 fps, 59.94 tbr, 90k tbn, 59.94 tbc
    Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Stream #0.2[0x81]: Audio: ac3, 0 channels
Output #0, rawvideo, to 'output.mpeg':
    Stream #0.0: Video: mpeg2video, yuv420p, 720x480 [PAR 32:27 DAR 16:9], q=2-31, 7500 kb/s, 90k tbn, 29.97 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=32731 fps=428 q=-1.0 Lsize=  878592kB time=1361.26 bitrate=5287.3kbits/s    
video:878592kB audio:0kB global headers:0kB muxing overhead 0.000000%
I'm especially curious about that "max_analyze_duration reached" line.
 
Old 01-29-2010, 08:41 AM   #2
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Original Poster
Rep: Reputation: 65
Ugg. I did a somewhat equivalent operation with mplayer/mencoder and the same thing happend! The subtitles are still present in what should be a pure video stream.

Code:
$ mencoder VTS_01_1.VOB -ovc copy -of rawvideo -nosound -o mencoderouput.mpeg
And here is the beginning of the output:
Code:
$ mencoder VTS_01_1.VOB -ovc copy -of rawvideo -nosound -o mencoderouputx.mpeg
MEncoder SVN-r30325-4.4.2 (C) 2000-2009 MPlayer Team
142 audio & 332 video codecs
success: format: 0  data: 0x0 - 0x3ffff800
MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 3)  29.970 fps  7500.0 kbps (937.5 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.970  ftime:=0.0334
videocodec: framecopy (720x480 24bpp fourcc=10000002)
Pos:   0.2s      5f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.3s      7f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.5s     12f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.

1 duplicate frame(s)!
Pos:   0.5s     13f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.7s     17f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to burn subtitles : issues in both Avidemux and ffmpeg ordealbyfire83 Linux - Software 1 07-06-2009 04:12 AM
ffmpeg - Unsupported codec for output stream #0.0 yitzle Linux - Software 4 01-30-2008 04:37 AM
mplayer does not show film's subtitles dark_angel Linux - Software 1 09-07-2007 06:35 AM
converting vob to xvid using ffmpeg schneidz Linux - Software 3 12-07-2006 03:03 PM
Xine Doesnt Play Any Video (no Demux Plugin) kromatic Linux - Software 8 11-25-2004 05:19 PM


All times are GMT -5. The time now is 01:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration