[MPlayer-users] -audiofile with a mp3 file freezes mencoder (bugreport)

Jack lt at speakeasy.net
Fri Aug 6 02:01:32 CEST 2004


The problem is that when I try to use mencoder with an external mp3 
audio file, using the -audiofile option, it hangs.
Mplayer works just fine with -audiofile, and mencoder works fine with 
-audiofile with oggs and a few other audio formats I tried.  It seems to 
be just mencoder and just mp3s.

This problem began when I switched to GCC 3.4.0.  It worked fine when I 
compiled it with GCC 3.3.3

It also works just fine when I compile Mplayer with --enable-debug

All the information I think you want is down here:

Mplayer compiled with --enable-largefiles.

Command line: mencoder Alpha-0.1.0.avi -audiofile A\ Perfect\ Circle\ -\ 
The\ Noose.mp3 -oac copy -ovc copy -v -v -o Alpha-0.1.1.avi

System:  It began as a Slackware 9 install, although a few things have 
been recompiled since.
Linux 2.6.6
libc-2.3.2
gcc 3.4.0
ld 2.14.90.0.6
binutils 2.14.90.0.6

CPU - Athlon XP (palomino) 1700+

Mencoder output:

MEncoder dev-CVS-040805-11:14-3.4.0 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon 4 /Athlon MP/XP Palomino 1460 MHz 
(Family: 6, Stepping: 2)
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

Reading /root/.mplayer/codecs.conf: Reading 
/usr/local/etc/mplayer/codecs.conf: Using built-in default codecs.conf.
Reading config file /root/.mplayer/mencoderinit_freetype
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
font: Reading section: [info]
font: Reading section: [files]
RAW: /usr/local/share/mplayer/font//iso-8859-1-a.raw  4216 x 28, 256 colors
RAW: /usr/local/share/mplayer/font//iso-8859-1-b.raw  4216 x 28, 256 colors
font: Reading section: [characters]
font: Reading section: [files]
RAW: /usr/local/share/mplayer/font//osd-mplayer-a.raw  536 x 32, 256 colors
RAW: /usr/local/share/mplayer/font//osd-mplayer-b.raw  536 x 32, 256 colors
font: Reading section: [characters]
font: resampling alpha by factor 0.750 (192) DONE!
font: resampling alpha by factor 0.750 (192) DONE!
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 
chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
[file] File size is 8392288 bytes
STREAM: [file] Alpha-0.1.0.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
success: format: 0  data: 0x0 - 0x800E60
[file] File size is 11731156 bytes
STREAM: [file] A Perfect Circle - The Noose.mp3
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
s->pos=0  newpos=0  new_bufpos=0  buflen=0 
AVI file format detected.
LIST hdrl  len=382
list_end=0x192
CHUNK avih  len=56
======= AVI Header =======
us/frame: 33366  (fps=29.971)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames  total: 1539   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  704 x 400
==========================
list_end=0x192  pos=0x58  chunksize=0x0  next=0x58
LIST strl  len=192
list_end=0x120
CHUNK strh  len=56
==> Found video stream: 0
====== STREAM Header =====
Type: vids   FCC: DIVX (58564944)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 2997/100 = 29.970
Start: 0   Len: 1539
Suggested BufferSize: 29134
Quality 0
Sample size: 0
==========================
list_end=0x120  pos=0xA4  chunksize=0x0  next=0xA4
CHUNK strf  len=40
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 704
  biHeight 400
  biPlanes 1
  biBitCount 24
  biCompression 1482049860='DIVX'
  biSizeImage 844800
===========================
Regenerating keyframe table for DIVX 4 video
list_end=0x120  pos=0xD4  chunksize=0x0  next=0xD4
CHUNK vprp  len=68
======= Video Properties Header =======
Format: 0  VideoStandard: 0
VRefresh: 30  HTotal: 704  VTotal: 400
FrameAspect: 16:9  Framewidth: 704  Frameheight: 400
Fields: 1
  == Field 0 description ==
  CompressedBMHeight: 400  CompressedBMWidth: 704
  ValidBMHeight: 400  ValidBMWidth: 704
  ValidBMXOffset: 0  ValidBMYOffset: 0
  VideoXOffsetInT: 0  VideoYValidStartLine: 0
