PDA

View Full Version : !HELP! Problem encoding game footage


wacodizzy
19th June 2006, 02:38
Hi,
For some time now I've been working on a gaming movie and after many hours of testing all kinds of encoding methods I found one that uses a ".Bat" file(can be found on http://users.telenet.be/wacoclan/Encoding/makemp4.rar ) that can be edited on many different levels.
The idea is to put both the uncompressed avi and wav file in a folder and run the bat file so it will encode music and image and also does the muxing afterwards.
At default settings it is configured to handle footage saved at 800*600,but when changing some parameters it can also handle other resolutions.
example:
800*600
echo Crop(0,4,-0,-4) >> "%mypath%\%mymovie%.avs"
1024*768
echo Crop(0,0,-0,-0) >> "%mypath%\%mymovie%.avs"
Like this the program will run without any errors and do the same job but at a higher resolution.
Now comes the "tricky" part... :D
So far I've used the following method:
-Record ingame on R_mode 8 taking targa screenshots(1280*1024/30fps)
-Load targa files into vitual dub,and save them as an uncompressed avi file(1280*1024/30fps)
-Load all uncompressed avi's into Sony vegas,edit them and save my final uncompressed avi into a folder where also my .bat file is situated.(800*600/30fps)
(a screenshot of my settings when saving the uncompressed final avi in vegas is located on http://users.telenet.be/wacoclan/Encoding/settings.JPG )
-Save my wav sound into the same folder
-Run the bat file
http://www.rfki.be/dizzy/link.html
(Here's an example how it looks after doing this)

I'm sure you'll agree that it looks ok,but the thing is that I want it to be widescreen.The usual way to do this when making a gamemovie on the Quake3 engine is recording at R_mode 11(856*480) so that the footage is recorded in widescreen and no cropping is needed afterwards.The only problem is that I don't know how to properly configure my bat file for this resolution so that it won't crash or give me a messed up moviefile in the end.I don't know if what I'm asking is possible and if the x264 codec will allow this,but I tought here would be the place to ask.
I would be extremely grateful if someone could help me with this.:)

Thx
Dizzy

check
19th June 2006, 06:08
Well, the thing is you recorded in 4:3 rather than widescreen, so the only way you can get to widescreen is by cutting stuff off the top or bottom. You can do this by changing the crop values (the second and forth are top & bottom respectively). Hope this helps.

DarkZell666
19th June 2006, 11:11
856*480 : this resolution isn't divideable by 16 (856/16 = 53.5), be very careful about that :)

I know that x264 has been updated to handle non-mod16 resolutions, but you use so many steps that anything non-mod16 could cause a crash at some point. Maybe you simply grab the latest x264 here : http://x264.nl/ (just in case ;))

One suggestion remove the cropping line and replace it by BicubicResize(640,352) for example. (640 mod 16 = 0 and 352 mod 16 = 0 so you should be safe with that ;)) Note : 640/352 = 1.81 which is widescreen :p (near to 16/9 = 1.78)