ffmpeg-libav-tutorial
ffmpeg-libav-tutorial copied to clipboard
My app using libav is playing less than the total duration of a clip
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?
Hi there,
You can try to debug this problem to understand what's happening:
- does the same behavior happens in VLC?
- does the same behavior happens on ffplay?
- when you run mediainfo, does it shows 12s or 8s?
- if you convert the video using command line
ffmpeg
to another vΓdeo or a bunch of images, does the duration remains as expected? - is your code able to play correctly other clips or just this one?
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.