View Full Version : THandBrake 1.2 - Batch GUI for Handbrake


ozok
18th January 2013, 02:08
THandBrake (formerly Smallx264) is a batch GUI for Handbrake.

--Features
-Select between multiple audio/subtitle tracks or select all
-If subtitle file (srt) with same name as source exists, it can be soft-coded to output.
-Device profiles (Android, iPod etc)
-User profiles
-Preview option
-Portable version available
-Video Filters
-Manual or auto cropping

https://a.fsdn.com/con/app/proj/smallx264/screenshots/2014-06-30%2018_35_30-THandBrake%201.2.png

You can download setup from here (https://sourceforge.net/projects/smallx264/).

Suggestions and bug reports are, as always, welcome.

Please note that this program uses the latest HandBrakeCLI build, so there can be problems. You can always download a different build, rename files properly and copy them to the program folder. As long as there are no command changes, it should work without a problem.

fantasmanegro
18th January 2013, 05:39
maybe preview???

detmek
18th January 2013, 20:55
No choice for CRF mod in GUI? I added -q 20 in Other options for CRF encoding (it doesn't work always?!) but GUI option would be better. And how to add subtitles? Should those be muxed into input file? Or I can add external subtitles too?
BTW, very simple and nice looking GUI.

ozok
18th January 2013, 21:21
I'll add quality option in the next release. Srt files must be same name as video (video.mov video.srt). Internal subtitles are not processed only external srt ones. I'll edit first post so it explains it.

@fantasmanegro preview like in TX264? A clip with length of 10-20 sec?

detmek
18th January 2013, 22:58
Yes, it works if movie and subtitles have the same name. Thanks. So, I will just need quality option as I don't use bitrate based encoding. DVD can be encoded if it is ripped with MakeMKV, right (I didn't test)?

docholliday
18th January 2013, 23:13
it doesn't have Auto Crop...

detmek
18th January 2013, 23:46
it doesn't have Auto Crop...

Other options.

ozok
19th January 2013, 00:25
@detmek if you can encode it with offical gui, it should work with this one too.

ozok
19th January 2013, 16:14
Update:

--0.1.1
-Added: Constant quality option (thx to detmek)
-Added: Option to add a folder
-Added: FPS options
-Added: Smallx264 will remember last opened directory
-Fixed: Windows 7 taskbar progress wasn't reseted after stopping
-Updated: AlphaSkins to 8.15

detmek
19th January 2013, 17:45
Thanks. It works just fine with CRF mod. Lame encoder uses V settings, right? If I set Lame 128kbs MediaInfo reports output audio as VBR. Fine with me, I preffer VBR but want to be sure.

ozok
20th January 2013, 23:30
No, only bitrate is passed. I do not know why mediainfo shows it like that.

detmek
21st January 2013, 00:04
You are right, its MediaInfos fault. But, I noticed two things:
1. If I set MP4 as output format, audio will always be encoded with AAC, no matter what format I choose and there is no warrning.
2. If I choose Vorbis for audio and MKV output, audio will be encoded to mp3.

ozok
26th January 2013, 00:48
Sorry for delayed response detmek. I'll look into these problems.

ozok
26th January 2013, 19:23
@detmek i cannot reproduce neither of the problems.
1. I can select container as MP4 and audio codec as Lame.
2. I can get vorbis audio in MKV container.

detmek
26th January 2013, 22:22
Here is what I get:
Settings for MKV (MKV selected in Advanced options):
https://dl.dropbox.com/u/19804113/Forumi/Fajlovi/doom9/Smallx264test/mkv.png
MediaInfo log (https://dl.dropbox.com/u/19804113/Forumi/Fajlovi/doom9/Smallx264test/Diablo3-1encode.mkv.txt)
Settings for MP4 (MP4 selected in Advanced options):
https://dl.dropbox.com/u/19804113/Forumi/Fajlovi/doom9/Smallx264test/mp4.png
MediaInfo log (https://dl.dropbox.com/u/19804113/Forumi/Fajlovi/doom9/Smallx264test/Diablo3-1encode.mp4.txt)
Links to test files:
Original (https://dl.dropbox.com/u/19804113/Forumi/Fajlovi/doom9/Smallx264test/Diablo3-1.mkv)
MKV (https://dl.dropbox.com/u/19804113/Forumi/Fajlovi/doom9/Smallx264test/Diablo3-1encode.mkv)
MP4 (https://dl.dropbox.com/u/19804113/Forumi/Fajlovi/doom9/Smallx264test/Diablo3-1encode.mp4)

ozok
26th January 2013, 23:52
Update:

--0.2.0
-Added: Preview (thx to fantasmanegro)
-Added: HandBrake log
-Added: Change log, commandlines button
-Added: Changed skin
-Updated: AlphaControls to 8.16

ozok
27th January 2013, 00:03
I still cannot reproduce the problem. I set the same settings and i can get proper results. 0.2.0 includes HandBrake output log, maybe you may find something useful there.

detmek
27th January 2013, 00:12
I installed new version over older one and it works as it should - lame in mp4 and vorbis in mkv. Although, I installed v0.1.1 over the first version. Maybee that created a problem.
BTW, thanks for output log. It is very usefull option to see x264 stats.

magsoud
28th January 2013, 18:11
1) Problem in Resolution, my video Resolution 800x336
Change to 1280x... with keep aspect ratio ticked!
but output video Resolution 1072x488
Please Add This Command:
--width 1280 --loose-anamorphic

2) Please Add 2pass - Fast 1Pass
Command:
--two-pass --turbo

Teşekkür ozok

detmek
28th January 2013, 20:14
1) Problem in Resolution, my video Resolution 800x336
Change to 1280x... with keep aspect ratio ticked!
but output video Resolution 1072x488
Please Add This Command:
--width 1280 --loose-anamorphic

2) Please Add 2pass - Fast 1Pass
Command:
--two-pass --turbo

Teşekkür ozok

--input "C:\New folder\Diablo3-1.mkv" --output "C:\Diablo3-1.mkv" --encoder x264 --x264-preset superfast --x264-tune film --x264-profile high --vb 1500 --two-pass --turbo -w 1080 --loose-anamorphic --crop autocrop --aencoder vorbis --ab 128 --mixdown stereo
Fast First pass is there.
It seams that GUI passes wrong resize parametars. -w 1080 iz for 1280x720, -w 1280 is for 1440x1080 and -w 1440 is for 1920x1080. If you choose 1080x720 in dropdown meni GUI passes just -w, without resolution.

ozok
29th January 2013, 23:54
@detmek and @magsood, please try this exe: https://dl.dropbox.com/u/9617171/SmallX264.7z. As detmek said, GUI passed commands wrong.

@jq963152 you can also try exe above, it adds level option.

"New skin" should have been "Changed skin", i actually did not add skin, just changed it.
I am using AlphaControls LE. It is a component for Delphi.
exe above has "Disable skinning" button in "Advanced options" window.
I'll look into nightly builds.

detmek
30th January 2013, 01:13
Thanks. It seems to work just fine. I also tested it with latest Handbrake nightly build and so far I have no problems.

magsoud
30th January 2013, 10:17
@ozok, Add "2pass - Fast 1Pass".

ozok
30th January 2013, 15:53
@magsood "--two-pass --turbo" is already used if two pass is selected. Do you want an option to disable it?

ozok
30th January 2013, 16:29
Update:
--0.2.1
-Added: "Level" option (thx to jq963152)
-Added: Option to disable skinning (thx to jq963152)
-Added: "Auto" item for profiles, presets etc (thx to jq963152)
-Added: Balloon hint will show up when encoding is done
-Added: Option to see info about selected file
-Fixed: Problems with video sizes (thx to magsood and detmek)
-Fixed: Preview button was not disabled during an encode
-Updated: HandBrakeCLI to nightly build svn5219 (thx to jq963152)

magsoud
30th January 2013, 23:52
@magsood "--two-pass --turbo" is already used if two pass is selected. Do you want an option to disable it?
http://s55.img-up.net/2pass3228.jpg

ozok
10th February 2013, 00:03
Update:
--0.3.0
-Added: "Fast first pass" option
-Added: Menu
-Added: A few minor GUI improvements
-Updated: AlphaControls to 8.17
-Updated: HandBrakeCLI to nightly build svn5243

fantasmanegro
10th February 2013, 02:09
Update:

Questions...

Selected Resolution is store or display?

When keep aspect ratio is checked, output height can be update in resolution combobox?

Enviado desde mi GT-I9300 usando Tapatalk 2

ozok
10th February 2013, 02:44
I do not know what you mean by store or display but these are the commands for two cases:

Keep aspect ratio checked:
--width 512 --loose-anamorphic

Keep aspect ratio not checked:
-w 512 -l 384 --custom-anamorphic

Even if you can select height when "keep aspect" is checked, only width value will be used.

fantasmanegro
10th February 2013, 03:16
I do not know what you mean by store or display but these are the commands for two cases:

Keep aspect ratio checked:
--width 512 --loose-anamorphic

Keep aspect ratio not checked:
-w 512 -l 384 --custom-anamorphic

Even if you can select height when "keep aspect" is checked, only width value will be used.

Handbrake stores one resolution and display another one according to aspect ratio

And you have predefined resolutios in combobox, for example 16:9 aspect ratio if i pick 640 x 480 and check keep aspect ratio the combobox displays 640 x 480... is there a way to display 640 x 360 when keep aspect is checked ?



Enviado desde mi GT-I9300 usando Tapatalk 2

ozok
10th February 2013, 12:30
You should not worry about it. HandBrake calculates height itself according to aspect ratio and width.

Pharaoh i7
10th February 2013, 14:18
ive always been curious about this is there anyway to incorporate Nero encoder for audio to mux with handbrake cli so users can have options for he aac

detmek
10th February 2013, 14:30
If i set resolution and check Keep aspect ratio encoded picture is OK but if I do not check Keep aspect ratio after encoding picture is distorted. Smallx264 (or HandBrakeCLI) does not set correct pixel aspec ratio for encoder. Can this be changed so the GUI can set correct pixel aspect ratio for encoder?

ozok
10th February 2013, 18:10
ive always been curious about this is there anyway to incorporate Nero encoder for audio to mux with handbrake cli so users can have options for he aac
You can use TX264 with Nero but it uses x264. It can be done by replacing x264 with HB in the tool chain, but it is out of the scope of Smallx264.

If i set resolution and check Keep aspect ratio encoded picture is OK but if I do not check Keep aspect ratio after encoding picture is distorted. Smallx264 (or HandBrakeCLI) does not set correct pixel aspec ratio for encoder. Can this be changed so the GUI can set correct pixel aspect ratio for encoder?
If you do not check keep aspect, HB most probably encodes to that given width and height values. So it's possible that your video gets distorted. I don't if there is a way to both select widthxheight and define a different aspect ratio.

detmek
10th February 2013, 19:18
...
I don't if there is a way to both select widthxheight and define a different aspect ratio.

Well, there is parametar: --pixel-aspect xx:yy to use with --custom-anamorphic. This will pass correct SAR for x264 encoder. But, I think that GUI needs to calculate and set this parametar.

fantasmanegro
10th February 2013, 19:33
Well, there is parametar: --pixel-aspect xx:yy to use with --custom-anamorphic. This will pass correct SAR for x264 encoder. But, I think that GUI needs to calculate and set this parametar.

I guess this will be out of "easy" gui... in that case it will be helpfull to:

If keep aspect ratio off

Show 640x480

If keep aspect ratio on

Show 640xHEIGHT where HEIGHT is calculated by handbrake according to source aspect ratio...

That is what i was asking for...

Enviado desde mi GT-I9300 usando Tapatalk 2

magsoud
12th February 2013, 18:13
@ozok
Add Original Video Bitrate.
http://forum.doom9.org/attachment.php?attachmentid=13272&d=1360689170

detmek
13th February 2013, 18:42
@masgood Why? What is the usefulness of the original bitrate? It won't keep the quality.

magsoud
20th February 2013, 09:07
@masgood Why? What is the usefulness of the original bitrate? It won't keep the quality.
To change the resolution only in some movies with normal bitrate!

detmek
20th February 2013, 16:05
There is no such thing as normal bitrate. If you change a resolution you have to recompress. And when you recompress, with same or even higher bitrate you will have quality loss. So there is no point in having/keeping original bitrate.

ozok
9th March 2013, 00:42
Update:
--0.4.218
-Added: User profiles
-Fixed: In some cases size commands were used unnecessarily
-Fixed: Channel option was not saved
-Updated: HandBrake to svn5311
-Updated: AlphaControls to 8.20

ozok
17th April 2013, 17:03
Update:
--0.5.0
-Added: New GUI layout and skin
-Fixed: Moving items caused problems in some cases
-Updated: HandBrake to svn5389
-Updated: AlphaControls to 8.31

dlarge
10th May 2013, 11:43
hi Ozok,

i really love this nice and easy to use tool. I have seen a little issue if i use CRF encoding, the 2-pass button is avaiable. i think this settings are better if you greyed out this button if the user work with crf encoding.;)

have you planning new features in the next version. i missed the job feature for different settings at more files?

cheers dlarge500:D

ozok
10th May 2013, 12:25
@dlarge thx for the bug report, I'll fix it with next release.

I don't have much in mind for new features, auto-update, audio track selection and some bug fixes maybe.

ozok
13th May 2013, 22:58
Update:
--0.6.0
-Added: Options to select between audio and subtitle tracks
-Added: Device presets (Android, iPod etc)
-Added: Auto-update checker
-Added: Update checker will now ask user if they want to visit homepage
-Added: A new progress window
-Added: Total progress will be updated smoothly
-Added: Changed skin
-Fixed: Two pass options were still available even if user selected quality (thx to dlarge)
-Updated: HandBrake to svn5454

ozok
13th May 2013, 23:00
hi Ozok,
...
i missed the job feature for different settings at more files?
...

I missed that comment. This is a batch gui, so same settings are applied to all files.

ozok
16th May 2013, 20:15
Update:

--0.7.0
-Added: Option to burn-in internal subtitles
-Added: Sampling rate option
-Added: Popup menu to file list
-Added: About window instead of messagebox
-Fixed: Preview gave "index out of range" error
-Fixed: Preview didn't create proper preview file
-Updated: madExcept to 4.0.7

ozok
3rd June 2013, 00:03
Update:
--0.8.0
-Added: Seperate 32bit and 64bit builds
-Added: Option to select all audio/subtitle streams
-Added: Option to hide/show settings
-Added: When done Smallx264 will give a sound warning
-Added: Audio options, DRC and gain
-Added: MediaInfo will be used to show file info
-Added: A few UI changes
-Added: Passed time will shown during encoding
-Fixed: Closing info window didn't reset info list
-Fixed: Removed "+" from audio/sub track lists
-Fixed: Level option wasn't saved
-Fixed: Samsug profiles didn't set correct resolution
-Updated: HandBrake to 0.9.9

duplakappa
2nd July 2013, 09:54
Hello ozok, great software, it has more options than handbrake! *.* I have this problem, I cant encode videos to a high10 profile, I selected the option but i think that in the second pass the option is ignored...
Thanks.

ozok
2nd July 2013, 14:31
Sorry I must have forgotten to remove them. HandBrake cannot encode to 10bit at the moment, so you should ignore these profiles. I will remove them asap.

ozok
2nd July 2013, 15:29
Update:
--0.9.0
-Added: Portable version
-Fixed: Two pass progress was wrong
-Fixed: High10, High444 and High422 profiles are removed (thx to duplakappa)
-Updated: HandBrake to svn5627

duplakappa
2nd July 2013, 19:58
D: but can you add this options on the future? i mean, can you add this option to "improve" smallx264 even if handbrake doesn't has this option? (next version or something like that), liked your smallx264 because you had the high10 profile. hope you can add it!!! Thanks for your reply.

ozok
2nd July 2013, 19:59
TX264 has high10 support, it uses x264.

ricardo.santos
26th July 2013, 22:02
Hi Ozok

Im doing some tests with handbrake and smallx264 is invaluable for newbies as it shows the Syntax used.

i have a 1280x720 video with black bars (88px each), when resizing to 640 or 800 width and selecting autocrop and maintain aspect ratio it resizes to 640x352 and 800x448 when it should be 640x272 and 800x336, its not cropping the black bars.

Do you have anny suggestions? While googling about it i found the following :
HB has a good autocrop algorithm that runs during its analysis run (-t0 option)


The log shows the 88px bars but further down in the log it doesnt.
[21:57:17] libhb: scan thread found 1 valid title(s)
+ title 1:
+ stream: C:\Users\Utilizador\Desktop\source.mp4
+ duration: 00:02:34
+ size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 24.000 fps
+ autocrop: 88/88/0/0
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:02:34
+ audio tracks:
+ 1, Unknown (aac) (2.0 ch) (iso639-2: und)
+ subtitle tracks:
[21:57:17] 2 job(s) to process
[21:57:17] starting job
[21:57:17] sync: expecting 3703 video frames
[21:57:17] job configuration:
[21:57:17] * source
[21:57:17] + C:\Users\Utilizador\Desktop\source.mp4
[21:57:17] + title 1, chapter(s) 1 to 1
[21:57:17] + container: mov,mp4,m4a,3gp,3g2,mj2
[21:57:17] + data rate: 2788 kbps
[21:57:17] * destination
[21:57:17] + C:\Programas noinstall\smallx264_32\source_1.mp4
[21:57:17] + container: MPEG-4 (mp4v2)
[21:57:17] * video track
[21:57:17] + decoder: h264
[21:57:17] + bitrate 2594 kbps
[21:57:17] + filters
[21:57:17] + Framerate Shaper (0:27000000:1125000)
[21:57:17] + frame rate: same as source (around 24.000 fps)
[21:57:17] + Crop and Scale (640:352:0:0:0:0)
[21:57:17] + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 640 * 352
[21:57:17] + loose anamorphic
[21:57:17] + storage dimensions: 640 * 352, mod 0
[21:57:17] + pixel aspect ratio: 44 / 45
[21:57:17] + display dimensions: 625 * 352

ozok
27th July 2013, 02:36
I was actually running some test encodes with my other HB GUI DVD2x264 and I realized auto-crop didn't work as I thought. Smallx264 and DVD2x264 basically have the same command line generating/file information extraction code, so they also share same problems. In DVD2x264, I solved this issue by using autocrop values determined by HB (88/88/0/0 in your case) and it seems to be working fine. I can do the same thing with Smallx264.

ozok
27th July 2013, 22:00
Update:
--0.9.1
-Added: Trimmer
-Added: Time left will be shown
-Added: Custom size option
-Improved: Autocropping
-Updated: HandBrake to svn5660
-Updated: AlphaControls to 8.42
-Updated: MediaInfo to 0.7.64
-Updated: Audio codecs according to latest HB version
-Fixed: A few minor UI problems

ricardo.santos
30th July 2013, 15:16
Thanks for the update, the cropping works.

ozok
31st July 2013, 21:11
@ricardo.santos thanks for confirming it.

ozok
2nd November 2013, 03:52
Update:
-1.0.0
-Added: Only files with valid duration will be added to the list
-Added: Option to disable audio (codec none)
-Added: "File size" option
-Added: A few GUI changes
-Added: A better handling for disabling skin
-Added: When "Select All" and "Burn-in" is selected, first sub track will be burned
-Added: Option to specify subtitle languages (en,eng,english etc)
-Fixed: "Disable Skin" button was not visible
-Updated: AlphaControls to 8.48
-Updated: HandBrake to svn5863

ozok
7th November 2013, 18:16
Update 1.1
Change log:
-1.1.0
-Added: "Add Folder Tree" option
-Added: Folder of the source will be created in the output
-Reverted: HandBrakeCLI to a previous build

https://sourceforge.net/projects/smallx264/ (https://sourceforge.net/projects/smallx264/)

Ruriko
3rd February 2014, 07:10
Does this have a linux version?

ozok
3rd February 2014, 09:18
No, it doesn't.

Ruriko
12th April 2014, 14:13
Is there a way to set the priority when encoding?

ozok
12th April 2014, 14:35
No, HandBrakeCLI is run in the lowest priority though.

Ruriko
14th April 2014, 04:40
No, HandBrakeCLI is run in the lowest priority though.

Actually I kind of want it to be running in Highest priority

BK-201
26th May 2014, 06:24
I don't know if this has been asked, but it there a way manually crop videos?

ozok
26th May 2014, 17:46
I don't know if this has been asked, but it there a way manually crop videos?
No. I can add it though. I have made a few changes but had a chance to prepare a release.

Zerondar
20th June 2014, 15:45
really nice program
would be nice if we were able to queue more stuff while it's already encoding
so it would be possible to make 1 giant queue with 480p, 720p encodes
but that's just a minor luxury problem

as stated really nice program, hardly have any problems with it (encoding wise)


i really like how it auto creates folders for the encoded files (saves me alot of time sorting through stuff as i usually set up several hundreds of episodes to encode)

ozok
30th June 2014, 16:46
1.2 Changes:
-Added: Interface changes
-Fixed: "File Size" option wasn't saved
-Fixed: Progress list wasn't visible if skin was disabled
-Fixed: "Select all" subtitle selection didn't include srt files in some cases
-Fixed: Settings weren't saved when some post-encode options were selected
-Renamed: Program to "THandBrake"
-Updated: HandBrakeCLI
-Updated: MediaInfo to 0.7.69

Download location (https://sourceforge.net/projects/smallx264/)

Edit:
@Zerondar do you mean like Tx264? I'll see what I can do about it.

Zerondar
1st July 2014, 06:29
not really
@ tx264 you can "add more" but it auto chooses the same settings as the first file you selected to be encoded

i meant an "add more" button where you can choose to encode using a different profile/bitrate

Reason being:
I mass encode anime series (480p/720p) setting up hundreds of episodes to be encoded
with smallx264 i have to wait for the 480p batch encode series to finish before i can start queueing 720p ones.
These usually finish encoding while i'm either at work or asleep (or asleep at work :P )


ah well even if such a feature is not added, it's still a fantastic piece of software :-)

Ruriko
15th July 2014, 09:25
I found a minor bug: When you select a subtitle track the video that you currently have selected becomes de-highlighted so I wish it not de-highlight cause I forget which video I was selecting especially if you have a long list of videos

ozok
15th July 2014, 15:09
I found a minor bug: When you select a subtitle track the video that you currently have selected becomes de-highlighted so I wish it not de-highlight cause I forget which video I was selecting especially if you have a long list of videos
Thanks.