Thx, i will try it.. both for video and audio Stream? I currently take it from OutputCodex and OutputStream: encoderPacketA.pts = av_rescale_q(encoderPacketA.pts, aCodecCtxOut->time_base,audio_st->time_base);
I think its something more deeper... isn't there a general way to search for such asynchron errors? Can i use some debug Messages to get a better Feeling, why or where it gets asynchrony? I'm lost in the Woods... I'm tired of Trial&Error. hemiao wrote > 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 >> > Libav-user@ >> http://ffmpeg.org/mailman/listinfo/libav-user > > > _______________________________________________ > Libav-user mailing list > Libav-user@ > http://ffmpeg.org/mailman/listinfo/libav-user -- View this message in context: http://libav-users.943685.n4.nabble.com/Transcoding-Decoding-Encoding-to-MP4-h264-asynchron-tracks-tp4659230p4659245.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
