leandromoreira / ffmpeg-libav-tutorial

FFmpeg libav tutorial - learn how media works from basic to transmuxing, transcoding and more. Translations: πŸ‡ΊπŸ‡Έ πŸ‡¨πŸ‡³ πŸ‡°πŸ‡· πŸ‡ͺπŸ‡Έ πŸ‡»πŸ‡³ πŸ‡§πŸ‡·
https://github.com/leandromoreira/ffmpeg-libav-tutorial
BSD 3-Clause "New" or "Revised" License
10.05k stars 964 forks source link

My app using libav is playing less than the total duration of a clip #71

Open hettpatel opened 4 years ago

hettpatel commented 4 years ago

Playing 12 sec of video using libav in my application only plays the starting 8 sec of video and then it is not showing furxther. what can i do in this case?

leandromoreira commented 4 years ago

Hi there,

You can try to debug this problem to understand what's happening:

If all the answers to these questions doesn't help you, it might be something in your code, not to your media, I'd advise you to isolate your program to see if there's something fish... and or to look at ffplay example.