[MPlayer-users] Fwd: [BUG] mpeg muxer fails to mux correctly aac audio since r24933, r24932 ok

Giacomo Comes comes at naic.edu
Tue Nov 13 04:46:10 CET 2007


On Mon, Nov 12, 2007 at 09:53:57PM +0100, Nico Sabbi wrote:
> 
> >mpeg file with aac audio created with mencoder r24933 is played by 
> >mplayer without audio.
> 
> works fine here. Can you post the log and a command line to reproduce?

You can create a test mpeg file with the following command:

mencoder -o test.mpg -of mpeg -mpegopts format=dvd /dev/zero -fps 25 -ofps 25 \
  -frames 100 -demuxer rawvideo -rawvideo w=720:h=576:format=rgb24 -ovc lavc \
  -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:keyint=15:vrc_maxrate=7500:vstrict=0:vbitrate=7500 \
  -audiofile /dev/zero -audio-demuxer 20 -rawaudio format=0x1:rate=48000 \
  -oac faac -faacopts br=96

Please note that the fancy audio/video source streams are used in order to
let everybody create the same output stream. The results do not change if
a normal video/audio source is used.

With rc2 up to r24932 the output mpeg file plays fine, mplayer says
it contains audio format 0x4134504D (MP4A).

With r24933 and later I cannot play audio of the output mpeg, mplayer says
it contains audio format 0x50 (mp2) and mp3lib,ffmpeg and mad try to decode
the audio without success.

Here is the output of "mplayer test.mpg" with the bad mpeg:

MPlayer dev-SVN-r25024-4.2.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.06GHz (Family: 15, Model: 2, Stepping: 7)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
mplayer: could not connect to socket
mplayer: Permission denied
Failed to open LIRC support. You will not be able to use your remote control.

Playing test.mpg.
Cache fill:  0.39% (32768 bytes)
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 1)  25.000 fps  7500.0 kbps (937.5 kbyte/s)
xscreensaver_disable: Could not find XScreenSaver window.
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: 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.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
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))
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
ADecoder init failed :(
ADecoder init failed :(
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Unknown/missing audio format -> no sound
ADecoder init failed :(
Opening audio decoder: [libmad] libmad mpeg audio decoder
Cannot sync MAD frame
ADecoder init failed :(
ADecoder init failed :(
Opening audio decoder: [hwmpa] MPEG audio pass-through (fake decoder)
Cannot sync MPA frame: 0
ADecoder init failed :(
ADecoder init failed :(
Cannot find codec for audio format 0x50.
Read DOCS/HTML/en/codecs.html!
Audio: no sound
Starting playback...

I'm attaching also the good and bad mpeg I have created.

Let me know if you need more info.

Giacomo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: testgood.mpg.gz
Type: application/x-gunzip
Size: 1041 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20071112/250d4136/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testbad.mpg.gz
Type: application/x-gunzip
Size: 996 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20071112/250d4136/attachment-0001.bin>


More information about the MPlayer-users mailing list