This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Parallel video encoding in Hybrid
#1
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

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
 
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)
 
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
Reply


Messages In This Thread
Parallel video encoding in Hybrid - by Dan64 - 02.10.2024, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)