GTAStunting
General => Video Editing/Compression => General Discussion => Video Editing Tutorials => Topic started by: Daffy on March 28, 2007, 09:55:32 AM
-
This guide will teach you how to render a in the new .mp4 fileformat with great video and audio quality using the x264 codec, please keep in mind that this will require a lot of discspace.
This is what you need for it:
* VLC Media Player - www.videolan.org (http://www.videolan.org)
* The Huffyuv Codec - http://neuron2.net/www.math.berkeley.edu/b...ffyuv-2.1.1.zip (http://neuron2.net/www.math.berkeley.edu/benrg/huffyuv-2.1.1.zip)
* The x264 Codec - Bottom of the post...
* Avi Synth - http://sourceforge.net/project/showfiles.php?group_id=57023 (http://sourceforge.net/project/showfiles.php?group_id=57023)
I recommend recording in either 1280x720 or 800x600 to make it as easy as possible to follow this.
Step 1:[/b]
Make a new folder called for example x264, put this on your fastest drive so it goes as fast as possible... in my case my the C:/ drive so the address to the folder will be "C:\x264"
Put the files that was in the x264 archive in this folder.
(http://img.photobucket.com/albums/v92/Indiana_Jonas/Tutorial/HQC5.jpg)
Step 2:[/b]
Next open your Video Editing program, in my case Vegas and render your movie.
Make sure that the dimensions of your project is in 800x600 or 1280x720.
You have to render the audio and the video seperately in .wav and .avi format.
(http://img.photobucket.com/albums/v92/Indiana_Jonas/Tutorial/HQC2.jpg)
So start off by rendering the ".wav" file which should be easy, use the 44 100 Hz; 16 Bit; Stereo; PCM preset.
Now we have to render the video, choose ".avi/" as the filetype and press "Custom".
(http://img.photobucket.com/albums/v92/Indiana_Jonas/Tutorial/HQC3.jpg)
Select "Video" in the 3 options you should have below the settings.
Choose "Huffyuv" where it says "Video Format" and press ok and then "Save".
(http://img.photobucket.com/albums/v92/Indiana_Jonas/Tutorial/HQC4.jpg)
Step 3:[/b]
Now we're done with the Vegas part and we will start working on the x264 encoding.
Right click on the file called "makemp4.bat" and open it in notepad or another text editor.
Change "mymovie=mymovie" to: mymovie=THE_NAME_OF_YOUR_MOVIE.
Change "mypath=mypath" to: mypath=C:\x264 or the path you extracted the x264 codec and your moviefiles in.
Change "myabitrate=192" to: myabitrate=128 since 128kbps for your audio is enough.
Change "myvbitrate=3250" to your desired video bitrate, 2500 is good enough for me.
(http://img.photobucket.com/albums/v92/Indiana_Jonas/Tutorial/HQC1.jpg)
You're now ready to press "Crtl+S" to save the changes you made in the file and close your text editor and start the encoding by double clicking on the "makemp4.bat" file.
You need the most recent version VLC Media Player in order to be able to play the file so remember to include it in a archive when you upload your movie.
-
Fucking awesome tutorial man! I don't understand a shit though..
-
It's the kinda tutorial you gotta try and follow step-by-step to understand.
-
Aha. Anyways, I can't add effects and that shit to videos and I don't have Vegas so I don't have any help with this tutorial. Get online on MSN Daff btw.
-
The link to the x264 shit is down. Can someone find another.
NVM, I still have it. I just never bothered to check. Still an updated link would be good.
-
jep hes right its down can you mirror every file please ?
-
You posted this some months ago. Is there a new aspect, or did you 'only' rewrite the tutorial?
Very nice btw .
I'm pretty sure it's a re-post, though a very good one. I think Aries accidently deleted it before, that's why it hasn't been showed on the forums for a while.
-
Yes, Aries accidentally deleted everything, been waiting for this to come back, fucking great!
-
I will definately use this the next time I'll render a video
-
ty for reposting..just in time! =)
The link for the x264 codec and the link for the avi synth is down =(
edit:also..i dl'd the first thing that says "huffyuv" from ff but after i got it i opened it and its the x264.is that the huffyuv or the x264? did the link get mixed up?
all i think i need is the huffyuv and the avi synth and im ready.
-
Holy shit!
What file sizes are we looking at for a 6 min vid recorded at 1280x960x32? Like 500+ MB?
That wouldnt even be worth uploading, just a copy for yourself
-
Brandon: Smaller than a WMV/Xvid HQ.
Miss: Yeah they got kinda mixed up, i've taken care of it now...
Juan: I might upload a more recent version of the x264 codec today.
-
The x264 link contains the most recent version of the files you need now.
-
nice tut, I'll be sure to use it for my upcomming vid
(btw a couple small typos on "wav"
"So start off by rendering the ".waw" file" and the one before it too)
-
Oh... thanks
-
If your movie is in 1280x720, leave the next option alone.
Now go down to the "echo Crop(0,0,-0,-0) >> "%mypath%\%mymovie%.avs" line and change it to "echo Crop(0,4,-0,-4) >> "%mypath%\%mymovie%.avs"
You might want to change that too, "If your movie's height and width are divisible by 16 then disregard the next step."
-
Uhm...
...god don't i feel like a fucking dumbass now that i don't really get what you're saying
-
This is my second attempt at this..and im stuck at the same spot.
i cant get the huffyuv to show up in the custom settings in video (i have vegas 7 btw)
i have the file..and it says in the readme to right click on huffyuv.inf and click install..but its just a script file or whatever.
help please?
-
If your movie is in 1280x720, leave the next option alone.
Now go down to the "echo Crop(0,0,-0,-0) >> "%mypath%\%mymovie%.avs" line and change it to "echo Crop(0,4,-0,-4) >> "%mypath%\%mymovie%.avs"
I always leave that part to (0,0-0,-0) and I have never got any problems. Why should I change it to (0,4,-0,-4)?
-
That's what i was first told to, i'll take that part out.
-
Wait, so if we record in 1280x720, doesnt that mean we should render at that resolution too?
Why render at a lower res than you record...
-
Wait, so if we record in 1280x720, doesnt that mean we should render at that resolution too?
Why render at a lower res than you record...
What do you mean? If you're talking about that setting in vegas is 800x600, it's because it was set to "use project settings". If you use clips recorded in 1280x720, that should be the size of the "use project settings" instead.
To sum it up: You should render at the same res, unless you want to reduce the filesize even more.
-
So if I record at 1280x720, I should render at 1280x720. Then I encode it to .mp4.
Got it, thanks Tack
-
If your source files are in 1280x720, of course the finished movie should be in the same res
-
I hate to be a big n00b,but can anyone breifly explain what i do with the avi synth and huffyuv?
i can follow directions well,but i can't seem to figure out how to get the huffyuv in the vegas video format in the custom video render options.
And i also dont know what to do with the avi synth.
I won't ask anymore ?'s i promise!
-
to install huffyuv: Right click your huffyuv.inf file. Then select install. That worked for me atlest. As for the AVI synth i think you just install it and it do it's part at the x264 encoding
-
Thanx Sadness
i did somthing wrong..ill look into it again..because i read that in the read me,but the huff file i have is juat a file that cant be installed..i must have just did somthing stupid..ill figure it out..thanx!
-
Ok I got a problem with the X264 encoder. If I figure it out I'll just edit this post...
I (thought) I did everything right but i'm getting the error message: error opening movie.avs and error importing C:/x264/temp/movie.264#video bitstream not compliant. When it's finished I get a temp folder, but no mp4 to be found.
It's not called movie I just don't want you to know what my new vid's gonna be called help would be more than appreciated!!
-
Sounds like you messed up the .bat file, maybe you added a space too much or removed one... if that doesn't help, try downloading MeGUI.
-
What's MeGUI? I am 99% sure the bat is correct...
EDIT: I'll play with it...argh.
-
It's a graphical user interface for .mp4 and .mkv, it's used to encode a lot of HD stuff.
-
If your movie is in 1280x720, leave the next option alone.
Now go down to the "echo Crop(0,0,-0,-0) >> "%mypath%\%mymovie%.avs" line and change it to "echo Crop(0,4,-0,-4) >> "%mypath%\%mymovie%.avs"
I always leave that part to (0,0-0,-0) and I have never got any problems. Why should I change it to (0,4,-0,-4)?
In order for you to make an mp4 your res height and width have to be both divisible by 16, 1280x720 is an example. (0,4,-0,-4) is used when one of your numbers is not divisible by 16 for example the res 800x600. 800 is divisible by 16 but 600 is not, so you use (0,4,-0,-4) to crop your width into a number that is divisible by 16. In this case 8 is subtracted from 600 leaving you with 592 which is divisible by 16. So in the end you get a video thats 800x592. That is why it's recommended that you record at a res with multiples of 16.
-
If your movie is in 1280x720, leave the next option alone.
Now go down to the "echo Crop(0,0,-0,-0) >> "%mypath%\%mymovie%.avs" line and change it to "echo Crop(0,4,-0,-4) >> "%mypath%\%mymovie%.avs"
I always leave that part to (0,0-0,-0) and I have never got any problems. Why should I change it to (0,4,-0,-4)?
In order for you to make an mp4 your res height and width have to be both divisible by 16, 1280x720 is an example. (0,4,-0,-4) is used when one of your numbers is not divisible by 16 for example the res 800x600. 800 is divisible by 16 but 600 is not, so you use (0,4,-0,-4) to crop your width into a number that is divisible by 16. In this case 8 is subtracted from 600 leaving you with 592 which is divisible by 16. So in the end you get a video thats 800x592. That is why it's recommended that you record at a res with multiples of 16.
-
wow wow i dont understand nothing : (
-
WTF, im tryin to render a video, and everything goes great until I realize that I dont have any Avisynth scripts... what to do now`?
It says
avis [error]: unsupported input format <DIB >
X264 [error]: could not open input file 'godfather_love_x264.avs'
-
Do you have AviSynth installed?
You don't need to make a AVS script for this tutorial, that gets done automatically.
Try to put the files as close to the root of the harddrive as possible as the AviSynth scripts and software alike has problems with long addresses.
-
Wow, I got some epic quality from this. Too bad my comp couldn't play it properly, lags like shit
-
i used itt
-
This look a lot more complicated than the XVid tut , but i'll try it today if i have time
-
Daff you should update your tut to use Megui, i recently rendered a movie into two different mp4's. One used this method and the other used megui. This method uses a triple pass while in megui i used a double pass, and as you know the triple pass takes much longer to render. Well the funny thing is that megui gave me better quality for the same file size even though it was a double pass as apposed to a triple pass. You should really look into it.
-
I've been using MeGUI for quite a while now, it's a trully a brilliant tool.
-
Wait... im about to render a test .mp4. Should I do it daffys way without megui, or should i use megui? Im almost done rendering the .avi part. Which one has better quality?
edit: btw daffy can u get on msn?
-
Unless you how to configure the settings in MeGUI properly, i'd suggest the good'ol tutorial.
And no i can't, gotta go to school now.
-
-
post your bat file.
-
k
[attachment=5082:makemp4.zip]
-
What res are the clips in?
-
1280x720
-
Do you have avi synth installed, if you do its likely that you rendered the avi incorrectly or something.
-
Yes i do, and when i click the bat file this happens:
it renders the music portion, and then the MY_MOVIE.avs appears in the C:x264 folder, then when i start getting errors, it goes away...
ugh ill re render i guess
EDIT: rerendered the video and audio again, and reinstalled EVERYTING, and did everything exactly right, and still not working....
i guess ill settle with the XviD HQ until someone can help me..
-
Hmmm I have a problem, im trying to render a video and every time it gets to second or third pass it says '2pass curve failed to converge' or something like that, heelp .
EDIT - After that the MP4 comes out at around 5mb and when you view you get at the top of the screen 'CAVIStreamSynth: System Exception - Acess Violation at 0x0, reading from 0x0' .
-
Like it says try reducing the bitrate.
-
I've already done that, doesn't work .
-
hi
I've a problem... see the screen, i havn't find solutions
ps : this not 500, but 2500 bitrate
(http://img114.imageshack.us/img114/8116/huuusb7.png)
(sorry for my english, he is very bad^^)
-
I wish I could get mine working as well
Can anyone post a .bat file that they sucessfully encoded with?
-
hi
I've a problem... see the screen, i havn't find solutions
ps : this not 500, but 2500 bitrate
(sorry for my english, he is very bad^^)
post your bat file, i think you just screwed it up.
-
http://rapidshare.com/files/41024061/makemp4.bat.html (http://rapidshare.com/files/41024061/makemp4.bat.html) for the bat
the path is just, i have verified
-
I can't record in 1280x720 , i can just record in 1280x768 And i don't want to record in 800x600 , so does 1280x768 work aswell?
-
http://rapidshare.com/files/41024061/makemp4.bat.html (http://rapidshare.com/files/41024061/makemp4.bat.html) for the bat
the path is just, i have verified
Make sure your bat file looks like this:
[codebox]@echo off
:-------------------
: Original from http://wiki.meaz.org/index.php?title=Codecs:x264 (http://wiki.meaz.org/index.php?title=Codecs:x264) check for updates
: Updated 06.05.15 to latest x264 (v523) codec and switched from AAC to MP3 audio codec by Daemon
:-------------------
:START
:-------------------
: Start Configuration
:-------------------
: You need to export your movie as an avi with a filename.
: You need to export your movie sound as a wav with the same filename.
: Set the filename you will use on here.
set mymovie=mymovie
:-------------------
:set the path to your files here (no \ at the end)
:-------------------
set mypath=D:\Documents and Settings\anthony.1046864403176\Bureau\mes telechargements\x264(2)\x264
:-------------------
:set the audio bitrate to use here
:-------------------
set myabitrate=128
:-------------------
:set the video bitrate to use here
:-------------------
set myvbitrate=2500
:-------------------
:set the video frame rate you used here
:-------------------
set myfps=30
:-------------------
:End Configuration
:-------------------
mkdir %mypath%\temp
cls
echo AVISource("%mypath%\%mymovie%.avi") > "%mypath%\%mymovie%.avs"
echo Crop(0,0,-0,-0) >> "%D:\Documents and Settings\anthony.1046864403176\Bureau\mes telechargements\x264(2)\x264%\%mymovie%.avs"
echo ConvertToYV12() >> "%D:\Documents and Settings\anthony.1046864403176\Bureau\mes telechargements\x264(2)\x264%\%mymovie%.avs"
echo ======Encoding MP3 audio======[/codebox]
-
I can't record in 1280x720 , i can just record in 1280x768 And i don't want to record in 800x600 , so does 1280x768 work aswell?
SA doesnt have 1280x720 res, closest to it is 1280x768 and that works with this tut too.
-
a bug continue, it's it
bitrate = 2500
echo ======= x264 pass 1/3 ========
"bin\x264.exe" -p 1 --bitrate %2500% --ref 3 --bframes 3 --subme 6 --weightb --analyse all --8x8dct --qpmin 4 --qpstep 6 --merange 24 --me umh --progress --no-psnr --stats "temp\x264.stats" --output NUL "%mymovie%.avs"
echo ==============================
echo.
echo ======= x264 pass 2/3 ========
"bin\x264.exe" -p 3 --bitrate %2500% --ref 3 --bframes 3 --subme 6 --weightb --analyse all --8x8dct --qpmin 4 --qpstep 6 --merange 24 --me umh --progress --no-psnr --stats "temp\x264.stats" --output NUL "%mymovie%.avs"
echo ==============================
echo.
echo ======= x264 pass 3/3 ========
"bin\x264.exe" -p 2 --bitrate %2500% --ref 3 --bframes 3 --subme 6 --weightb --analyse all --8x8dct --qpmin 4 --qpstep 6 --merange 24 --me umh --progress --no-psnr --stats "temp\x264.stats" --output "temp\%mymovie%.264" "%mymovie%.avs"
echo ==============================
echo.
-
You do have AviSynth installed?
If you've installed any plug-ins, delete them and do a re-install of AviSynth.
-
Someone should make a tut for the MeGUI thing. <_<
-
It's pretty easy to use, although I can't render with it, or this tut because my Avisynth installs are just gay , I've got Daffys MP4 profile though .
-
I've got Daffys MP4 profile though .
me too but i stick with WMV 720p Extreme quality cause i can't get it to work
i'm sure it will work  for me once but that time is not arrived yet
-
always nothing
the bug persist... a person can test my bat file for me? For view if it goes... And repairs errors, if it's possible, thanks^^
http://rapidshare.com/files/41190803/makemp4.bat.html (http://rapidshare.com/files/41190803/makemp4.bat.html)
-
I just used this for my video highlights of the footy games - seems to work pretty well. Will let the Norwegian duck judge it though if he's up for it
-
Needed tools for mp4 playback (http://memorex.neolain.lv/x264-playback.rar)
-
Just wait for the new .*** tutorial
-
If it's coming today, I can wait to render the HQ of something .
-
Just wait for the new .*** tutorial
hmm, I wonder what it's called
but did you know it was made by russians?
-
I did .
-
10 min 14 sec. How much bites i lost ???
-
The link to the x264 codec doesn't work anymore
-
Might as well use the new mkv tutorial instead
-
Nah , that one's too hard for me And I can't see the difference between .mp4 and .mkv so.
-
Alright, you could grab the newest version from here then: http://www.x264.nl/ (http://www.x264.nl/)
Also added to the first post, thanks for the heads-up.
EDIT: Aaah bugger... the rest of the files aren't included, i'll do a quick look-around.
EDIT: Found them, updated the x264.exe and changed the x264 settings to the same as those i'm using in the mkv tutorial so the quality should be just as good, they're added to the first post now.
-
Followed the tutorial and tried it now few times. It converts the wav data to m4a but it looks like it isn't executing the x264 commands
(http://s3.directupload.net/images/080302/9tmb2scx.jpg)
-
Ah fuck, edit the makemp4.bat and remove two of the "-" lines before where it says "ref" on each pass so it says "--ref" instead of "----ref"
-
Works now. Thanks
btw. do you need to set "myfps=25" when I render a GTA:SA Movie?
-
Works now. Thanks
btw. do you need to set "myfps=25" when I render a GTA:SA Movie?
Yes and its works, i render a 25fps 1024x768 SA vid with this tutorial without any problems.
The only shit was when i have to correct the "----" to "--".
And you don't even have to use Huffyuv. I render an uncompressed avi from Vegas and it works with this tut.
-
Edit: Nevermind