[FFmpeg-devel] [RFC v2]lavf/mpegts: Return small probe score for very short transport streams

James Almer jamrial at gmail.com
Sun May 1 16:21:20 CEST 2016


On 5/1/2016 9:57 AM, Michael Niedermayer wrote:
> On Sun, May 01, 2016 at 12:24:06PM +0200, Carl Eugen Hoyos wrote:
>> Hi!
>>
>> Debian uses the following as a regression test for aac in mpegts:
>> $ ffmpeg -f lavfi -i sine=d=0.1 -acodec aac -strict -2 out.ts
>> $ ffmpeg -i out.ts
>> (possibly simplified)
>>
>> This worked in 2.8 when the default aac bitrate was 128k and the 
>> length of the output file 2632 bytes. Since f0a82124 the bitrate 
>> is 69k and the output file size 1880 bytes. For this size the 
>> mpegts probe function never returns a positive value.
>>
>> Attached patch fixes Debian bug 823098 here (and does not crash 
>> probetest):
>> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823098
>>
>> Please comment, Carl Eugen
> 
>>  mpegts.c |   13 +++++++++----
>>  1 file changed, 9 insertions(+), 4 deletions(-)
>> adf5f0c1179c230317823a4bbf9eef8169295f0f  patchmpegtsshort.diff
> 
> LGTM
> 
> thx

This needs to be backported for 3.0.3



More information about the ffmpeg-devel mailing list