[FFmpeg-devel] [PATCH] MXF format fix for Sony Station compatibility

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Oct 23 14:11:08 EEST 2017


2017-10-23 13:07 GMT+02:00 Carl Eugen Hoyos <ceffmpeg at gmail.com>:
> 2017-10-23 12:31 GMT+02:00  <Development at axeltechnology.com>:
>> This patch fixes the MXF format write. This is required for
>> Sony XDCAM Station and Sony Content Browser compatibility.

>> +    mxf_write_local_tag(pb, 4, 0x3308);
>> +    if (st->codec->pix_fmt == AV_PIX_FMT_YUV420P)
>> +        avio_wb32(pb, 2);
>> +    else
>> +        avio_wb32(pb, 1);
>
> This looks a little suspicious:

See what's done for 0x3302, add a new context variable
v_chroma_sub_sample, set it together with the existing
h_chroma_sub_sample and use it here.

Carl Eugen


More information about the ffmpeg-devel mailing list