[FFmpeg-user] How to set 3 specific metadata flags (ITU601/displayoffset) in FFmpegs IMX50 MXF-OP1a encoding?
Christoph Gerstbauer
christophgerstbauer at gmail.com
Thu Mar 19 12:36:40 CET 2015
> Don't know if its relevant but your coding parameters are slightly
> different to the one's I use for D10, and I wonder if this affects the
> automatic metadata insertion..
>
>
> "-flags +ildct+ilme+low_delay"
>
> Well ilme seems kind of redundant for I frame only coding but probably
> harmless.
>
> "-tag:v mx5p"
>
> irrelevant for mxf, but again probably harmless.
>
> I use the following which you do not:-
>
> -rc_max_vbv_use 1
>
> -rc_min_vbv_use 1
>
> and you use the following that I do not:-
>
> "-qmax 3 -rc_buf_aggressivity 0.25"
>
> I don't know what difference, if any, those changes make, but the values
> I use create D10 files that BBC R&D looked at and thought were OK.
>
> Perhaps worth a try?
>
I tried it with your settings but ffmpeg did not encoded it, I became
several error messages:
C:\Users\gersti>ffmpegnew -i
I:\IMX_tests\IMX50_CARBON_toffvhuff_toFFMPEGIMX50.mxf -map 0:v -map 0:a
-c:v mpeg2video -r 25 -pix_fmt yuv422p -aspect 4:3 -minrate 50000k
-maxrate 50000k -b:v 50000k -intra -flags +ildct+low_delay -intra_vlc 1
-non_linear_quant 1 -ps 1 -qmin 1 -top 1 -dc 10 -bufsize 2000000
-rc_init_occupancy 2000000 -rc_max_vbv_use 1 -rc_min_vbv_use 1 -c:a
pcm_s24le -ar 48000 -f mxf_d10
I:\IMX_tests\IMX50_CARBON_toffvhuff_toFFMPEGIMX50_TIM.mxf
ffmpeg version N-70803-g0f16dfd Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libblu
ray --enable-libbs2b --enable-libcaca --enable-libfreetype
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinger --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvo-aacenc --
enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enab
le-zlib
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 28.100 / 56. 28.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 12.100 / 5. 12.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mxf, from 'I:\IMX_tests\IMX50_CARBON_toffvhuff_toFFMPEGIMX50.mxf':
Metadata:
uid : adab4424-2f25-4dc7-92ff-29bd000b0000
generation_uid : adab4424-2f25-4dc7-92ff-29bd000b0001
company_name : FFmpeg
product_name : OP1a Muxer
product_version : 55.0.100
product_uid : adab4424-2f25-4dc7-92ff-29bd000b0002
modification_date: 0000-01-01 00:00:00
material_package_umid:
0x060A2B340101010501010D0013061F685294713468061F680052947134680600
timecode : 00:00:00:00
Duration: 00:00:20.00, start: 0.000000, bitrate: 62568 kb/s
Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv), 720x608 [SAR
152:135 DAR 4:3], 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
Metadata:
file_package_umid:
0x060A2B340101010501010D0013061F685294713468061F680052947134680601
Stream #0:1: Audio: pcm_s24le, 48000 Hz, 2 channels, s32 (24 bit),
2304 kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D0013061F685294713468061F680052947134680601
[mpeg2video @ 00000000055ef4e0] non linear quant only supports qmax <=
12 currently
Output #0, mxf_d10, to
'I:\IMX_tests\IMX50_CARBON_toffvhuff_toFFMPEGIMX50_TIM.mxf':
Metadata:
uid : adab4424-2f25-4dc7-92ff-29bd000b0000
generation_uid : adab4424-2f25-4dc7-92ff-29bd000b0001
company_name : FFmpeg
product_name : OP1a Muxer
product_version : 55.0.100
product_uid : adab4424-2f25-4dc7-92ff-29bd000b0002
modification_date: 0000-01-01 00:00:00
material_package_umid:
0x060A2B340101010501010D0013061F685294713468061F680052947134680600
timecode : 00:00:00:00
Stream #0:0: Video: mpeg2video, none, q=2-31, 128 kb/s, SAR 152:135
DAR 0:0, 25 fps
Metadata:
file_package_umid:
0x060A2B340101010501010D0013061F685294713468061F680052947134680601
encoder : Lavc56.28.100 mpeg2video
Stream #0:1: Audio: pcm_s24le, 0 channels
Metadata:
file_package_umid:
0x060A2B340101010501010D0013061F685294713468061F680052947134680601
encoder : Lavc56.28.100 pcm_s24le
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
Stream #0:1 -> #0:1 (pcm_s24le (native) -> pcm_s24le (native))
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height
Best Regards
Christoph
More information about the ffmpeg-user
mailing list