[Rejected] Copy Audio & Video

Archive of historical feature requests.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Locked
HBBug
Posts: 8
Joined: Fri Jun 13, 2014 3:36 am

[Rejected] Copy Audio & Video

Post by HBBug »

I would like to see the ability to 'copy' video and audio.

I personally need the ability to adjust only audio, and having to re-encode the video as well, increases the work time.

20-30 mins for small videos, having to re-encode the video over, and with the ability to copy, it cuts it down to 2 mins.

I'm running 0.10.5 in Slackware 14.2 x86_64

Please add the ability to copy!

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

Re: Copy Audio & Video

Post by mduell »

Fundamentally incompatible with the architecture of HB. Plenty of other tools for that purpose.
Djfe
Bright Spark User
Posts: 178
Joined: Tue May 13, 2014 8:01 pm

Re: Copy Audio & Video

Post by Djfe »

You should use ffmpeg for this purpose ;)
It's fairly easy to use, once you understand it's principle

ffmpeg -i input.filetype -c:v copy -c:a youraudiocodec -b:a youraudiobitrate output.filetype
youraudiocodec could be aac or libopus (just two examples)
and your bitrate 128k for 128kbit/s

executing
ffmpeg -encoders
will output a list of all video and audio encoders supported by your ffmpeg build ;)

you'll find a static build of ffmpeg for every plattform here
just unzip it, open a terminal/command window and change the directory to ffmpeg/bin and then run the comment above
HBBug
Posts: 8
Joined: Fri Jun 13, 2014 3:36 am

Re: Copy Audio & Video

Post by HBBug »

Fundamentally incompatible with the architecture of HB, isn't telling anyone anything, just words being thrown about with no explanation.

Other tools is besides the point since Handbrake is a ffmpeg frontend, if we're going to throw words around, the concept here seems Fundamentally flawed to leave out a very big feature of ffmpeg.

This is a bad flaw of design to use ffmpeg and then leave out a feature like this.

Of course ffmpeg can do a lot more then handbrake does, but handbrake is pretty much covering basics, and 'copy' is a basic, that should be included. Looking at handbrake, it doesn't do everything right? So then why leave out the basics it should be doing, since it presents itself as that basic type of app... The question is rhetorical...

With an app like handbrake, there shouldn't be the burden of the end-user needing another app, simply for the sake of needing the ability to copy.

We might as well turn the subject around, and say, what then is the point of having handbrake? Another rhetorical question, we might as well remove it and just use ffmpeg...

It would be nice to know why incompatible, and why this would be so complicated to include?
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Copy Audio & Video

Post by mduell »

You're very confused. HB is not, in any way, a front end for the ffmpeg application. It uses many of the same libraries, but the apps are completely separate and have different architectures.

The point of HB is in the title of every page: HandBrake is an open-source, GPL-licensed, multiplatform video transcoder.
Note closely the last two words.

There are several existing threads on this topic with more explanation; you should search before posting, as required in the forum rules.
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: Copy Audio & Video

Post by Woodstock »

If you NEED the complexity of ffmpeg, anything less is, well, less. If you don't, there are simpler to use tools like handbrake.

Analogy: ffmpeg is the Smithy 3-in-1 lathe/drill press/mill, handbrake is the a 1/2" variable speed portable drill. Handbrake can't do all the things the ffmpeg can do, but doesn't need as much setup to get the jobs done that it is designed to do.
Deleted User 13735

Re: Copy Audio & Video

Post by Deleted User 13735 »

The fundamental incompatibility is that Handbrake is an encoder, and not a standalone muxer.
Please delay judgment until you understand that fact completely.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Copy Audio & Video

Post by JohnAStebbins »

HBBug wrote:Other tools is besides the point since Handbrake is a ffmpeg frontend
Wrong. HandBrake uses libavcodec, and libavformat for demuxing, decoding and muxing. It does not use ffmpeg at all.

HandBrake does things that ffmpeg doesn't do, which is why we choose to not be just a front end to ffmpeg. It is these things that ffmpeg doesn't do that are part of the fundamental incompatibility that we are talking about here.

Primarily, the incompatibility lies in how HandBrake ensures A/V synchronization. To ensure synchronization, there are cases where you may have to drop a few frames of either audio or video. Audio is easy, all frames are independent of every other frame. So you can drop a frame of encoded audio and almost not even hear it in the output. Encoded video frames require information from previous encoded frames in order to decode them, they are not independent. If you don't decode and re-encode the video, it is impossible to drop a frame of video.
HBBug
Posts: 8
Joined: Fri Jun 13, 2014 3:36 am

Re: Copy Audio & Video

Post by HBBug »

It would be nice to see handbrake accomplish this;

ffmpeg -i input.mkv -vcodec copy -c:a libfdk_aac -profile:a aac_he_v2 -af volume=18dB output.mkv
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: [Rejected] Copy Audio & Video

Post by s55 »

Marked as Rejected. As we've said before, video passthrough will not be added to HandBrake. The reason listed in johns post above. There is little value in disucssing this further.
Locked