BabitMF / bmf

Cross-platform, customizable multimedia/video processing framework. With strong GPU acceleration, heterogeneous design, multi-language support, easy to use, multi-framework compatible and high performance, the framework is ideal for transcoding, AI inference, algorithm integration, live video streaming, and more.
https://babitmf.github.io/
Apache License 2.0
807 stars 71 forks source link

FFMpegFilter #149

Open x850044053wwt opened 1 day ago

x850044053wwt commented 1 day ago

I added 3 ffmpeg filters, but there is only one filter node in the final dump result. Is it because optimize has optimized it out? Why is there only one filter left?

I encountered a problem where the speeds of 3 filters were inconsistent. The slow filter filled up the filter node queue, causing the fast filter to be blocked.

sfeiwong commented 1 day ago

Yes, filters will be merged into one filtergraph by default, but if you want them run by different nodes, it can be configured like this: graph.set_option({'optimize_graph': False})

And please reference: bmf/demo/one_to_n_performance/one_to_n_transcode.py