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.99k stars 1.51k forks source link

playback doesn't always start after AVPlayer::setTimeRange() #643

Open combiner opened 8 years ago

combiner commented 8 years ago

the chances that i will hear the sound when i start the following program are about 50%:

int main(int argc, char **argv) {
    QCoreApplication app(argc, argv);
    QtAV::AVPlayer player;
    player.setFile(argv[1]);
    player.setTimeRange(450, 10000);
    player.play();
    return app.exec();}

here's the audio file i've got problems with:

http://www.fileconvoy.com/dfl.php?id=ga38e45d56b685b3a99983714438af85571015780b

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/34912233-playback-doesn-t-always-start-after-avplayer-settimerange?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 8 years ago

The download link is not available

combiner commented 8 years ago

try the new one.

wang-bin commented 8 years ago

What's your platform? Plays fine on my win7.

wang-bin commented 8 years ago

And I need your log.

combiner commented 8 years ago

Kubuntu 16.04 64-bit, QtAV from your PPA. what log do you need? where is it?

wang-bin commented 8 years ago

It's weird. Packet read from demuxer is wrong.