lintel icon indicating copy to clipboard operation
lintel copied to clipboard

how does it perform compared to ffmpeg-python ?

Open zzc-master opened this issue 7 years ago • 4 comments

Hi, I am wondering how does it perform compared to ffmpeg-python ? https://github.com/kkroening/ffmpeg-python

zzc-master avatar Dec 10 '18 04:12 zzc-master

Hi, Lintel is different from ffmpeg-python because Lintel directly links to the libav libraries, whereas ffmpeg-python pipes commands to FFmpeg through stdio. I found that piping through stdio caused performance issues with too much parallelism (threads or processes).

dukebw avatar Dec 10 '18 13:12 dukebw

Hi, Lintel is different from ffmpeg-python because Lintel directly links to the libav libraries, whereas ffmpeg-python pipes commands to FFmpeg through stdio. I found that piping through stdio caused performance issues with too much parallelism (threads or processes).

Thanks, I see. Here is another question. If I install OpenCV library with FFmpeg support, I can use videocapture to read videos. How does it perform compared to Lintel?

zzc-master avatar Dec 14 '18 12:12 zzc-master

I think Lintel would definitely be no slower than OpenCV, and there might be some overhead (due to all the OO) in OpenCV that makes Lintel a bit faster. But I doubt it, they are probably the same speed because they are doing the same thing (calling libav APIs). I think OpenCV only supports an ancient version of FFmpeg, and doesn't use the send/receive_frame API, last time I checked.

dukebw avatar Dec 14 '18 13:12 dukebw

I would certainly welcome any profiling to compare the two :).

dukebw avatar Dec 14 '18 14:12 dukebw