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

Sailaja Mahendrakar smahendrakar at rgbnetworks.com
Mon Jan 7 22:57:33 CET 2013


Transcoding of transport stream ingests with change in audio channels or sample rate on the fly, will result in huge silence addition. This is incorrect and is happening due to the variable 'outpts' of SwrContext structure is getting reset to zero at the channels/sample rate change.

Fixing this problem by re-calculating the variable outpts(when null), in function swr_next_pts.

Please find attached the diff.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Audio_Channels_Samplerate_change.txt
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130107/9b0d89ef/attachment.txt>

More information about the ffmpeg-devel mailing list