bitwhip icon indicating copy to clipboard operation
bitwhip copied to clipboard

Fix: Better Encode Loop for Stream command

Open ash30 opened this issue 5 months ago • 0 comments

This PR is dependant on https://github.com/bitwhip/bitwhip/pull/11, see the second commit for the specific changes

  • I've created an iterator interface over an encoder + source to help structure the code in main.
  • the existing logic for the encode loop needed some more thought because it seems to busy loop, constantly polling the source until it receives a frame instead of EAGAIN. ie the ffmpeg api DOESN'T BLOCK waiting for the frame
  • I don't have a windows box to test the existing dxduplicator source ( filter graph based ), but I assume it would do the same?

ash30 avatar Jul 31 '25 22:07 ash30