Log in

View Full Version : super simple batch encoding


kakomu
4th February 2008, 16:17
Hello all. I'm looking for batch encoding. Here's the story: I have a bunch of really nice looking TV episodes I encoded in h.264 a while ago (1-1.5 years ago) in mkv w/ ASS subtitles.

I also have a job with a 30 minute train ride. Perfect for watching an episode on my iPod.

I've been using Videora, because it's the easiest means to encode videos into iPod compatible formats. I've found it frustrating to get all settings exactly right with x264 and mp4box.

Anyways, older DivX and XviD files encode just fine using Videora. Very simple AviSynth scripts with lanczos resize also encode just fine when used with h.264 and mkv files..

However, the TV episodes in question are widescreen and require a slightly more complex avisynth script (whereby I resize to 320x180 (16x9), add black borders to fill it to 320x240 and hard code the subtitles). For whatever reason, this file is not compatible with my iPod. I couldn't tell you why. However, if I encode the file into XviD as a preliminary encode and then use Videora, it works. It's a little roundabout, but works.

Now, on to the request: I need to easily encode 26 or more avisynth scripts into XviD. Now, I know that programs like VDub and MeGUI do batch encoding and can encode that many files. Those files also require that I open one file at a time and that will involve a lot of clicking. MeGUI won't even mux the audio with the video. What I really want is something drag and drop. Something where I can select all the files at once and press a button after I've made all of my encoding settings.

Does such a program exist?

Edit: Upon further searching I found this:
http://krazz.net/retnyg/
Anyone have any experience with this?

Ranguvar
5th February 2008, 00:05
Yes... try both XviD4PSP (both the old 4.115 version and the new 5.xxx) and Ripbot264.

burnix
9th February 2008, 10:22
I have exactly the same problem and so i decided to write my own in java. But dont have enough time so be patient. My goals was to select my file, my destination space (1/2 cd, 1cd, manually) and just press ok to make the divx file.

20-40
9th February 2008, 18:51
I had a similar "problem" few years ago. Finally, after my brain has bleeded out ( for windows and avisynth "(" and ")" mean different thing), best solution was to use Asynther (very, very helpful shell extension) and write a template for it - In2XviD.avst:

#ASYNTHER In2XviD
[DirectShowSource("%f")]
ConvertToYV12()
AddBorders(0,16,0,16)
[TextSub("%f.ssa")]
EnsureVBRMP3Sync()
#AssumeFPS(25,true)
MDeblock()
Undot()
ResampleAudio(48000)

and later I have right-clicked on every input file (like zillion times, but I call it "preparations" to comfort myself) and "send it" to this Asynther template.
Then, I've run Ffmpeg in re-encode.bat or similar

for %%f in (*.avs) do (ffmpeg.exe -i %%f -y -an -s cif -vcodec mpeg4 -b 384k -mv4 -trell out.mp4

ffmpeg.exe -i %%f -vn -acodec aac -ab 128k audio.mp4

mp4box -merge out.mp4 audio.mp4 %%f.mp4)

changing avisynth scripts and ffmpeg options accordingly. However, some .mp4 and .mkv inputs are hard cookies, introducing strange and unpredictable audio delays (from 1.5 to 2 seconds in positive) and only guys who have encoded such masterpieces, know why they done it. Such specimens I've re-muxed later with negative audio delay.

pc_speak
10th February 2008, 04:17
I need to easily encode 26 or more avisynth scripts into XviD. Now, I know that programs like VDub and MeGUI do batch encoding and can encode that many files. Those files also require that I open one file at a time and that will involve a lot of clicking. MeGUI won't even mux the audio with the video. What I really want is something drag and drop. Something where I can select all the files at once and press a button after I've made all of my encoding settings.

Run VirtualDubMOD and process the first AVS script. Maybe add vdub filters, compression etc.

When you are ready:
Save as... (tick 'Don't run this job now ...') - Save
Open up Job Control (F4)
Got to 'Edit/Process directory' and locate the AVS folder.
Select a Target directory, usually the same AVS folder.

A job will be created for ALL AVS scripts. (including the first 1 again. Delete it)
Press Start. Sit back. Relax.