<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>>I wrote a Transcoder it works fine so far, in generell its X Container/Format to MP4/H264.<br/>
>We have a 20min File (5GB) its a QuickTime Movie (DNxHD36) the MP4 Output works fine with VLC (no sync issue).<br/>
>But if i open it with Quicktime Player (v 10.x) i get a async audio after 5min, if i using the Scrubbing Bar from the Player it resync and >after 5min playtime it gets out of sync again.<br/>
 <br/>
Hi me again,<br/>
<br/>
i now test a little bit with the transcoder.c example from ffmpeg 2.x and i changed it a little bit so that it transcodes to h264/aac.<br/>
and there i get the same "out of sync" issues. (ofc im only do trial and error)<br/>
Is it possible that maybe libfaac has some trouble, i'm not 100% sure but i believe i compiled ffmpeg libs with libfaac and read somewhere there might some problems with it. Someone knows anything about this? Is it possible in general? Are there some analytic Tools?<br/>
Is it possible to see which value QT decodes/reads... so that i gain some data?<br/>
<br/>
On the other hand... if i google about "quicktime sound out of sync" i get some entries but not ffmpeg related... hmm... i hate these digging and not knowing whats going on.<br/>
<br/>
This is what i use for encoder context in your transcoder example, just the basis:<br/>
<br/>
video:<br/>
enc_ctx->codec_id = AV_CODEC_ID_H264;<br/>
enc_ctx->sample_aspect_ratio = dec_ctx->sample_aspect_ratio;<br/>
enc_ctx->pix_fmt = AV_PIX_FMT_YUV420P;<br/>
enc_ctx->level = 31;<br/>
enc_ctx->profile = FF_PROFILE_H264_BASELINE;<br/>
AVDictionary * codec_options( 0 );<br/>
av_dict_set( &codec_options, "preset", "slow", 0 );<br/>
av_dict_set(&codec_options, "vprofile", "baseline", 0);<br/>
<br/>
audio:<br/>
enc_ctx->profile = FF_PROFILE_AAC_LOW;<br/>
enc_ctx->codec_id = AV_CODEC_ID_AAC;<br/>
enc_ctx->sample_rate = 48000;<br/>
enc_ctx->channels = 2;<br/>
enc_ctx->channel_layout = AV_CH_LAYOUT_STEREO;<br/>
AVDictionary * codec_options( 0 );<br/>
av_dict_set(&codec_options, "strict", "experimental", 0);<br/>
<br/>
 </div></div></body></html>