ffmpeg-libav-tutorial icon indicating copy to clipboard operation
ffmpeg-libav-tutorial copied to clipboard

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

Open hettpatel opened this issue 4 years ago β€’ 1 comments

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?

hettpatel avatar Sep 01 '20 06:09 hettpatel

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.

leandromoreira avatar Sep 01 '20 13:09 leandromoreira