video_magic
8th July 2005, 01:39
Hello, I tried to use the ac3 encoding with Mencoder, but I get an error which states requirement for a video stream. I read through the Document page that came with the mplayer/mencoder package, and in my commandline I thought I had included the correct options to encode just a single pcm stereo 16bit 48000 wave file to ac3.
As you can see I specified novideo & chose output format of rawaudio which the Doc states is used for a single audio stream only.
I made a single line bat file named ac3menc as follows: (the line will probably wrap in my post)
C:\asblah\mplayerCVSofficial\mencoder -novideo d:\jamesrandi\toprocess\jrprincetonstereo48.wav -of rawaudio -oac lavc -lavcopts acodec=ac3:abitrate=160: -o d:\jamesrandi\toprocess\jrprin.ac3
C:\asblah>ac3menc
C:\asblah>C:\asblah\mplayerCVSofficial\mencoder -novideo d:\jamesrandi\toprocess
\jrprincetonstereo48.wav -of rawaudio -oac lavc -lavcopts acodec=ac3:abitrate=16
0: -o d:\jamesrandi\toprocess\jrprin.ac3
MEncoder dev-CVS-050626-17:02-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 0 data: 0x0 - 0x59cb44d0
Audio file detected.
Video stream is mandatory!
Exiting...
:( Please help me use this program to create an ac3, For now I have used Belight but I would like to know for my own curiousness as I spent a long time trying to make it work, how to do it. Thanks
As you can see I specified novideo & chose output format of rawaudio which the Doc states is used for a single audio stream only.
I made a single line bat file named ac3menc as follows: (the line will probably wrap in my post)
C:\asblah\mplayerCVSofficial\mencoder -novideo d:\jamesrandi\toprocess\jrprincetonstereo48.wav -of rawaudio -oac lavc -lavcopts acodec=ac3:abitrate=160: -o d:\jamesrandi\toprocess\jrprin.ac3
C:\asblah>ac3menc
C:\asblah>C:\asblah\mplayerCVSofficial\mencoder -novideo d:\jamesrandi\toprocess
\jrprincetonstereo48.wav -of rawaudio -oac lavc -lavcopts acodec=ac3:abitrate=16
0: -o d:\jamesrandi\toprocess\jrprin.ac3
MEncoder dev-CVS-050626-17:02-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 0 data: 0x0 - 0x59cb44d0
Audio file detected.
Video stream is mandatory!
Exiting...
:( Please help me use this program to create an ac3, For now I have used Belight but I would like to know for my own curiousness as I spent a long time trying to make it work, how to do it. Thanks