=======================================
list_end=0x120  pos=0x120  chunksize=0x0  next=0x120
LIST strl  len=106
list_end=0x192
CHUNK strh  len=56
==> Found audio stream: 1
====== STREAM Header =====
Type: auds   FCC: U (55)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 28000/672 = 41.667
Start: 0   Len: 2137
Suggested BufferSize: 13440
Quality 0
Sample size: 672
==========================
list_end=0x192  pos=0x16C  chunksize=0x0  next=0x16C
CHUNK strf  len=30
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 28000
Block align: 672
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=672
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
===========================
list_end=0x192  pos=0x192  chunksize=0x0  next=0x192
LIST INFO  len=48
list_end=0x1CA
CHUNK ISFT  len=36
hdr=Software  size=36
Software  : MEncoder dev-CVS-040804-21:25-3.4.0
list_end=0x1CA  pos=0x1CA  chunksize=0x0  next=0x1CA
CHUNK JUNK  len=3630
list_end=0x0  pos=0x1000  chunksize=0x0  next=0x1000
LIST movi  len=8329360
list_end=0x7F2898
Found movie at 0x100C - 0x7F2898
s->pos=1800  newpos=7F2800  new_bufpos=7F2898  buflen=0 
CHUNK idx1  len=58816
Reading INDEX block, 3676 chunks for 1539 frames (fpos=0x7f28a0)
    0:  00dc    10  0000000000000004  len:  5372  pos:      0->  
0.000       0->  0.000

<snip-- similar stuff for a few thousand lines>

 3675:  00dc     0  00000000007F1628  len:   607  
pos:6862505->366.059    1538-> 64.147
list_end=0x0  pos=0x800E60  chunksize=0x0  next=0x800E60
s->pos=0  newpos=1000  new_bufpos=100C  buflen=0 
AVI index offset: 0x1008 (movi=0x100C idx0=0x4 idx1=0x1508)
Auto-selected AVI video ID = 0
Unknown chunk: 01wb (62773130)

<snip-- repeated a few thousand times>

Unknown chunk: 01wb (62773130)
AVI_NI: No audio stream found -> no sound.
AVI video size=6863112 (1539) audio size=0 (0)
VIDEO:  [DIVX]  704x400  24bpp  29.970 fps  1069.2 kbps (130.5 kbyte/s)
s->pos=0  newpos=0  new_bufpos=0  buflen=0 
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x865f848 
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x865f848 
Checking for Nullsoft Streaming Video
DEMUXER: freeing demuxer at 0x865f848 
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x865f848 
Checking for REAL
DEMUXER: freeing demuxer at 0x865f848 
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x865f848 
[mkv] no head found
DEMUXER: freeing demuxer at 0x86601e8 
DEMUXER: freeing demuxer at 0x86601e8 
Searching demuxer type for filename A Perfect Circle - The Noose.mp3 
ext: .mp3
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
s->pos=2000  newpos=B30000  new_bufpos=B30054  buflen=0 
s->pos=B300D4  newpos=800  new_bufpos=C11  buflen=0 
demux_audio: audio data 0xC11 - 0x0 
Audio file detected.
[V] filefmt:65536  fourcc:0x58564944  size:704x400  fps:29.97  ftime:=0.0334
SPU: Display only forced subs now disabled
videocodec: framecopy (704x400 24bpp fourcc=58564944)
audiocodec: framecopy (format=55 chans=2 rate=44100 bits=16 bps=0 sample=0)
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 0
Block align: 1152
bits/sample: 16
cbSize: 0
===========================
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not 
writing vprp header.
head_check failed
head_check failed
head_check failed
head_check failed
Pos:   0.0s      1f ( 0%)   0fps Trem:   0min   0mb  A-V:  nan [0:0] 
A/Vms 0/0 D/B/S 0/0/0

(at this point, it just sits here and ties up a lot of CPU, until I kill 
it.)

-lt




More information about the MPlayer-users mailing list