[FFmpeg-devel] [PATCH 1/2] v2 SCTE extraction from mpegts

Hendrik Leppkes h.leppkes at gmail.com
Fri Jul 29 01:43:22 EEST 2016


On Tue, Jul 26, 2016 at 9:03 PM, Carlos Fernandez Sanz
<carlos at ccextractor.org> wrote:
> On Mon, Jul 25, 2016 at 5:41 PM, Michael Niedermayer
> <michael at niedermayer.cc> wrote:
>
>> This breaks http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket1827/vc1_dts_mplayerAudioProblem_sb41_cut.m2ts
>
>
> I need some help with this. HDMV audio is not detected correctly,
> since we are giving priority to ISO based stream_type
>
> 817     mpegts_find_stream_type(st, pes->stream_type, ISO_types);
> 818     if (pes->stream_type == 4)
> 819         st->request_probe = 50;
> 820     if ((prog_reg_desc == AV_RL32("HDMV") ||
> 821          prog_reg_desc == AV_RL32("HDPR")) &&
> 822         st->codecpar->codec_id == AV_CODEC_ID_NONE) {
> 823         mpegts_find_stream_type(st, pes->stream_type, HDMV_types);
>
> In the code above we are first giving priority to ISO_types, if ffmpeg
> does not find any matching stream_type in ISO_types then it goes for
> HDMV standard.
>
> Possible solutions:
> a) Give more priority to HDMV and HDPR then ISO_type,
> b) Remove SCTE_35 codec id from ISO_type and put in MISC type
>
> a) Is correct according to the standard but there must be some reason
> for ISO_type being placed before HDMV.
> Thoughts?

I would favor any change thats the least invasive as possible.

I briefly glanced at the SCTE ANSI standard, and it says that its
supposed to have a registration descriptor, so maybe an entry in the
REGD table is more appropriate?
"CUEI" tag, apparently.

- Hendrik


More information about the ffmpeg-devel mailing list