[FFmpeg-user] Adaptive Streaming between heaac and lcaac

Ronak ronak2121 at yahoo.com
Mon Jun 25 15:37:05 EEST 2018


> On Jun 22, 2018, at 4:45 PM, Ronak <ronak2121-at-yahoo.com at ffmpeg.org> wrote:
> 
> 
> 
>>> Hi,
>>> 
>>> We are trying to setup an adaptive stream across two heaac streams and higher order lcaac ones.
>>> 
>>> So we’d have something like so:
>>> 
>>> HEAACv2 44khz/32kbps
>>> HEAACv2 44/64
>>> LCAAC 44/128
>>> LCAAC 44/256
>>> LCAAC 44/320
>>> 
>>> I setup a test stream this way and I’m seeing some problems.
>>> 
>>> Exoplayer is seeing this stream as not being able to support seamless adaptive switching because the defaultSampleDurations in the HE-AACv2 fMP4's moof boxes is 2048 while the LC-AAC file has 1024.
>>> 
>>> Why does HE-AACv2 have a higher sample duration when the sampling rate is supposed to be 44100, equivalent to the sampling rate of the LC-AAC audio?
>>> 
>> 
>> 
>> Has anyone ever tried to do this before? Is this a problem with how ffmpeg is generating the HEAACv2 fmp4 files?
>> 
>> 
> 
> 
> Could anyone please shed any light on why the defaultSampleDurations in moof are different between LC & HE-AAC at the same sampling rates?
> 
> 

I ran Apple's HLS mediafilesegmenter tool, and I can confirm that they set 1024 for the defaultSampleDurations in all moof segments for HE-AACv2 mp4s.

Can this be fixed in ffmpeg? I'm happy to send a patch to the devel mailing list to correct this.


Another interesting thing I saw is that their generated fMP4s don't include sidx boxes, since the stream is audio only created from an AAC file. 
Why does ffmpeg include sidx boxes? Can those be removed?

> 
>>> Thanks,
>>> 
>>> Ronak
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> ffmpeg-user at ffmpeg.org <mailto:ffmpeg-user at ffmpeg.org>
>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user <http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
>>> 
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-user-request at ffmpeg.org <mailto:ffmpeg-user-request at ffmpeg.org> with subject "unsubscribe".
>> 
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org <mailto:ffmpeg-user at ffmpeg.org>
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user <http://ffmpeg.org/mailman/listinfo/ffmpeg-user>
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org <mailto:ffmpeg-user-request at ffmpeg.org> with subject "unsubscribe".
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list