I'd like to be able to automate my video conversions. I need to convert a lot of h.264 MP4 videos to Xvid AVI. I'm trying to set it up so a folder is monitored and the videos are automatically converted.
I've tried the old Handbrake 0.9.3 (last version with xvid) and DropFolders. I use this string and DropFolders tells me it's and invalid codec.
-e xvid -E lame -2 -s 175
I tried using HandbrakeCLI directly and it looks like it's going to do it but then gives me a bunch of exception errors. I'm assuming it needs the MP4 to be demuxed first?
I've been using this batch script to run avidemux2_cli, but I hate having to move all the files around myself.
set avidemux="D:\Locked\Programs\avidemux_2.5_r7200_wi n32\avidemux2_cli.exe"
set videocodec=Xvid
set audiocodec=MP3
for %%f in (*.mp4) do %avidemux% --video-codec %videocodec% --audio-codec %audiocodec% --force-alt-h264 --load "%%f" --save "%%f.avi" --quit
Problem is, I'd like to have the AVI files be the same file size as the original MP4s, but apparently avidemux2_cli doesn't support setting a target file size.
+ Reply to Thread
Results 1 to 5 of 5
-
-
If you use 2pass encoding you can set target file size,
Code:--video-conf cq=q | cbr=br | 2pass=xx Select the encoding mode: constant quality (cq=quality), constant bitrate (br=bitrate) or 2 pass mode, in that case, give the final size in megabytes.
-
Thanks. That looks like it's doing the trick.
Now I just need to move the original file to a different folder after it is converted so I can keep originals around in case something goes wrong. How do I get the batch to do that?
Even more awesome, maybe there's a way to have the batch move the original to a different folder and also check that same folder for older files and delete them? Say, delete all files that are a week or older. -
Turns out, --video-conf 2pass=175 resulted in a file that was 196MB. That doesn't work for me. I wish it worked like MeGUI and other apps and took the audio size into account.
Looking at MCE-Buddy, it looks like it can't convert to MP3 audio, just AC3. I don't like that, but I might be able to live with it. Also, it doesn't allow for setting a target file size. Unless it all can be done by modifying the profiles it uses.
Plus, I can't tell how to set it to run in the background. Unless it does that automatically and doesn't show any evidence of it.
Similar Threads
-
How to convert an h.264 MKV with softsubs to an h.264 MP4 with hardsubs.
By hawk16zz in forum User guidesReplies: 4Last Post: 27th Apr 2010, 11:41 -
How Can I convert avi(xvid) to ipod tv out (H.264)?
By felix in forum Video ConversionReplies: 8Last Post: 1st Sep 2008, 10:27 -
How to convert AVI to MP4 using H.264 encoder without losing video quality
By VidHunter in forum MacReplies: 0Last Post: 21st Dec 2007, 01:04 -
What is the best program to convert from H.264 mp4 to H.264 avi?
By Stealth3si in forum Video ConversionReplies: 6Last Post: 15th Sep 2007, 10:11 -
Converting .avi (Xvid) to .mp4 or .mkv (H.264 or x.264) w/ subs
By Tensai in forum Video ConversionReplies: 4Last Post: 18th Jul 2007, 09:25