[FFmpeg-devel] FW: Transport streams with change in channels/sample rate result in huge silence insertion

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Jan 29 09:31:21 CET 2013

Sailaja Mahendrakar <smahendrakar <at> rgbnetworks.com> writes:

> I have uploaded the content
> incoming/network44-Ad48.ts
> to upload.ffmpeg.org.
> This transport stream has change with sample rate and 
> channels. Please note the transcoded output with the
> below command:
> ./ffmpeg -psnr  -y -loglevel verbose -i ../network44-Ad48.ts 
> -vsync 1 -async 2 -f mpegts -map 0:0 -streamid 0:48 
> -codec:v:0 mpeg2video -map 0:1 -streamid 0:49 -codec:a:0 mp2 
> -b:a:0 384000 -ar:a:0 48000 -ac:a:0 2 ../network.ts

I tested the following command:

$ ffmpeg -i network44-Ad48.ts -ar 48k -acodec mp2 -vcodec mpeg2video out.ts

and the output file plays fine (no A/V desync) here.

Why are you using "-async 2" ?

Please do not top-post on this mailing list, Carl Eugen

More information about the ffmpeg-devel mailing list