02.10.2024, 17:54
Hello Selur,
What do you think to add parallel video encoding in Hybrid ?
As you know the parallel audio encoding is already enabled if job->Queue->Parallel subjob processing is enabled.
In this case if there are 2 audio streams, Hybrid will encode them in parallel launching 2 tasks.
Theoretically it is possible do the same thing in Hybrid using Vapoursynth script.
For example supposing that the video to encode using Vapoursynth has 10000 frames.
Usually the Vapoursynth script generated by Hybrid will look like
In this case Hybrid could generate 2 scripts like
and encode in parallel with 2 tasks using vspipe.
After that you can merge the 2 encoded videos with mkvmerge.exe to obtain the usual sample_new.mkv.
What do you think ?
Dan
What do you think to add parallel video encoding in Hybrid ?
As you know the parallel audio encoding is already enabled if job->Queue->Parallel subjob processing is enabled.
In this case if there are 2 audio streams, Hybrid will encode them in parallel launching 2 tasks.
Theoretically it is possible do the same thing in Hybrid using Vapoursynth script.
For example supposing that the video to encode using Vapoursynth has 10000 frames.
Usually the Vapoursynth script generated by Hybrid will look like
Code:
clip = core.lsmas.LWLibavSource(source="sample.mkv", format="YUV420P8", stream_index=0, cache=0, fpsnum=25, prefer_hw=0)
frame = clip.get_frame(0)
In this case Hybrid could generate 2 scripts like
Code:
clip = core.lsmas.LWLibavSource(source="sample.mkv", format="YUV420P8", stream_index=0, cache=0, fpsnum=25, prefer_hw=0)
clip = clip[:5000]
frame = clip.get_frame(0)
Code:
clip = core.lsmas.LWLibavSource(source="sample.mkv", format="YUV420P8", stream_index=0, cache=0, fpsnum=25, prefer_hw=0)
clip = clip[5000:]
frame = clip.get_frame(0)
and encode in parallel with 2 tasks using vspipe.
After that you can merge the 2 encoded videos with mkvmerge.exe to obtain the usual sample_new.mkv.
What do you think ?
Dan