View Full Version : Conditional (re)encoding of videofiles
errorsmith
9th December 2011, 14:58
Hi
I have a bunch of videofiles I recorded with several devices, ranging from cellphones to camcorders. The smallest file is 320x240, the largest ones have 1080p. I want to reencode this files into mkv to save space on my harddisk.
I have the following in mind:
If a file has a width <= 720: reencode it with its original resolution at 25fps.
If a file has a higher resolution than this, downscale and reencode the file with a width of 720 at 25 fps.
Aspect ratio should be kept in any case, audio should be encoded into mp3, 128kbps cbr.
Is there any gui wich can do this or do I have to write a script by myself?
with kind regards,
errorsmith
fantasmanegro
9th December 2011, 19:31
i guess you have to write a script... JScript or VBScript in windows or bash in linux...
errorsmith
9th December 2011, 20:22
Thank you for your reply!
I'll try to cludge something together for bash in FreeBSD.
greetings,
errorsmith
Zathor
10th December 2011, 11:48
If a file has a width <= 720: reencode it with its original resolution at 25fps.
If a file has a higher resolution than this, downscale and reencode the file with a width of 720 at 25 fps.
Aspect ratio should be kept in any case, audio should be encoded into mp3, 128kbps cbr.
Is there any gui wich can do this[...]?
Yes, the OneClick tool in MeGUI can do that (and I believe other GUIs can do that as well). If you want to try it I suggest to use that build here as there have been a lot of improvements in the OneClick tool:
http://forum.doom9.org/showthread.php?p=1541445#post1541445
In you OneClick profile you have to select 720 as output resolution, select AutoCrop if you like, change the AudioSettings to MP3 128k and the VideoSettings to whatever you like.
errorsmith
10th December 2011, 13:27
Hi
I used to use megui to encode single video files and looking for alternatives for the following reasons:
First: As far as I understood the one-click encoder, it could not leave the output resolution untouched if it is lower than a specific value, 720 in my case, but it will upscale videos wich i do not want to happen.
Second: I have to manually add every single video file and can not add a bunch of files or a folder (wich is essentially the same). As I'm talking of ca 150 files (or a bit more), this would be a pain in the back to do. While I can leave megui in batch mode unattended for days, I have to add the files one per one wich would only be an option if there isn't any other way.
In any other way megui is a great tool wich I will continue to use. just before i read the reply i stumbled at ffcoder wich has an option for using avs and provides a template wich does exactly what I want. Unfortunatly it seems to freak out on .mpg files or if the file has no sound.
regards,
errorsmith
Alfeuss
10th December 2011, 22:05
For batch processing try Mediacoder
click picture tab select 1280X720
on right click scale tab tick off Height, and Shrink only under the auto adjust option.
than set your other option under the audio tab
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.