Commit adff77f2 authored by Daniel Kristjansson's avatar Daniel Kristjansson Committed by Janne Grunau

mxfenc: Add support for MPEG-2 MP@HL-14 in mxf container.

Support Main Profile at High 1440 Level in MXF container,
using essence coding label from SMPTE RDD 9, table 6.
Signed-off-by: 's avatarJanne Grunau <janne-libav@jannau.net>
parent 4ee04247
...@@ -1285,6 +1285,8 @@ static const UID mxf_mpeg2_codec_uls[] = { ...@@ -1285,6 +1285,8 @@ static const UID mxf_mpeg2_codec_uls[] = {
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x03,0x03,0x00 }, // MP-HL Long GOP { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x03,0x03,0x00 }, // MP-HL Long GOP
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x04,0x02,0x00 }, // 422P-HL I-Frame { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x04,0x02,0x00 }, // 422P-HL I-Frame
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x04,0x03,0x00 }, // 422P-HL Long GOP { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x04,0x03,0x00 }, // 422P-HL Long GOP
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x05,0x02,0x00 }, // MP@H-14 I-Frame
{ 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x03,0x04,0x01,0x02,0x02,0x01,0x05,0x03,0x00 }, // MP@H-14 Long GOP
}; };
static const UID *mxf_get_mpeg2_codec_ul(AVCodecContext *avctx) static const UID *mxf_get_mpeg2_codec_ul(AVCodecContext *avctx)
...@@ -1296,6 +1298,8 @@ static const UID *mxf_get_mpeg2_codec_ul(AVCodecContext *avctx) ...@@ -1296,6 +1298,8 @@ static const UID *mxf_get_mpeg2_codec_ul(AVCodecContext *avctx)
return &mxf_mpeg2_codec_uls[0+long_gop]; return &mxf_mpeg2_codec_uls[0+long_gop];
else if (avctx->level == 4) // High else if (avctx->level == 4) // High
return &mxf_mpeg2_codec_uls[4+long_gop]; return &mxf_mpeg2_codec_uls[4+long_gop];
else if (avctx->level == 6) // High 14
return &mxf_mpeg2_codec_uls[8+long_gop];
} else if (avctx->profile == 0) { // 422 } else if (avctx->profile == 0) { // 422
if (avctx->level == 5) // Main if (avctx->level == 5) // Main
return &mxf_mpeg2_codec_uls[2+long_gop]; return &mxf_mpeg2_codec_uls[2+long_gop];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment