Post subject: Compressing video using x264
Player (70)
Joined: 8/24/2004
Posts: 2562
Location: Sweden
Hi people, I have this avi-file on my computer which I wanted to compress, using the x264 codec. The video it self is at a resolution of 1280x720 and uses the mjpeg compression for the frames. I am now wondering what settings I would use to compress it with the x264 codec. Weapons of choice is either mencoder or virtualdub, since I can compress it using either Windows or Linux as OS. I tried using the x264.exe for windows, but that did not let me to decode the mjpeg file for conversion. The audio was no problem to encode separately of course. Thanks in advance.
Sir_VG
He/Him
Player (39)
Joined: 10/9/2004
Posts: 1911
Location: Floating Tower
Have you tried using SDA's anri-chan program? I think it's a great way to compress videos.
Taking over the world, one game at a time. Currently TASing: Nothing
Player (70)
Joined: 8/24/2004
Posts: 2562
Location: Sweden
That just seems like a batch script that executes other programs. And if it executes x264, it won't work. Secondly it seems that it's main purpose is for ripping and encoding DVD's for submitting at SDA. Thanks for input though. :)
Sir_VG
He/Him
Player (39)
Joined: 10/9/2004
Posts: 1911
Location: Floating Tower
1. It supports non-DVD encoding - I've used it for compressing the DS encodes I've made. 2. It doesn't have to be for SDA. Putting the logo intro/ending is optional. 3. I think it is indeed x264, but it's another option and worth a try at least.
Taking over the world, one game at a time. Currently TASing: Nothing
Joined: 10/3/2005
Posts: 1332
Highness wrote:
I tried using the x264.exe for windows, but that did not let me to decode the mjpeg file for conversion.
If x264 doesn't handle that format, wouldn't your next step be to convert the AVI to whatever raw format that it can handle?
Player (70)
Joined: 8/24/2004
Posts: 2562
Location: Sweden
Yeah, but I was thinking more in the way of if there is a way to convert it without doing another conversion first?
Senior Moderator
Joined: 8/4/2005
Posts: 5770
Location: Away
mencoder inputfile.something -oav copy -oac copy -o outputfile.avi
Warp wrote:
Edit: I think I understand now: It's my avatar, isn't it? It makes me look angry.
Banned User, Former player
Joined: 3/10/2004
Posts: 7698
Location: Finland
moozooh wrote:
mencoder inputfile.something -oav copy -oac copy -o outputfile.avi
I think you mean -ovc (as in "output video codec")? Anyways, if you want to use mencoder, here's a quick start:
mencoder inputvideo.avi -o result.avi -oac copy -ovc x264 -x264encopts bitrate=2000
For other fine-tuning options you'll have to consult the documentation.
Former player
Joined: 12/1/2007
Posts: 425
Don't use bitrate based ratecontrol modes, use CRF. This line should be fine for the casual user:
crf=20:frameref=4:8x8dct:subq=7
Get a good MEncoder win32 build here: http://oss.netfarm.it/mplayer-win32.php
Senior Moderator
Joined: 8/4/2005
Posts: 5770
Location: Away
Warp wrote:
I think you mean -ovc (as in "output video codec")?
Right, typoed.
Warp wrote:
Edit: I think I understand now: It's my avatar, isn't it? It makes me look angry.
Player (70)
Joined: 8/24/2004
Posts: 2562
Location: Sweden
Warp wrote:
moozooh wrote:
For other fine-tuning options you'll have to consult the documentation.
Yeah, and since I don't know that much about what to choose, I was posting to get help with this too I hoped. :) Are there any good standard settings that should be used for example? What if I want to fit it on 700Mb cd? Are there any good guides or tutorials on this subject?