[FFmpeg-user] Strange behaviour with HLS to ISMV?

Nicky Gerritsen nicky at streamone.nl
Tue Sep 29 12:35:31 CEST 2015

Hi all,

We are testing ingesting an HLS source into an ISMV server using ffmpeg.
However, we found something strange:

ISMV has CodecPrivateData which contains information about the codec
data. Now it seems that something goes wrong here:

It seems to somehow infer the profile ID wrongly. An example

HLS source:

When using an RTMP stream as source, the CodecPrivateData misses the
000000010910 part.
It seems this part is responsible for the profile ID as far as I have found.
0910 seems to produce avc1.16.30 as output, whereas the input is avc1.77.30.
Even stranger: we use software which automatically can stream HLS again
from the ISMV. If I then use the output HLS stream and ingest it again,
it gets yet another profile ID it seems. The CodecPrivateData now starts
with 00000001 Konsole output 09F0.

I tried looking in the code where this part of the codec private data
came from, but as far as I can find this comes kinda directly from ID3
data in the source HLS stream.

I'm not entirely sure what is going wrong, but I did find if I remove
the first 6 bytes from the private data completely everything does work

Does anyone know what is going wrong and possible have a solution?

I tested with both ffmpeg 2.6.4 and the latest git code.

Nicky Gerritsen

More information about the ffmpeg-user mailing list