<div dir="ltr">It is different streams (seperate video files). Thats the funny thing.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-03 14:22 GMT+02:00 Karel Vorechovsky <span dir="ltr"><<a href="mailto:k.vorechovsky@gmail.com" target="_blank">k.vorechovsky@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">"threaded video reader to spread the decode workload on some more cores and gain some speed"<br>
<br></span>
Decoding of the same stream must happen within one codec context. If you want speedup, read and buffer packets in one thread and do decoding in another. If that's not enough, look for faster decoder.<br>
<br>
Karel<br>
<br>
<br>
Dne 3.6.2016 v 14:09 Jesper Taxbøl napsal(a):<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hi Guys,<br>
<br>
I am working on a threaded video reader to spread the decode workload on some more cores and gain some speed. My source is included below:<br>
<br>
The thing is that I dont see a time improvement when starting two processes instead of one. On a 80mb mp4 file it takes 6 seconds to decode the video, while doing two in parallel takes 12 seconds. I can see that two cores's are used 100 percent. Im on a fast SSD disk so I dont think im IO limited.<br>
<br>
What could be the case. Is it the same decoder taht is doing all the work? Do I perhaps need to instantiate a context or something?<br>
<br>
kind regards<br>
<br>
-- <br>
Jesper Taxbøl<br>
<br></span>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote>
<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Jesper Taxbøl<br>+45 61627501<br><br></div>
</div>