[Libav-user] Transcoding Decoding_Encoding to MP4/h264 - asynchron tracks

Tomi He hemiao_1990 at 126.com
Wed Feb 12 14:15:02 CET 2014


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 at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user




More information about the Libav-user mailing list