<HTML><BODY><div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;"><div id=""><div class="js-helper js-readmsg-msg"><div><div id="style_16611630120021814448_BODY">The only advice I can give you at this point is to examine how ffmpeg<br>itself does and see how your program differs.</div></div></div></div></blockquote></div><div> </div><div>But I do not know where to look in ffmpeg, the source text of it is very confusing and there are few examples</div><div> </div><div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;"><div><div class="js-helper js-readmsg-msg"><div><div>ffmpeg -i some_file_with_mjpeg -f null -<br><br>and at the same time:<br><br>top<br><br>and see how much CPU it uses. If it is >>100%, then multithreading is<br>used. If not, then it probably is not possible easily.</div></div></div></div></blockquote></div><div> </div><div>Thank you!</div><div>I created a file</div><div>       ffmpeg -f v4l2 -input_format mjpeg -video_size 1920x1080 -i /dev/video0 -c:v copy test.mjpeg</div><div> </div><div>Then I executed your command and saw the CPU usage of 99-100%</div><div>       ffmpeg -i test.mjpeg -f null -</div><div> </div><div>You said "it probably is not possible easily" but not impossible!? so I need to create my own thread queue for decoding or are there other solutions?</div></BODY></HTML>