[MPlayer-users] MEncoder: my avi output file has no audio (long)
Ivo
sagena at email.it
Fri Oct 1 13:30:16 CEST 2004
Hi,
I worked encoding a dvd using these couple of commands:
mencoder dvd://1 -dvd-device /home/prova/DVD/UNDERWORLD \
-aid 129 -info name=Underworld:genre=Fantasy -oac lavc -ovc lavc \
-lavcopts acodec=ac3:abitrate=128:vcodec=mpeg4:vbitrate=1487:v4mv:\
autoaspect:trell:mbd=2:dia=6:keyint=125:vpass=1 \
-vf crop=720:432:0:72,scale=1024:-2 -sws 2 -o /dev/null
mencoder dvd://1 -dvd-device /home/prova/DVD/UNDERWORLD \
-aid 129 -info name=Underworld:genre=Fantasy -oac lavc -ovc lavc \
-lavcopts acodec=ac3:abitrate=128:vcodec=mpeg4:vbitrate=1487:v4mv:\
autoaspect:trell:mbd=2:dia=6:keyint=125:vpass=2 \
-vf crop=720:432:0:72,scale=1024:-2 -sws 2 \
-o '[DIVX UHQ ITA] Underworld.avi'
but the result is an avi file that has no audio.
If I encode only 1 chapter (I only added "-chapter 2-2") all works well, the volume
is quite low but I can play it correctly with mplayer and xine.
I'm not able to understand where I wrong so please can someone help me?
Thanks
Ivo
Follow the output of encoding and playing commands.
OUTPU OF MPLAYER:
MPlayer 1.0pre5-3.3.4 (C) 2000-2004 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 802.6 MHz
(Family: 6, Stepping: 3)
Detected cache-line size is 32 bytes
MMX2 supported but disabled
SSE supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/prova/.mplayer/config
Warning unknown option vo_driver at line 3
[cfg] read config file: /home/prova/.mplayer/gui.conf
Reading config file /home/prova/.mplayer/gui.conf
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Reading /home/prova/.mplayer/codecs.conf:
Can't open '/home/prova/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 73 audio & 180 video codecs
Font /home/prova/.mplayer/font/font.desc loaded successfully! (206 chars)
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /home/prova/.mplayer/input.conf: No such file or directory
Input config file /etc/mplayer/input.conf parsed: 53 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : Permission denied
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
[ws] screens 2 Max 1024, 768 Org 1024,0
SKIN dir 1: '/home/prova/.mplayer/Skin'
SKIN dir 2: '/usr/share/mplayer/Skin'
Playing /home/prova/Underworld/[DIVX UHQ ITA] Underworld .avi.
Cache fill: 5.66% (237568 bytes) AVI file format detected.
Forced NON-INTERLEAVED AVI file format.
VIDEO: [DIVX] 720x432 24bpp 25.000 fps 1486.9 kbps (181.5 kbyte/s)
Clip info:
Software: MEncoder 1.0pre5-3.3.4
Name: Underworld
Genre: Fantasy
================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [liba52] AC3 decoding with liba52
No accelerated IMDCT transform found
AC3: 2.0 (stereo) 48000 Hz 128.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
================================================
================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
[pl_volnorm] Normalizer plugin in use.
[pl_eq] Equalizer in use.
[pl_extrastereo] Extra stereo plugin in use (multiplier=1.00).
AO: [esd] latency: [server: 0.37s, net: 0.00s] (adjust 0.37s)
AO: [plugin] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
[mpeg4 @ 0x85969a8]looks like this file was encoded
with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
VDec: vo config request - 720 x 432 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 2.37:1 - prescaling to correct movie aspect.
VO: [x11] 720x432 => 1024x432 Planar YV12
SwScaler: using unscaled Planar YV12 -> BGR 32-bit special converter
[mpeg4 @ 0x85969a8]warning: first frame is no keyframe
[mpeg4 @ 0x85969a8]ac-tex damaged at 30 1
[mpeg4 @ 0x85969a8]Error at MB: 76
[mpeg4 @ 0x85969a8]concealing 2147483647 errors
[mpeg4 @ 0x85969a8]Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x85969a8]header damaged
Error while decoding frame!
Marker bit missing before vop_coded0.000 2/ 2 0% 0% 0.0% 0 0 11%
[mpeg4 @ 0x85969a8]Error, header damaged or not MPEG4 header (f_code=0)
[mpeg4 @ 0x85969a8]header damaged
Error while decoding frame!
[ws] Error in display. 0.000 ct: -0.000 3/ 3 0% 0% 0.0% 1 0 4%
[ws] Error code: 179 ( BadShmSeg (invalid shared segment parameter) )
[ws] Request code: 147
[ws] Minor code: 2
[ws] Modules: enable_cache
[ws] Error in display.
[ws] Error code: 14 ( BadIDChoice (invalid resource ID chosen for this connection))
[ws] Request code: 1
[ws] Minor code: 0
[ws] Modules: enable_cache
[ws] Error in display.
[ws] Error code: 17 ( BadImplementation (server does not implement operation))
[ws] Request code: 20
[ws] Minor code: 0
[ws] Modules: video_read_frame
Xlib: sequence lost (0x1004e > 0x61) in reply type 0x1!
OUTPUT OF MENCODER PASSES:
### Encoding DVD First Pass ###
MEncoder 1.0pre5-3.3.4 (C) 2000-2004 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 802.3 MHz
(Family: 6, Stepping: 3)
Detected cache-line size is 32 bytes
MMX2 supported but disabled
SSE supported but disabled
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX
Reading /home/prova/.mplayer/codecs.conf:
Can't open '/home/prova/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/mencoder_codecs.conf: 73 audio & 180 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/prova/.mplayer/mencoder: No such file or directory
Font /home/prova/.mplayer/font/font.desc loaded successfully! (206 chars)
libdvdread: Using libdvdcss version 1.2.8 for DVD access
libdvdread: Couldn't find device name.
Reading disc structure, please wait...
There are 1 titles on this DVD.
There are 28 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
success: format: 0 data: 0xA67800 - 0x3EB7000
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 9800.0 kbps (1225.0 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.00 ftime:=0.0400
================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
No accelerated IMDCT transform found
AC3: 5.1 (3f+2r+lfe) 48000 Hz 448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [scale w=1024 h=-2]
Opening video filter: [crop w=720 h=432 x=0 y=72]
Crop: 720 x 432, 0 ; 72
================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (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.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
================================================
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified,
not writing vprp header.
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX
videocodec: libavcodec (1024x432 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
a52: CRC check failed! ) 4fps Trem: 0min 21mb A-V:0.017 [1513:127]
a52: error at resampling
Pos: 109.4s 2737f (100%) 4fps Trem: 0min 21mb A-V:0.029 [1512:127]
Writing AVI index...
Fixing AVI header...
ODML: vprp aspect is 16384:6911.
Video stream: 1512.864 kbit/s (189107 bps)
size: 20695977 bytes 109.440 secs 2737 frames
Audio stream: 128.000 kbit/s (15999 bps) size: 1752064 bytes 109.504 secs
### Encoding DVD Second Pass ###
MEncoder 1.0pre5-3.3.4 (C) 2000-2004 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 802.4 MHz
(Family: 6, Stepping: 3)
Detected cache-line size is 32 bytes
MMX2 supported but disabled
SSE supported but disabled
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX
Reading /home/prova/.mplayer/codecs.conf:
Can't open '/home/prova/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/mencoder_codecs.conf: 73 audio & 180 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/prova/.mplayer/mencoder: No such file or directory
Font /home/prova/.mplayer/font/font.desc loaded successfully! (206 chars)
libdvdread: Using libdvdcss version 1.2.8 for DVD access
libdvdread: Couldn't find device name.
Reading disc structure, please wait...
There are 1 titles on this DVD.
There are 28 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
success: format: 0 data: 0xA67800 - 0x3EB7000
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 9800.0 kbps (1225.0 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.00 ftime:=0.0400
================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
No accelerated IMDCT transform found
AC3: 5.1 (3f+2r+lfe) 48000 Hz 448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [scale w=1024 h=-2]
Opening video filter: [crop w=720 h=432 x=0 y=72]
Crop: 720 x 432, 0 ; 72
================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (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.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
================================================
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified,
not writing vprp header.
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX
videocodec: libavcodec (1024x432 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
a52: CRC check failed! ) 4fps Trem: 0min 21mb A-V:0.017 [1495:127]
a52: error at resampling
Pos: 109.4s 2737f (100%) 4fps Trem: 0min 21mb A-V:0.029 [1495:127]
Writing AVI index...
Fixing AVI header...
ODML: vprp aspect is 16384:6911.
Video stream: 1495.712 kbit/s (186964 bps)
size: 20461342 bytes 109.440 secs 2737 frames
Audio stream: 128.000 kbit/s (15999 bps) size: 1752064 bytes 109.504 secs
### Encoding Finished ###
More information about the MPlayer-users
mailing list