[FFmpeg-devel] Patch for Trac Tickets 5388 & 5455
Ali KIZIL
alikizil at gmail.com
Thu Apr 21 14:35:22 CEST 2016
Please discard this patch, I will split the patches.
The contents of this e-mail are confidential to the addressee and are
intended solely for the recipients use. If you are not the addressee, you
have received this e-mail in error. Any disclosure, copying, distribution
or action taken in reliance on it is prohibited and may be unlawful. Please
note that any opinions expressed in this e-mail are those of the author
personally and not your business name who do not accept responsibility for
the contents of the message.
To conserve our resources for the future please reconsider before printing
this e-mail.
2016-04-21 14:42 GMT+03:00 Ali KIZIL <alikizil at gmail.com>:
> Sorry the patch file was missing:
>
> From 1d10dc062da7eb51c749e321b419018deed79151 Mon Sep 17 00:00:00 2001
> From: smallishzulu <alikizil at gmail.com>
> Date: Thu, 21 Apr 2016 13:28:10 +0300
> Subject: [PATCH] For trac tickets 5455 & 5388
>
> ---
> libavformat/mpegtsenc.c | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
> index f4cb862..12ccc70 100644
> --- a/libavformat/mpegtsenc.c
> +++ b/libavformat/mpegtsenc.c
> @@ -67,7 +67,8 @@ enum {
> MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_RADIO = 0x0A,
> MPEGTS_SERVICE_TYPE_MPEG2_DIGITAL_HDTV = 0x11,
> MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_SDTV = 0x16,
> - MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_HDTV = 0x19
> + MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_HDTV = 0x19,
> + MPEGTS_SERVICE_TYPE_HEVC_DIGITAL_HDTV = 0x1F
> };
> typedef struct MpegTSWrite {
> const AVClass *av_class;
> @@ -318,7 +319,7 @@ static int mpegts_write_pmt(AVFormatContext *s,
> MpegTSService *service)
> break;
> case AV_CODEC_ID_MP2:
> case AV_CODEC_ID_MP3:
> - stream_type = STREAM_TYPE_AUDIO_MPEG1;
> + stream_type = STREAM_TYPE_AUDIO_MPEG2; //KIZIL
> break;
> case AV_CODEC_ID_AAC:
> stream_type = (ts->flags & MPEGTS_FLAG_AAC_LATM)
> @@ -1810,10 +1811,13 @@ static const AVOption options[] = {
> AV_OPT_FLAG_ENCODING_PARAM, "mpegts_service_type" },
> { "advanced_codec_digital_sdtv", "Advanced Codec Digital SDTV.",
> 0, AV_OPT_TYPE_CONST, { .i64 =
> MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_SDTV }, 0x01, 0xff,
> - AV_OPT_FLAG_ENCODING_PARAM, "mpegts_service_type" },
> + AV_OPT_FLAG_ENCODING_PARAM, "mpegts_service_type" }, //KIZIL
> { "advanced_codec_digital_hdtv", "Advanced Codec Digital HDTV.",
> 0, AV_OPT_TYPE_CONST, { .i64 =
> MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_HDTV }, 0x01, 0xff,
> AV_OPT_FLAG_ENCODING_PARAM, "mpegts_service_type" },
> + { "hevc_digital_hdtv", "HEVC Digital Television Service.",
> + 0, AV_OPT_TYPE_CONST, { .i64 =
> MPEGTS_SERVICE_TYPE_HEVC_DIGITAL_HDTV }, 0x01, 0xff,
> + AV_OPT_FLAG_ENCODING_PARAM, "mpegts_service_type" },
> { "mpegts_pmt_start_pid", "Set the first pid of the PMT.",
> offsetof(MpegTSWrite, pmt_start_pid), AV_OPT_TYPE_INT,
> { .i64 = 0x1000 }, 0x0010, 0x1f00, AV_OPT_FLAG_ENCODING_PARAM },
> --
> 1.9.1
>
>
> The contents of this e-mail are confidential to the addressee and are
> intended solely for the recipients use. If you are not the addressee, you
> have received this e-mail in error. Any disclosure, copying, distribution
> or action taken in reliance on it is prohibited and may be unlawful. Please
> note that any opinions expressed in this e-mail are those of the author
> personally and not your business name who do not accept responsibility for
> the contents of the message.
>
> To conserve our resources for the future please reconsider before printing
> this e-mail.
>
> 2016-04-21 14:32 GMT+03:00 Ali KIZIL <alikizil at gmail.com>:
>
>> Hi All,
>>
>> With help of cehoyos, I created a patch file for Tickets 5388 & 5455. (My
>> first patch file.)
>> Patch targets to add HEVC digital television service type (0x1f) to
>> FFmpeg and fix audio stream specifier for MPEG 1 Layer II Audio to 0x04
>> (currently it is 0x03 and causes decode problem in some STBs.)
>>
>> Ticket links:
>> http://trac.ffmpeg.org/ticket/5455
>> http://trac.ffmpeg.org/ticket/5388
>>
>> Kind Regards,
>> Ali KIZIL
>>
>> The contents of this e-mail are confidential to the addressee and are
>> intended solely for the recipients use. If you are not the addressee, you
>> have received this e-mail in error. Any disclosure, copying, distribution
>> or action taken in reliance on it is prohibited and may be unlawful. Please
>> note that any opinions expressed in this e-mail are those of the author
>> personally and not your business name who do not accept responsibility for
>> the contents of the message.
>>
>> To conserve our resources for the future please reconsider before
>> printing this e-mail.
>>
>
>
More information about the ffmpeg-devel
mailing list