wang-bin / QtAV

A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
http://qtav.org
3.98k stars 1.5k forks source link

avdevice live input always buffers and freezes #519

Open sherpya opened 9 years ago

sherpya commented 9 years ago

I'm trying to capture from a dv source using dshow (but the same problem applies to other os/inputs) QML Player says

buffering -> buffered -> plays some frames -> freezes 1 sec -> buffering -> etc

I have same problems in qml, with qtav 1.6.0 insteads shutters after a while but it does not resync

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27007406-avdevice-live-input-always-buffers-and-freezes?utm_campaign=plugin&utm_content=tracker%2F307703&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F307703&utm_medium=issues&utm_source=github).
wang-bin commented 9 years ago

it's similar to #501 Try player->setBufferValue(1)

sherpya commented 9 years ago

looks ok on 1.6.0, but I get framedrops on master (perhaps without visible effects)

[FFmpeg:dshow] real-time buffer [AV/C Tape Recorder/Player] [video input] too full or near too full (71% of size: 3041280 [rtbufsize parameter])! frame dropped!

khanhlv1407 commented 7 years ago

Dear wang-bin, We got same problem.

Note: - we use qtav v1.11, ffmpeg (decoder)