[MPlayer-users] mencoder hangs while mixing mpeg4 video and MP3 audio
Noah Spurrier
noah at noah.org
Sun Jun 4 20:33:59 CEST 2006
I'm having trouble mixing an MP3 audio file with an MPEG4 AVI video file.
Mencoder just locks up. I ripped the audio stream from a DVD VOB
to a WAV file. Then I used lame to convert to MP3. But when I try to
mux the video and audio together to an AVI container it seems that
mencoder just locks up. This problem happens on every video source I try.
If I use mkvmerge instead to make a Matroska file then everything works fine.
Here are the steps that I have been using:
mplayer FALLING_DOWN1-1.vob -vo null -aid 128 -ao pcm -noframedrop -vc
dummy
lame -h --cbr -b 96 --resample 32 audiodump.wav audio.mp3
mencoder FALLING_DOWN1-1.vob -o video.avi -oac copy -ovc lavc \
-lavcopts vcodec=mpeg4:vbitrate=1300:mbd=2:vpass=1:keyint=12
mencoder FALLING_DOWN1-1.vob -o video.avi -oac copy -ovc lavc \
-nosound -lavcopts vcodec=mpeg4:vbitrate=1300:mbd=2:vpass=2:keyint=12
mencoder -oac copy -ovc copy -o falling_down.avi -audiofile audio.mp3
video.avi
Everything works until I get to that last command. I get the following
output, but the status does not update. It gets stuck at Pos:0.0s 0%.
No errors, but no progress. Running 'top' shows that mencoder is
using 98% of my CPU.
MEncoder 1.0pre7try2-3.4.5 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6,
Stepping: 0)
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
File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 0 data: 0x0 - 0x15147732
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO: [FMP4] 704x368 24bpp 29.970 fps 749.0 kbps (91.4 kbyte/s)
Audio file detected.
[V] filefmt:65536 fourcc:0x34504D46 size:704x368 fps:29.97
ftime:=0.0334
videocodec: framecopy (704x368 24bpp fourcc=34504d46)
audiocodec: framecopy (format=55 chans=2 rate=32000 bits=16 bps=0
sample-0)
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not
writing vprp header.
ODML: Aspect information not (yet?) available or unspecified, not
writing vprp header.
Pos: 0.0s 1f ( 0%) 0fps Trem: 0min 0mb A-V: nan [0:0]
Yours,
Noah
P.S. Here are the version numbers of the tools that I'm using:
$ mencoder
MEncoder 1.0pre7try2-3.4.5 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6,
Stepping: 0)
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
uname -a
Linux alpha 2.6.12-10-386 #1 Fri Apr 28 13:13:44 UTC 2006 i686 GNU/Linux
$ cat /proc/version
Linux version 2.6.12-10-386 (buildd at terranova)
(gcc version 3.4.5 20050809 (prerelease) (Ubuntu 3.4.4-6ubuntu8.1)) #1
Fri Apr 28 13:13:44 UTC 2006
More information about the MPlayer-users
mailing list