ffmpeg-based preset/plug-ins -- Possible?

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
markfilipak
Bright Spark User
Posts: 237
Joined: Thu Aug 01, 2019 8:58 pm

ffmpeg-based preset/plug-ins -- Possible?

Post by markfilipak »

Indirectly related topic: viewtopic.php?f=10&t=40069

How hard would it be to put ffmpeg-based plug-ins into presets?

How it would work:
Suppose I have a video processor, written as an ffpeg command, that outputs to a temp file.
HandBrake would 'run' the preset, extracting the audio, subs, and chaps in the usual ways, but would process the video by 1st: running the ffpeg command, then 2nd, merging the temp's video packets into the HandBrake output. HandBrake would then delete the temp.

The above strategy could also be used to process audio tracks, and/or subtitle tracks from within presets.

Could this be implemented? I suppose I don't need to 'talk' further regarding how useful and powerful this would be.

Regards,
Mark Filipak.
Woodstock
Veteran User
Posts: 3802
Joined: Tue Aug 27, 2013 6:39 am

Re: ffmpeg-based preset/plug-ins -- Possible?

Post by Woodstock »

Impossible if you're using handbrake. Handbrake is not a GUI front-end for ffmpeg.
markfilipak
Bright Spark User
Posts: 237
Joined: Thu Aug 01, 2019 8:58 pm

Re: ffmpeg-based preset/plug-ins -- Possible?

Post by markfilipak »

Woodstock wrote: Mon May 04, 2020 1:30 pm Impossible if you're using handbrake. Handbrake is not a GUI front-end for ffmpeg.
HB wouldn't do anything with ffmpeg. It would simply submit a fixed command to the OS shell, then wait for a fixed file to be created, then spin on that file until it closes, then open the file and merge it with the rest of the streams. What could be simpler? The command could be anything, not just ffmpeg.
rollin_eng
Veteran User
Posts: 3564
Joined: Wed May 04, 2011 11:06 pm

Re: ffmpeg-based preset/plug-ins -- Possible?

Post by rollin_eng »

Again HB is not a muxer, it cannot take a bunch of streams and mux them together. It never has and judging what the devs say it never will.
markfilipak
Bright Spark User
Posts: 237
Joined: Thu Aug 01, 2019 8:58 pm

Re: ffmpeg-based preset/plug-ins -- Possible?

Post by markfilipak »

rollin_eng wrote: Mon May 04, 2020 4:00 pm Again HB is not a muxer, it cannot take a bunch of streams and mux them together. It never has and judging what the devs say it never will.
All that's needed is to take streams from 2 files instead of from 1 file.
rollin_eng
Veteran User
Posts: 3564
Joined: Wed May 04, 2011 11:06 pm

Re: ffmpeg-based preset/plug-ins -- Possible?

Post by rollin_eng »

Source code is available, pay someone to do it.
markfilipak
Bright Spark User
Posts: 237
Joined: Thu Aug 01, 2019 8:58 pm

Re: ffmpeg-based preset/plug-ins -- Possible?

Post by markfilipak »

rollin_eng wrote: Mon May 04, 2020 4:16 pm Source code is available, pay someone to do it.
This ping-pong game is making me dizzy.
rollin_eng
Veteran User
Posts: 3564
Joined: Wed May 04, 2011 11:06 pm

Re: ffmpeg-based preset/plug-ins -- Possible?

Post by rollin_eng »

So I guess you are out of luck.
Navvie
Regular User
Posts: 58
Joined: Sun Mar 27, 2011 10:19 pm

Re: ffmpeg-based preset/plug-ins -- Possible?

Post by Navvie »

Anything's possible. ;-)

If one of the devs doesn't reply here, you might try suggesting the feature on github.

https://github.com/HandBrake/HandBrake/issues
User avatar
JohnAStebbins
HandBrake Team
Posts: 5583
Joined: Sat Feb 09, 2008 7:21 pm

Re: ffmpeg-based preset/plug-ins -- Possible?

Post by JohnAStebbins »

HANDBRAKE IS NOT A VIDEO REMUXER
Post Reply