[MPlayer-users] Re: Adding subtitles to .mpg for DVD
Reshat Sabiq
sabiq at csociety.org
Sat May 6 23:29:20 CEST 2006
RC <rcooley <at> spamcop.net> writes:
> Sounds like a broken audio frame. I'll bet -afm libmad will fix that
> for you.
>
Here's my command line. It looks like -afm libmad was discarded for some
reason, even though i do have those .so's in /usr/lib:
/usr/lib/libmad.so.0.2.1
/usr/lib/libmad.so.0
The problem is that the last half a second
(in this case, from 10.2 to 10.7
seconds) has corrupted audio that causes a buzz.
That's probably why my Windows
movie editor crashes when trying to open that episode for editing.
I'd appreciate any suggestions on cutting out the last half a second
of a file, which i'll look into now, or on how to get libmad to take effect.
$ mencoder -utf8 -font /usr/share/mplayer/font/arialuni.ttf -sub sub.sub \
> -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd \
> -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:\
> vrc_buf_size=1835:vrc_maxrate=9300:vbitrate=9300:keyint=18:acodec=ac3:\
> abitrate=192:aspect=4/3 -ofps 30000/1001 -afm libmad \
> -o filee4.mpg file.mpg
MEncoder dev-CVS--4.0.2 (C) 2000-2005 MPlayer Team
CPU: Intel (Family: 6, Stepping: 8)
Detected cache-line size is 64 bytes
MMX2 supported but disabled
SSE2 supported but disabled
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX SSE
86 audio & 200 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
/usr/share/mplayer/font/arialuni.ttf doesn't look like a font
description, ignoring.
Cannot load font: /usr/share/mplayer/font/arialuni.ttf
success: format: 0 data: 0x0 - 0x8a0000
MPEG-PS file format detected.
VIDEO: MPEG2 704x480 (aspect 2) 29.970 fps 9300.0 kbps (1162.5 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:704x480 fps:29.97 ftime:=0.0334
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 2.0 (stereo) 48000 Hz 256.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
SUB: Detected subtitle file format: mpsub
SUB: Read 1 subtitles.
PACKET SIZE: 2048 bytes
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 704 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
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))
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/0ch/??...
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Writing AVI header...
Limiting audio preload to 0.4s
Increasing audio density to 4
VDec: vo config request - 704 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (704x480 fourcc=3267706d [mpg2])
Pos: 0.0s 1f ( 4%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
[mpeg2video @ 0x858b890]rc buffer underflowin 0mb A-V:0.003 [0:0]
1 duplicate frame(s)!
INITIAL DELAY of 0 frames 16fps Trem: 0min 0mb A-V:0.061 [0:191]
Pos: 0.8s 23f (10%) 16fps Trem: 0min 4mb A-V:0.067 [0:191]
Skipping frame!
Pos: 10.4s 314f (100%) 41fps Trem: 0min 11mb A-V:-0.020 [9009:191]
Flushing video frames
Writing AVI index...
Overhead: 1.464% (175404 / 11983572)
Fixing AVI header...
Video stream: 9009.443 kbit/s (1126180 bps) size: 11723988 bytes 10.410 secs
314 frames
Audio stream: 192.000 kbit/s (23999 bps) size: 259584 bytes 10.816 secs
$
More information about the MPlayer-users
mailing list