Page 1 of 1

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

Posted: Mon May 04, 2020 7:57 am
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.

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

Posted: Mon May 04, 2020 1:30 pm
by Woodstock
Impossible if you're using handbrake. Handbrake is not a GUI front-end for ffmpeg.

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

Posted: Mon May 04, 2020 3:46 pm
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.

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

Posted: Mon May 04, 2020 4:00 pm
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.

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

Posted: Mon May 04, 2020 4:14 pm
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.

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

Posted: Mon May 04, 2020 4:16 pm
by rollin_eng
Source code is available, pay someone to do it.

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

Posted: Mon May 04, 2020 4:17 pm
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.

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

Posted: Mon May 04, 2020 5:06 pm
by rollin_eng
So I guess you are out of luck.

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

Posted: Mon May 04, 2020 9:56 pm
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

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

Posted: Tue May 05, 2020 1:00 am
by JohnAStebbins
HANDBRAKE IS NOT A VIDEO REMUXER