PDA

View Full Version : batch encoding WMV9 AVI into x264 MP4?


NiGHTsC
25th September 2008, 23:11
Can someone teach me how to make a batch file so I can encode my 37 AVI(WMV9&MP3) files into MP4 with video and audio using MeGUI video/audio profiles.

this is AVS setting
DirectShowSource("J:\001.avi",fps=23.9759856527702,audio=false)
#deinterlace
#crop
#resize
#denoise
my profile of video, encoding to x264
--pass 2 --bitrate 1000 --stats ".stats" --ref 3 --mixed-refs --no-fast-pskip --bframes 2 --b-pyramid --bime --weightb --trellis 1 --analyse p8x8,b8x8,i4x4,p4x4 --merange 24 --threads auto --thread-input --progress --no-psnr --no-ssim --output "J:\@MP4.mp4" "J:\@MP4.avs"
and audio, encoding to NeroAAC MP4
<?xml version="1.0"?>
<GenericProfileOfAudioCodecSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>456</Name>
<Settings xsi:type="NeroAACSettings">
<ImproveAccuracy>true</ImproveAccuracy>
<ForceDecodingViaDirectShow>false</ForceDecodingViaDirectShow>
<DownmixMode>KeepOriginal</DownmixMode>
<BitrateMode>VBR</BitrateMode>
<Bitrate>128</Bitrate>
<Delay>0</Delay>
<DelayEnabled>false</DelayEnabled>
<AutoGain>false</AutoGain>
<Profile>Auto</Profile>
<Quality>0.23</Quality>
<CreateHintTrack>false</CreateHintTrack>
</Settings>
</GenericProfileOfAudioCodecSettings>

I'll merge Video and Audio into MP4 one by one later
but I seriously need a batch file to encode them first.

Thank you.

leiming2006
26th September 2008, 06:42
Would you like to have a try on my GUI? it can help you to achieve this.
http://forum.doom9.org/showthread.php?t=112770
this is the configure and avs preset:
http://www.filesend.net/download.php?f=9b4dad693847894453b83bbf9e39c05d

click the "batch adding" button, select a folder to store the mp4 files, then select all the 37 avis.
then change to the "job" page, click "make bat", save your bat file.

please pay attention to readme file to know what files you need to run this gui (.net framework if you want to encoding audio, x264.exe, mp4box or mp4creator if you want it muxing for you, neroaacenc or enc_aacplus if you want to encoding audio)

NiGHTsC
27th September 2008, 20:16
Yes I checked, but skipped since I don't know much about the new settings.

awesome, can't believe you made the setting for me!
Just tried, looks not bad.
only different is I'm using Nero(ABR) instead of SSE2, cause I have only neroaacenc :D
Hope it won't bother much?

Thanx again.

leiming2006
28th September 2008, 15:21
Yes I checked, but skipped since I don't know much about the new settings.

awesome, can't believe you made the setting for me!
Just tried, looks not bad.
only different is I'm using Nero(ABR) instead of SSE2, cause I have only neroaacenc :D
Hope it won't bother much?

Thanx again.

Change to "more" page and change the encoder you are using.
and change to the first page, select the preset, press "save" button.
then this configure will use nero(abr).

glad to be of help :cool:

NiGHTsC
28th September 2008, 16:58
Yup, that's how I changed it :P

Thanx again, for the last time I think :D