in doc/examples/remuxing.c, it gets pts and dts in this way:

pkt.pts = av_rescale_q(pkt.pts, in_stream->time_base, out_stream->time_base); pkt.dts = av_rescale_q(pkt.dts, in_stream->time_base, out_stream->time_base); pkt.duration = av_rescale_q(pkt.duration, in_stream->time_base, out_stream->time_base);

you can have a try.

Hi,

thx for your Response.
i checked it but it worked... here are the settings (its the same like i
fill AVCodecContext)
ffmpeg -r 25 -i "test.mov" -pix_fmt yuv420p -ac 2 -strict experimental -s
hd720 -vcodec libx264 -preset slow -profile:v baseline -level 31 -refs 1
-maxrate 2M -bufsize 2M -vb 2M -threads 0 -g 4 -r 25 "test.mp4" -y

--
View this message in context: 
http://libav-users.943685.n4.nabble.com/Transcoding-Decoding-Encoding-to-MP4-h264-asynchron-tracks-tp4659230p4659243.html
Sent from the libav-users mailing list archive at Nabble.com.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user


_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to