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

Sailaja Mahendrakar smahendrakar at rgbnetworks.com
Fri Jan 11 22:46:16 CET 2013


Hi All,

Can anyone check this patch? Without this fix, transcoded audio will stop playing from the time the audio channels or sample rate is changed.

Thanks,
Sailaja

-----Original Message-----
From: ffmpeg-devel-bounces at ffmpeg.org [mailto:ffmpeg-devel-bounces at ffmpeg.org] On Behalf Of Sailaja Mahendrakar
Sent: Monday, January 07, 2013 3:58 PM
To: ffmpeg-devel at ffmpeg.org
Subject: [FFmpeg-devel] Transport streams with change in channels/sample rate result in huge silence insertion

Hi,

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.

Thanks,
Sailaja
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Audio_Channels_Samplerate_change.txt
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130111/c0dd6c50/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001.txt
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130111/c0dd6c50/attachment-0001.txt>


More information about the ffmpeg-devel mailing list