Post subject: The Best Codec to Encode AVI
Joined: 3/18/2006
Posts: 971
Location: Great Britain
Which is the best codec to encode your movies? I used to use uncompressed and then convert to .wmv using v9 codec. I am now looking in the direction of DivX. I can encode at 90% of realtime speed which is great. However, I want to know if anyone has any good settings that balances quality (when uploaded to YouTube) and file size.
Emulator Coder, Site Developer, Former player
Joined: 11/6/2004
Posts: 833
Is realtime encoding necessary? H.264 is great, and can be made realtime if you turn all its settings down. We like it for its excellent quality:size ratio when we put the effort into it, and it's well supported. It makes DivX/MPEG4 look like s--t.
Joined: 3/18/2006
Posts: 971
Location: Great Britain
Thanks I'll try out H.264. Where did you download it from? I don't know of any other way to encode. I play back the .m64 and "record to AVI".
Emulator Coder, Site Developer, Former player
Joined: 11/6/2004
Posts: 833
Me personally? I downloaded the codec from http://developers.videolan.org/x264.html (retrieved from SVN) and then built it into mencoder to do the dirty work. For good quality encoding, mencoder does the dirty work and mupen64's output is not kept. What you'll want to do is make mupen64 output to any (good) quality codec, then run 2 passes on the resulting video and make it into H264. H264 in lossless mode makes a good choice for the first output.
Joined: 3/18/2006
Posts: 971
Location: Great Britain
Nice, thanks for your help.
Joined: 4/9/2008
Posts: 4
DeHackEd wrote:
Me personally? I downloaded the codec from http://developers.videolan.org/x264.html (retrieved from SVN) and then built it into mencoder to do the dirty work. For good quality encoding, mencoder does the dirty work and mupen64's output is not kept. What you'll want to do is make mupen64 output to any (good) quality codec, then run 2 passes on the resulting video and make it into H264. H264 in lossless mode makes a good choice for the first output.
Could you explain briefly on how to compile x264 into mencoder?
Joined: 11/1/2007
Posts: 100
Why bother compiling x264 INTO mencoder when you can compile it as a stand-alone library that you can update at your convenience?
Emulator Coder, Site Developer, Former player
Joined: 11/6/2004
Posts: 833
Risk of API breaking. That's what happens when you check code out of a code versioning repository. I just "rm mencoder" and re-run make to get an up-to-date build when x264.h doesn't change. Doesn't take that much time, and static linking runs a bit faster. Compile x264 to produce libx264.a. This goes into /usr/local/lib and x264.h (provided directly) goes into /usr/local/include (or /usr/include if you want). Now go configure mplayer/mencoder and it should detect x264 and use it automatically. The final mencoder will show x264 when you run as "mencoder -ovc help". These steps are loosely true even under windows. Just compile with mingw and /usr becomes /mingw
Joined: 4/9/2008
Posts: 4
Thanks and it would be nice if someone would update HOWTO make n64 encodes just to start off with the basics.
Joined: 4/1/2008
Posts: 149
DeHackEd wrote:
Risk of API breaking. That's what happens when you check code out of a code versioning repository. I just "rm mencoder" and re-run make to get an up-to-date build when x264.h doesn't change. Doesn't take that much time, and static linking runs a bit faster. Compile x264 to produce libx264.a. This goes into /usr/local/lib and x264.h (provided directly) goes into /usr/local/include (or /usr/include if you want). Now go configure mplayer/mencoder and it should detect x264 and use it automatically. The final mencoder will show x264 when you run as "mencoder -ovc help". These steps are loosely true even under windows. Just compile with mingw and /usr becomes /mingw
Do you know any places to read up on compiling by using binaries, compiling from source, and other distribution methods that are commonly used? I have tried looking everywhere but i cant understand anything... In particular I want to compile my own MEncoder but it would be nice to know
Comicalflop wrote:
I don't recommend HISSing at parties though, people will think you're a snake.