Batch converting files

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
peterh337
Posts: 12
Joined: Sun Sep 25, 2016 8:23 am

Batch converting files

Post by peterh337 » Sun Dec 30, 2018 3:55 pm

Hello All,

I have a load of mp4 files which were rendered for about 50mbps, and I cannot play them at this bitrate via our system (a Humax T2 HD recorder with an ethernet port, feeding a Sony TV). The absolute max I can squeeze out of it is 15mbps, which is still ok for quality. They are 1920x1080 50/60fps.

Is there a way to batch process a whole directory, using a fixed output preset like this

Image
http://peter-ftp.co.uk/screenshots/2018 ... 535215.jpg

and (a) without changing the file names i.e. overwriting the original files, or (b) replacing the original files with "-15mbps" appended to the filename?

I believe the above settings will produce perhaps the best quality, but I am more than willing to be educated there also :) File size or processing time are irrelevant. The videos are mostly moving over landscape (from an aircraft) or skiing. The ski ones need a lot of bandwidth, although I can't really tell a difference between 15 and say 30 mbps.

Many thanks for any tips.

BTW the target is a Synology DS216 network drive, mapped to a drive letter under win7-64.

mduell
Veteran User
Posts: 6623
Joined: Sat Apr 21, 2007 8:54 pm

Re: Batch converting files

Post by mduell » Sun Dec 30, 2018 8:05 pm

No, HB won't overwrite the originals, since the first byte written would cause the input not to exist.

You can save your desired settings in a preset and use that for a batch, as well as set the autonaming convention in preferences.

As always you'd likely be better off using quality based encoding, with vbv limits to enforce a bitrate cap to cope with your playback environment's limitations.

peterh337
Posts: 12
Joined: Sun Sep 25, 2016 8:23 am

Re: Batch converting files

Post by peterh337 » Sun Dec 30, 2018 8:50 pm

Sure; one would need to create a temporary file, etc.

Is there somewhere a tutorial for how to use HB in this way?

Another approach might be a batch script (a .bat file) which invokes HB in a command line. Then one could do the renaming as required.

mduell
Veteran User
Posts: 6623
Joined: Sat Apr 21, 2007 8:54 pm

Re: Batch converting files

Post by mduell » Sun Dec 30, 2018 9:15 pm

The presets, audio/subtitle defaults, and automatic fine naming are all covered in the HB documentation. The quality of third party tutorials is very low and generally full of bad or outdated ideas.

There exist several batch scripts in a variety of languages for doing things like this in the CLI forum, or it's a pretty trivial task to write your own.

Post Reply