News for hackers. Stuff that matters.
Re:HandBrake 1.2.0 Released by fireattack on Saturday January 19, 2019 @05:25PM (#18949597)
Great software in term of both quality and active development, and I also have very positive experience interacting with their dev/contributors (reporting bugs etc.).

But not sure why this is on front page today, as it has been released almost a month isn't it?

Re:HandBrake 1.2.0 Released by justinator on Saturday January 19, 2019 @05:51PM (#18949729)
Perhaps they finally did put down that cocktail.
Re:HandBrake 1.2.0 Released by cookiecaper on Sunday January 20, 2019 @01:17PM (#18954532)
I've always been a little unclear on the barriers between Handbrake and its dependencies. Does Handbrake maintain custom forks/patchsets that get applied to ffmpeg, etc.? I knew Handbrake as a GUI for ffmpeg, and in my research, I have come across one or two things that implied there was something unique about their backend that wasn't yet upstream, but ultimately not much else.

Since you're familiar with the project's development, would you mind clearing some of this ambiguity up for me? Thanks.

Re:HandBrake 1.2.0 Released by _Gyan_ on Tuesday January 22, 2019 @12:40AM (#18966226)
Handbrake applies about a dozen patches on top of the FFmpeg tree. See them at https://github.com/HandBrake/HandBrake/tree/master/contrib/f...

Note that HB uses a release (4.1) rather than git master HEAD. So, some of those patches may get rescinded with new ffmpeg releases.

Also, it's best to think of ffmpeg as having two parts: the libraries (codec, format, ...) and the API controller which sets up the processing pipeline and manages its run i.e. parsing the commnad line, registering input/output streams, and executing the required operations. The latter for ffmpeg is in fftools/. Handbrake implements its own top-level controller.

Re:HandBrake 1.2.0 Released by frereubu on Sunday January 20, 2019 @03:07AM (#18951838)
I noticed that it hadn't been submitted, perhaps because it was so close to Christmas. It's one of my favourite examples of free software in active development, and wanted to flag the update. Plus there are some pretty significant changes, like the move to ffmpeg.
Re:HandBrake 1.2.0 Released by NelsonMinar on Saturday January 19, 2019 @05:41PM (#18949692)
This is huge: "Added support for AMD VCE and Nvidia NVENC hardware-accelerated encoders". Shouldn't that mean 5-10x increases in encoding speed for your average gaming Windows machine?
Re:HandBrake 1.2.0 Released by izacus on Saturday January 19, 2019 @07:39PM (#18950204)
Yes, but beware that those encoders don't come close to providing the same quality at given bitrate. Unless you're in a huge hurry, you should stick to x264 which will generate a significantly better looking video at the same filesize.
Re:HandBrake 1.2.0 Released by IntelMiner on Sunday January 20, 2019 @02:09AM (#18951619)
NVenc has gotten a lot better over the years. Using the "slowest" preset definitely seems to give the best results

I encoded 1250GB~ of Star Trek: The Next Generation Blu Ray's to 355GB of H.265/HEVC video, and I feel the result speaks for itself https://i.imgur.com/VklppOK.jpg

FWIW. Running the file through an i7-4790 would take roughly 4 1/2 hours

A GTX 1000 series does it in 4 minutes

Re:HandBrake 1.2.0 Released by slashink on Sunday January 20, 2019 @02:54AM (#18951780)
NVENC on the Turing architecture (RTX2080/2070/2060) is at the highest quality setting comparable to x264 fast. During complex scenes closer to faster. Older architectures (Pascal etc) are worse.

Gold standard for H.264 quality/encode time/bitrate is still x264 medium / slow.

For H.265, the situation is much different. x265 is far from as mature as x264 and frankly the licensing is such a mess that it looks like H.265 might actually lose the war of next generation codec. Instead VP9 -> AV1 seems to be the industry’s codec of choice with adaption from Google, Twitch and Facebook. Also note Apple is back on the AV1 page.

Re:HandBrake 1.2.0 Released by doublepg23 on Sunday January 20, 2019 @12:09PM (#18954061)
I like messing around with ffmpeg from time to time, and while I love free formats I have say VP9 is practically unusable for me, it just takes insane amounts of encoding time. I'm unsure what hardware people are using for it, especially when it hardly multi-threads...
Re:HandBrake 1.2.0 Released by slashink on Sunday January 20, 2019 @01:32PM (#18954632)
That's all too true. However it's important to remember that when H.264 started to get public traction (this is back in 2005, when Apple started pushing H.264 movie trailers), realtime CPU encoding was deemed impossible at that point in time. It just wasn't realistic back in 2005 to produce H.264 on a CPU, instead hardware encoders were used to accomplish the task.

Fast forward 10 years and basically every single laptop has hardware accelerated H.264 encoding through Intel's QuickSync FFHW and desktops have it through Nvidia. On top of that the software encoder (x264) is so fast that it's possible to do it in realtime on a CPU.

There is a fair chance that VP9 will see the exact same pattern here. Today CPU encoding is unfeasible, as you've noticed. However Intel is releasing VP9 encoding on their QuickSync encoder with newer CPU's and Nvidia will from my guess have it either 1 or 2 GPU generations from now. Same goes for AV1 here.

It's also interesting too think that the age of these aggressive improvements in CPU speed we've had over the past 14 years (from 2005) might come to an end, where efficiency instead comes from specialised hardware, such as fixed function hardware doing encoding on the chips, as NVENC/QuickSync does today. I don't know if realtime AV1 encoding will be feasible on a consumer grade CPU within the next 10 years, but i sure know it's hardware counterpart will be.

Re:HandBrake 1.2.0 Released by ksec on Sunday January 20, 2019 @05:20AM (#18952321)
Hardware encoder are very good if you are not doing difficult bitrate like 1-2 Mbps for 1080P, and 2-4Mbps for 4K. And if you are doing high bitrate I strongly suggest using x264.

Of coz that is if you care about quality and retaining film grain that sort of things. Otherwise Hardware encoder from Nvidia is pretty good ( No idea about Radeon, but it seems Intel still doesn't care about encoding quality, they only care about speed. )

Re:HandBrake 1.2.0 Released by izacus on Sunday January 20, 2019 @02:54AM (#18951781)
Yes, it has gotten a lot better (Turings have improved the encoding block by quite a bit), it's still generating worse output than SW encoders.
Re:HandBrake 1.2.0 Released by wmf on Saturday January 19, 2019 @06:15PM (#18949835)
Yep. Video quality may be lower and hardware encoders don't support as many features as x264/5 though.
Re:HandBrake 1.2.0 Released by FooHentai on Saturday January 19, 2019 @07:17PM (#18950117)
The quality point is key here, unless there's some magic switches for NVENC that make better output.

There's a very visible quality drop when streaming with NVENC, but that's realtime.

Re:HandBrake 1.2.0 Released by wmf on Saturday January 19, 2019 @07:53PM (#18950251)
NVidia says Turing has much higher quality encoding but I haven't seen any confirmation.
Re:HandBrake 1.2.0 Released by LeoNatan25 on Saturday January 19, 2019 @07:37PM (#18950194)
One huge issue with HandBrake is the very deep 8bit pipeline limitation, which is showing its age and lack of forward thinking. HandBrake is incapable of properly encoding 10bit streams. Until that is fixed, I had no choice but to find an alternative.
Re:HandBrake 1.2.0 Released by naikrovek on Saturday January 19, 2019 @09:15PM (#18950512)
Not gonna mention what the chosen alternative is? Ok...
Re:HandBrake 1.2.0 Released by LeoNatan25 on Sunday January 20, 2019 @10:02AM (#18953324)
ffmpeg, sadly. No other UI wrapper gave me what I needed. MeGUI is nice, but requires AviSynth and extracting audio and video, for which I no longer have the patience.
Re:HandBrake 1.2.0 Released by da_chicken on Saturday January 19, 2019 @11:51PM (#18951198)
At least when I run it, I get options to select both x264 and x265 in 10 bit.
Re:HandBrake 1.2.0 Released by LeoNatan25 on Sunday January 20, 2019 @10:02AM (#18953327)
Yes, the option exists, but it is not a real 10 bit, because internally the pipeline is limited to 8 bit.
Re:HandBrake 1.2.0 Released by _Gyan_ on Tuesday January 22, 2019 @12:45AM (#18966240)
What does this mean? Once you've a decoded 10-bit raster, what's the limitation you're encountering?
Re:HandBrake 1.2.0 Released by dpg23 on Sunday January 20, 2019 @12:29AM (#18951359)
What content comes in 10-bit in the first place? HDR is just becoming a thing and I'm pretty sure that's restricted to UHD Blu-rays.
Re:HandBrake 1.2.0 Released by mroche on Sunday January 20, 2019 @01:15AM (#18951480)
A significant amount of content coming from a recording monitor for professional cameras, or in-camera itself, usually in ProRes/DNxHD form. Using an NLE for transcoding is miserable, and ffmpeg doesn’t have the most intuitive CLI syntax for people who just want quick buttons to press.

Pro-world also uses transcoders, and not everyone likes/is able to use Adobe for that.

Re:HandBrake 1.2.0 Released by doublepg23 on Sunday January 20, 2019 @07:24AM (#18952717)
I'm surprised people working with professional footage don't have better tools for that but fair enough.
Re:HandBrake 1.2.0 Released by mroche on Sunday January 20, 2019 @10:05AM (#18953340)
Oh, there definitely are better tools out there, I’m just saying where the source material is coming from. Transcoding specific apps are relatively far and few between, so we end up having to use use other apps for this at times. Handbrake, ffmpeg, Apple’s Compression (is it still alive?), Adobe Media Encoder, etc. Having to use DaVinci Resolve, Premiere Pro, Medi Composer, etc to create proxies or flip between formats is overkill and time consuming.
Re:HandBrake 1.2.0 Released by coldtea on Sunday January 20, 2019 @11:23AM (#18953722)
>Apple’s Compression (is it still alive?)

Yes. Why wouldn't it be?

Re:HandBrake 1.2.0 Released by mroche on Sunday January 20, 2019 @11:36AM (#18953823)
I haven’t been on Apple’s site in a long while (or on a Mac). Wasn’t sure how Compression and Motion were faring since FCPX came out.
Re:HandBrake 1.2.0 Released by coldtea on Sunday January 20, 2019 @12:23PM (#18954161)
FCPX has been going from strength to strength since the release, with a constant stream of big updates, and winning lots of hearts back from the FCPX backslash.

This is also interesting: https://offthetracksmovie.com/

(Interesting factoid: the same person spearheaded and designed all of FCP, FCPX, and Premiere)

Re:HandBrake 1.2.0 Released by KozmoNau7 on Monday January 21, 2019 @07:52AM (#18960026)
In my experience, 10-bit also gives better results when transcoding, for instance smoother gradients and less banding.
Re:HandBrake 1.2.0 Released by fireattack on Monday January 21, 2019 @08:31AM (#18960236)
From my understanding, if the raw material is 8-bit, simply using 10-bit won't help with banding unless you also use some de-banding or smoothing filters together.
Re:HandBrake 1.2.0 Released by lysium on Saturday January 19, 2019 @04:02PM (#18949142)
I have nothing to say but that I am pleased that such a great software is still in active development. I've just updated! Thank you very much.
Re:HandBrake 1.2.0 Released by bratao on Saturday January 19, 2019 @04:08PM (#18949184)
Reading the changelog, one entry catch my eye: "Switched core decoding library from Libav to FFmpeg"

Do anyone know who won the fight of this fork?

Re:HandBrake 1.2.0 Released by rndgermandude on Saturday January 19, 2019 @04:59PM (#18949450)
There is of course no official winner, but as of right now libav essentially withered and mostly died. Maybe the project will become more lively again in the future, but probably not.

Of those downstreams who ever switched to libav, most have switched back to ffmpeg, incl Debian and now Handbrake. The development of libav slowed to essentially a halt with next to no activity in their git, and their latest release was 11 months ago, while ffmpeg had two major releases (4.0, 4.1) and numerous point releases in that period.

libav, in my humble opinion, also suffered from NIH where they sometimes - with what looked to me like religious zealotry - insisted on doing stuff own their own, while ffmpeg at the same time happily merged tons of changes from libav. This gave ffmpeg, in addition to their brand recognition and associated network effects, yet another advantage.

It also didn't help that libav created a lot of bad publicity for themselves, starting with them trying to take over ffmpeg in a hostile manner initially instead of forking, or when their debian packages (maintained by a libav member IIRC) started telling users that ffmpeg is "deprecated". Or when one of their folks sent ffmpeg a "cease and desist" letter claiming copyright of the logo they had been using for quite a while, insisting ffmpeg stop using it. (That's why libav still uses the 2d zigzag logo, while ffmpeg switched to a 3d zigzag one).

Re:HandBrake 1.2.0 Released by icelancer on Saturday January 19, 2019 @09:42PM (#18950620)
> religious zealotry

This describes the entirety of the libav initiative from birth to death. Good riddance.

Re:HandBrake 1.2.0 Released by hitekker on Saturday January 19, 2019 @11:10PM (#18950985)
Agreed. The maintainers were awful at leadership, and generally seemed like a bunch of venomous folks.
Re:HandBrake 1.2.0 Released by hannob on Saturday January 19, 2019 @04:26PM (#18949278)
It's been a while that ffmpeg has effectively "won". A couple of linux distros that used to default to libav have switched back years ago.

I'm surprised it took handbrake so long.

Re:HandBrake 1.2.0 Released by m45t3r on Saturday January 19, 2019 @04:22PM (#18949264)
Considering that mpv[1] recommends FFmpeg I would say FFmpeg won.

I say that because mpv is one of the projects that mostly use parts of FFmpeg internals and also one of the first projects to use modern futures (and deprecate older versions too).

[1]: https://github.com/mpv-player/mpv#ffmpeg-vs-libav

Re:HandBrake 1.2.0 Released by m-p-3 on Saturday January 19, 2019 @06:54PM (#18950032)
YouTube-DL also uses FFmpeg to remux or convert data streams when needed too.
Re:HandBrake 1.2.0 Released by m45t3r on Saturday January 19, 2019 @07:12PM (#18950103)
modern futures -> modern features
Re:HandBrake 1.2.0 Released by j1elo on Saturday January 19, 2019 @05:38PM (#18949679)
Ubuntu 14.04 (Trusty) was shipping libav, but since 16.04 (Xenial) it went back to ship ffmpeg instead. So for Ubuntu LTS users at least, FFmpeg had "won" since at least 2016
Re:HandBrake 1.2.0 Released by th0ma5 on Saturday January 19, 2019 @04:10PM (#18949196)
I don't know anyone "won" but I believe ffmpeg has remerged.
Re:HandBrake 1.2.0 Released by erlend_sh on Saturday January 19, 2019 @04:27PM (#18949287)
Hands down one of the best pieces of software I’ve ever used. Never had any problems with it, does what it says on the tin.
Re:HandBrake 1.2.0 Released by idlern on Saturday January 19, 2019 @04:25PM (#18949274)
I like Handbrake but wish it has the functionality of MakeMKV too
Re:HandBrake 1.2.0 Released by alexgaribay on Saturday January 19, 2019 @04:57PM (#18949431)
You can if you’re on macOS. You can make it to where handbrake can read the Blu-ray.

http://www.macobserver.com/tmo/article/directly-rip-and-conv...

Re:HandBrake 1.2.0 Released by jerrysievert on Saturday January 19, 2019 @05:06PM (#18949490)
thanks for this! I love handbrake, and am thankful for makemkv, but read Blu-ray so infrequently that I download a new makemkv each time. this is a fantastic compromise.
Re:HandBrake 1.2.0 Released by torstenvl on Saturday January 19, 2019 @07:20PM (#18950129)
Will these libraries continue to work after the 60-day mark?
Re:HandBrake 1.2.0 Released by alexgaribay on Sunday January 20, 2019 @12:06AM (#18951261)
I’m unsure. I have a paid license for MakeMKV and it hasn’t been an issue for me.
Re:HandBrake 1.2.0 Released by gsich on Saturday January 19, 2019 @07:18PM (#18950126)
MakeMKV first, then Handbrake after.
Re:HandBrake 1.2.0 Released by bisby on Saturday January 19, 2019 @05:38PM (#18949676)
I was reading through the Handbrake changelog and noticed it mentioned changes to how blurays are handled on linux... So I tried to rip a bluray and it worked. Hopefully I can survive without MakeMKV now.
Re:HandBrake 1.2.0 Released by walterbell on Sunday January 20, 2019 @12:45AM (#18951409)
Does anyone have recommended settings for H.265 encoding of 1080p, which is comparable in quality to H.264? The former seems less sharp, using default HB presets.
Re:HandBrake 1.2.0 Released by dylan604 on Saturday January 19, 2019 @07:53PM (#18950250)
Years ago when HandBrake started to ship without deCSS and use non-DVD sources, we were finally allowed to use it at work as a UI for ffmpeg to make mp4 files with x264. Due to lawyers, we were not allowed to use any software that bundled deCSS. No VLC for us, but that was okay with its lack of frame advancing.
Re:HandBrake 1.2.0 Released by jmiserez on Sunday January 20, 2019 @06:03AM (#18952453)
Couldn't you have forked it, removed the deCSS code and used that internally? It's opensource after all, same with VLC.
Re:HandBrake 1.2.0 Released by caoilte on Saturday January 19, 2019 @06:41PM (#18949965)
Great software. Just wish I didn't need it so often.
Re:HandBrake 1.2.0 Released by nvr219 on Saturday January 19, 2019 @08:28PM (#18950372)
I loved handbrake but haven't used it in a long time since I haven't bought a DVD/blu ray in a long time.
Re:HandBrake 1.2.0 Released by darkpuma on Saturday January 19, 2019 @08:34PM (#18950397)
Not that I would do this, but I've heard that sometimes people rent DVDs/BDs from public libraries and then rip them..
Re:HandBrake 1.2.0 Released by naikrovek on Saturday January 19, 2019 @09:17PM (#18950521)
Yeah, but who would do that? There's no such thing as a pirate; those are stories to scare little children and media company executives.
Re:HandBrake 1.2.0 Released by dpg23 on Sunday January 20, 2019 @12:35AM (#18951380)
Lovely piece of software.