[MEncoder-users] my avi output file has no audio (long)

Ivo sagena at email.it
Wed Sep 29 16:44:31 CEST 2004


Hi,
I worked encoding a dvd using these couple of commands:

mencoder dvd://1 -dvd-device /home/prova/DVD/UNDERWORLD -chapter 2-2 \
-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 -chapter 2-2 \
-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 - C2 .avi'

but the result is an avi file that has no audio.
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.

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 ###



OUTPUT OF MPLAYER
MPlayer 1.0pre5-3.3.4 (C) 2000-2004 MPlayer Team

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 803.9 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
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.

Playing [DIVX UHQ ITA] Underworld - C2 .avi.
Cache fill:  6.05% (253952 bytes)    AVI file format detected.
VIDEO:  [DIVX]  1024x432  24bpp  25.000 fps  1495.7 kbps (182.6 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)
=====================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
=====================================================
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)
AO: [esd] latency: [server: 0.37s, net: 0.00s] (adjust 0.37s)
AO: [esd] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 1024 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] 1024x432 => 1024x432 Planar YV12 
SwScaler: using unscaled Planar YV12 -> BGR 32-bit special converter
A: 106.4 V:  64.7 A-V: 41.703 ct:  6.476  1619/1619  65% 90%  7.2% 1609 0 19%
Badly interleaved AVI file detected - switching to -ni mode...
A: 109.1 V: 109.4 A-V: -0.269 ct: 10.882  2736/2736  66% 90%  4.4% 1641 0 2%%

Exiting... (End of file)




More information about the MEncoder-users mailing list