Re: [MEncoder-users] subtitles disappear with mencoder
Assuming you are doing something like this:
mencoder -oac copy \ -ovc lavc \ -lavcopts vcodec=mpeg4:mbd=2:autoaspect:v4mv:trell:vbitrate=1800 \ -ofps 24000/1001 \ -alang jp \ -sid 0 \ -o keiko-kitagawa-rocks.avi dvd://1
Yes, the subs should be rendered into the output video stream. Unless you see some interesting message being spit out by mencoder?
ah, sorry, i included the output from my command in an attachment, but i wasn't sure how this list handles attachments or if it would go through correctly. for my simplest test case, here's how i run mplayer and mencoder: mplayer dvd://16 -aid 128 -sid 0 -v -nosound mencoder dvd://16 -aid 128 -sid 0 -nosound -ovc lavc -o out.avi -v (i have a much more complex script that will come up with particular parameters, but to keep the error case simple, i've left all those options out.) with these commands, mplayer will display subtitles, but out.avi does not have them. also, like i said earlier, if i do the same thing with another dvd like The Matrix, the subtitles appear in both cases. i haven't been able to see any errors or indication that subtitles were being ignored in the output, but i've appended mencoder's listing at the end of this email. thanks, -steve diverdi -sdiverdi@cs.ucsb.edu ---------- sdiverdi@virtuality [02:31 AM] ~/tmp/dvd 192 > mencoder dvd://16 -aid 128 -sid 0 -nosound -ovc lavc -o out.avi -v MEncoder 1.0pre7try2-3.4.3 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 1) Detected cache-line size is 64 bytes CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE File not found: 'frameno.avi' Failed to open frameno.avi init_freetype get_path('font/font.desc') -> '/home/sdiverdi/.mplayer/font/font.desc' Font /home/sdiverdi/.mplayer/font/font.desc loaded successfully! (206 chars) Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay get_path('DVDKeys') -> '/home/sdiverdi/.mplayer/DVDKeys' Reading disc structure, please wait... There are 31 titles on this DVD. There are 29 chapters in this DVD title. There are 1 angles in this DVD title. DVD successfully opened. [open] audio stream: 0 audio format: ac3 (stereo) language: en aid: 128 [open] audio stream: 1 audio format: ac3 (5.1/6.1) language: en aid: 129 [open] audio stream: 2 audio format: ac3 (stereo) language: en aid: 130 [open] number of audio channels on disk: 3. [open] subtitle ( sid ): 0 language: en [open] number of subtitles on disk: 1 DVD start cell: 0 pack: 0x0-0x22517 DVD start=0 end=2828696 success: format: 0 data: 0x0 - 0x594cc000 DVD Seek! lba=0x0 cell=0 packs: 0x0-0x22517 Angle-seek synced by cell/vob IDN search! Checking for YUV4MPEG2 ASF_check: not ASF guid! Checking for Nullsoft Streaming Video Checking for NuppelVideo Checking for REAL Checking for SMJPEG Searching demuxer type for filename dvd://16 ext: (null) Checking for MOV Checking for VIVO header block 1 size: 0 DVD Seek! lba=0x0 cell=0 packs: 0x0-0x22517 Angle-seek synced by cell/vob IDN search! AVS: avs_check_file - attempting to open file dvd://16 AVS: File is too big, aborting... Checking for PVA Checking for MPEG-TS... TRIED UP TO POSITION 68365, FOUND 47, packet_size= 0, SEEMS A TS? 0 DVD Seek! lba=0x21 cell=0 packs: 0x0-0x22517 Angle-seek synced by cell/vob IDN search! DVD Seek! lba=0x0 cell=0 packs: 0x0-0x22517 Angle-seek synced by cell/vob IDN search! Checking for LMLM4 Stream Format Invalid packet in LMLM4 stream: ch=0 size=1140851708 LMLM4 Stream Format not found system stream synced at 0xD (0)! ==> Found video stream: 0 dvd_next_cell: next1=0x0 dvd_next_cell: next2=0x0 dvd_next_cell: next3=0x1 dvd_next_cell: next1=0x1 dvd_next_cell: next2=0x1 dvd_next_cell: next3=0x2 dvd_next_cell: next1=0x2 dvd_next_cell: next2=0x2 dvd_next_cell: next3=0x3 dvd_next_cell: next1=0x3 dvd_next_cell: next2=0x3 dvd_next_cell: next3=0x4 dvd_next_cell: next1=0x4 dvd_next_cell: next2=0x4 dvd_next_cell: next3=0x5 dvd_next_cell: next1=0x5 dvd_next_cell: next2=0x5 dvd_next_cell: next3=0x6 dvd_next_cell: next1=0x6 dvd_next_cell: next2=0x6 dvd_next_cell: next3=0x7 dvd_next_cell: next1=0x7 dvd_next_cell: next2=0x7 dvd_next_cell: next3=0x8 dvd_next_cell: next1=0x8 dvd_next_cell: next2=0x8 dvd_next_cell: next3=0x9 dvd_next_cell: next1=0x9 dvd_next_cell: next2=0x9 dvd_next_cell: next3=0xA dvd_next_cell: next1=0xA dvd_next_cell: next2=0xA dvd_next_cell: next3=0xB dvd_next_cell: next1=0xB dvd_next_cell: next2=0xB dvd_next_cell: next3=0xC dvd_next_cell: next1=0xC dvd_next_cell: next2=0xC dvd_next_cell: next3=0xD dvd_next_cell: next1=0xD dvd_next_cell: next2=0xD dvd_next_cell: next3=0xE DVD Seek! lba=0x159451 cell=14 packs: 0x133835-0x15E731 Angle-seek synced by cell/vob IDN search! ==> Found audio stream: 128 ==> Found audio stream: 130 ==> Found audio stream: 129 ==> Found subtitle: 0 ==> Found subtitle: 1 dvd_next_cell: next1=0x0 dvd_next_cell: next2=0x0 dvd_next_cell: next3=0x1 dvd_next_cell: next1=0x1 dvd_next_cell: next2=0x1 dvd_next_cell: next3=0x2 dvd_next_cell: next1=0x2 dvd_next_cell: next2=0x2 dvd_next_cell: next3=0x3 dvd_next_cell: next1=0x3 dvd_next_cell: next2=0x3 dvd_next_cell: next3=0x4 dvd_next_cell: next1=0x4 dvd_next_cell: next2=0x4 dvd_next_cell: next3=0x5 dvd_next_cell: next1=0x5 dvd_next_cell: next2=0x5 dvd_next_cell: next3=0x6 dvd_next_cell: next1=0x6 dvd_next_cell: next2=0x6 dvd_next_cell: next3=0x7 dvd_next_cell: next1=0x7 dvd_next_cell: next2=0x7 dvd_next_cell: next3=0x8 dvd_next_cell: next1=0x8 dvd_next_cell: next2=0x8 dvd_next_cell: next3=0x9 dvd_next_cell: next1=0x9 dvd_next_cell: next2=0x9 dvd_next_cell: next3=0xA dvd_next_cell: next1=0xA dvd_next_cell: next2=0xA dvd_next_cell: next3=0xB dvd_next_cell: next1=0xB dvd_next_cell: next2=0xB dvd_next_cell: next3=0xC dvd_next_cell: next1=0xC dvd_next_cell: next2=0xC dvd_next_cell: next3=0xD dvd_next_cell: next1=0xD dvd_next_cell: next2=0xD dvd_next_cell: next3=0xE dvd_next_cell: next1=0xE dvd_next_cell: next2=0xE dvd_next_cell: next3=0xF dvd_next_cell: next1=0xF dvd_next_cell: next2=0xF dvd_next_cell: next3=0x10 dvd_next_cell: next1=0x10 dvd_next_cell: next2=0x10 dvd_next_cell: next3=0x11 dvd_next_cell: next1=0x11 dvd_next_cell: next2=0x11 dvd_next_cell: next3=0x12 dvd_next_cell: next1=0x12 dvd_next_cell: next2=0x12 dvd_next_cell: next3=0x13 dvd_next_cell: next1=0x13 dvd_next_cell: next2=0x13 dvd_next_cell: next3=0x14 dvd_next_cell: next1=0x14 dvd_next_cell: next2=0x14 dvd_next_cell: next3=0x15 dvd_next_cell: next1=0x15 dvd_next_cell: next2=0x15 dvd_next_cell: next3=0x16 dvd_next_cell: next1=0x16 dvd_next_cell: next2=0x16 dvd_next_cell: next3=0x17 dvd_next_cell: next1=0x17 dvd_next_cell: next2=0x17 dvd_next_cell: next3=0x18 dvd_next_cell: next1=0x18 dvd_next_cell: next2=0x18 dvd_next_cell: next3=0x19 dvd_next_cell: next1=0x19 dvd_next_cell: next2=0x19 dvd_next_cell: next3=0x1A dvd_next_cell: next1=0x1A dvd_next_cell: next2=0x1A dvd_next_cell: next3=0x1B dvd_next_cell: next1=0x1B dvd_next_cell: next2=0x1B dvd_next_cell: next3=0x1C DVD Seek! lba=0x2B28A3 cell=28 packs: 0x2B246E-0x2B2998 Angle-seek synced by cell/vob IDN search! --- END OF CELL !!! --- dvd_next_cell: next1=0x1C dvd_next_cell: next2=0x1C MPEG Stream reached EOF ds_fill_buffer: EOF reached (stream: video) DVD Seek! lba=0x0 cell=0 packs: 0x0-0x22517 Angle-seek synced by cell/vob IDN search! MPEG-PS file format detected. Searching for sequence header... OK! VIDEO: MPEG2 720x480 (aspect 3) 29.970 fps 9012.0 kbps (1126.5 kbyte/s) [V] filefmt:2 fourcc:0x10000002 size:720x480 fps:29.97 ftime:=0.0334 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1 ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES) Trying filter chain: expand lavc Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale expand lavc The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2)) ========================================================================== Writing AVI header... ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. VDec: vo config request - 720 x 480 (preferred csp: Planar YV12) Trying filter chain: expand lavc VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. VO Config (720x480->854x480,flags=0,'MPlayer',0x32315659) REQ: flags=0x401 req=0x0 videocodec: libavcodec (720x480 fourcc=34504d46 [FMP4]) *** [lavc] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes *** [expand] Direct Rendering mp_image_t, 720x480x12bpp YUV planar, 518400 bytes Pos: 0.0s 1f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0] A/Vms 0/34 D/B/S 0/1/0 DVD sub: len=2019 v_pts=0.033 s_pts=3007.538 DVD sub: len=479 v_pts=0.033 s_pts=3007.538 *** [lavc] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes *** [expand] Direct Rendering mp_image_t, 720x480x12bpp YUV planar, 518400 bytes Pos: 0.0s 2f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0] A/Vms 0/24 D/B/S 0/2/0 ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. 1 duplicate frame(s)! Pos: 0.1s 3f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0] A/Vms 0/28 D/B/S 1/2/0 *** [lavc] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes *** [expand] Direct Rendering mp_image_t, 720x480x12bpp YUV planar, 518400 bytes --------
On Wed, 16 Nov 2005 11:18:50 -0800 (PST) Stephen DiVerdi <sdiverdi@cs.ucsb.edu> wrote:
mencoder dvd://16 -aid 128 -sid 0 -nosound -ovc lavc -o out.avi -v
Well, that *should* work. You can also try adding "-vf expand=::::1". You should really try with the CVS version before reporting.
participants (2)
-
RC -
Stephen DiVerdi