On Mon, Feb 24, 2003 at 06:55:30PM +0530, Rishi Gangoly wrote:
I just started to run the following command
mencoder -vcd 2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o disk_01.avi
You are not using DivX as you mentioned earlier. The ovc lavc switch tells it to use the libavcodec which is different from the DivX codec. To use divx, please do -ovc divx4
It's 52% done but it says
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3) Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
So what does this mean?
Am I going to get the same MPEG 1 file at the end of this encoding procedure?
No. You will be getting an avi file which is the divx(or in your case, the libavcodec) encoded version of your mpeg-1 file.
I get to understand that mp3 has some patent issues and thus it would be better to use ogg vorbis. How does one select that codec to encode the file?
Acording to the documentation I'm supposed to run this command after the one above completes
mencoder -vcd 2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o disk_01.avi
That is because you are using two pass encoding. From the docs, "2-pass encoding: the name comes from the fact that this method encodes the file twice. The first encoding (dubbed pass) creates some temporary files (*.log) with a size of few megabytes, do not delete them yet (you can delete the AVI). In the second pass, the 2-pass output file is created, using the bitrate data from the temporary files. The resulting file will have much better image quality"
The last I checked, mencoder was not fully capable of encoding to mpeg-1 or mpeg-2. Hence, it usually encoders to avi.
is that true?
Regards
Rishi
-- _______________________________________________