[Libav-user] Output encode file audio/video plays too fast in ffplay

Pradeep Karosiya praks411 at gmail.com
Fri May 10 10:57:48 CEST 2013

I've faced a similar problem before. I was just doing stream copy i.e
changing the container format to avi. 
I think you care correct your pts and dts may not be correct. I  too ended
up playing with various combination.
Try following. it worked for me. This is just for stream copy which involves
no decoding
 outpkt.pts= av_rescale_q(inputpkt.pts, input_video_strm->time_base,
Similar rescaling for dts. Also you will need to do it for audio stream too.

One thing to note it that if you are encoding decoded packet then you can
forget about pts and dts. Encoder automatically does that for you.

View this message in context: http://libav-users.943685.n4.nabble.com/Output-encode-file-audio-video-plays-too-fast-in-ffplay-tp4657535p4657558.html
Sent from the libav-users mailing list archive at Nabble.com.

More information about the Libav-user mailing list