Re:Ffmpeg-Python: Python bindings for FFmpeg – with complex ...
by m0zg on Sunday December 29, 2019 @03:35PM
(#21908272)
Does anyone know of a way to show real-time video with this in a GTK widget? I love the API, but I need to support both online and offline rendering in the context of deep learning based object detection. So I cut the pipeline in the middle, extract frames, do inference on them, and then feed the frames into the rest of the pipeline, and in the end I draw an overlay over the video scaled up to display size. Currently I do this with Gstreamer, but gstreamer has a horrible API in comparison to this and documentation is quite poor as well.
[ Parent
| on HN ]
Re:Ffmpeg-Python: Python bindings for FFmpeg – with complex ...
by shakna on Sunday December 29, 2019 @04:14PM
(#21908533)
Most [0] the time you can swap ffmpeg for ffplay to get a preview window. So you could do something like the suggestion here [1] to get the preview window, and then use GTK to embed the window wherever you wanted it.
[0] But not all