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

Silver marco_sie at web.de
Wed Feb 12 11:33:10 CET 2014


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

video: dnxhd -> libx264
audio: pcm_s24le -> libfaac

I think its something in my code... i don't know but i can only guess.. it
something with:

- pts/dts/timebase
- dropped frames (i don't handle it at all)
- or some general mistake in my transcoding process (i posted a pseudocode)
- maybe something related with key/i frames ?

I really want to understand.. so that i can help me myself.

If i print pts out i get following:

- increased by 1024 for audio (samples?)
- increased by 1000 for video

before Audio Encoding i calculate:
convertFrame->pts = av_rescale_q(samples_count, (AVRational){1,
aCodecCtxOut->sample_rate}, aCodecCtxOut->time_base);
samples_count += dst_nb_samples;


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.

More information about the Libav-user mailing list