[FFmpeg-user] question regarding store_user_comments

Julian Link j.link at filmuniversitaet.de
Tue Jan 24 18:56:35 EET 2017


Hey there,

 

i am trying to write metadata to an mxf file.

 

ffmpeg.exe -i Z:\hide\MXF_files\A019C046.mxf -an -f mxf_opatom -b:v 36M
-metadata comment_x=y out.mxf

 

Before ffmpeg version 2.8.2 this line worked as expected.

A ffmpeg -i out.mxf shows

 

comment_x       : y

 

But in version 2.8.2 that changed.

In the changelog I find

“- avformat/mxfenc: Only store user comment related tags when needed”

 

So it seems there is a new muxer option for mxf_opatom 

store_user_comments bool

 

But no matter what I try, there is no user comment in the metadata after
rendering.

 

ffmpeg.exe -i Z:\hide\MXF_files\A019C046.mxf -an -f mxf_opatom
-store_user_comments 1 -b:v 36M –metadata comment_x=y out.mxf

 

Am I doing something wrong?

Can anyone shed some light?

Thank you!

 

Best,

Jules

 

 

working example with version 2.8.1

 

C:\Users\dwerft\Downloads\ffmpeg-2.8.1-win64-static\bin>ffmpeg.exe -i
Z:\hide\MXF_files\A019C046.mxf -an -f mxf_opatom -b:v 36M -metadata
comment_x=y out.mxf

ffmpeg version 2.8.1 Copyright (c) 2000-2015 the FFmpeg developers

  built with gcc 5.2.0 (GCC)

  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enab

le-iconv --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme
--enable-libgsm --enable-l

ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-librtmp --en

able-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 --ena

ble-decklink --enable-zlib

  libavutil      54. 31.100 / 54. 31.100

  libavcodec     56. 60.100 / 56. 60.100

  libavformat    56. 40.101 / 56. 40.101

  libavdevice    56.  4.100 / 56.  4.100

  libavfilter     5. 40.101 /  5. 40.101

  libswscale      3.  1.101 /  3.  1.101

  libswresample   1.  2.101 /  1.  2.101

  libpostproc    53.  3.100 / 53.  3.100

[dnxhd @ 00000000030e5660] frame size changed: 1920x1088 -> 1920x1080

Input #0, mxf, from 'Z:\hide\MXF_files\A019C046.mxf':

  Metadata:

    uid             : adab4424-2f25-4dc7-92ff-29bd000c0000

    generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001

    company_name    : FFmpeg

    product_name    : OPAtom Muxer

    product_version : 57.63.100

    product_uid     : adab4424-2f25-4dc7-92ff-29bd000c0002

    modification_date: 0000-01-01 00:00:00

    material_package_umid:
0x060A2B340101010501010D001324A82352947134D824A8230052947134D82400

    timecode        : 13:33:28:23

  Duration: 00:00:10.00, start: 0.000000, bitrate: 37688 kb/s

    Stream #0:0: Video: dnxhd, yuv422p, 1920x1080, SAR 1:1 DAR 16:9, 25 fps,
25 tbr, 25 tbn, 25 tbc

    Metadata:

      file_package_umid:
0x060A2B340101010501010D001324A82352947134D824A8230052947134D82401

File 'out.mxf' already exists. Overwrite ? [y/N] y

Output #0, mxf_opatom, to 'out.mxf':

  Metadata:

    uid             : adab4424-2f25-4dc7-92ff-29bd000c0000

    generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001

    company_name    : FFmpeg

    product_name    : OPAtom Muxer

    product_version : 57.63.100

    product_uid     : adab4424-2f25-4dc7-92ff-29bd000c0002

    modification_date: 0000-01-01 00:00:00

    material_package_umid:
0x060A2B340101010501010D001324A82352947134D824A8230052947134D82400

    timecode        : 13:33:28:23

    comment_x       : y

    encoder         : Lavf56.40.101

    Stream #0:0: Video: dnxhd, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9],
q=2-1024, 36000 kb/s, 25 fps, 25 tbn, 25 tbc

    Metadata:

      file_package_umid:
0x060A2B340101010501010D001324A82352947134D824A8230052947134D82401

      encoder         : Lavc56.60.100 dnxhd

Stream mapping:

  Stream #0:0 -> #0:0 (dnxhd (native) -> dnxhd (native))

Press [q] to stop, [?] for help

frame=  250 fps= 65 q=2.0 Lsize=   46007kB time=00:00:10.00
bitrate=37688.6kbits/s

video:46000kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.014251%

 

C:\Users\dwerft\Downloads\ffmpeg-2.8.1-win64-static\bin>ffmpeg.exe -i
out.mxf

ffmpeg version 2.8.1 Copyright (c) 2000-2015 the FFmpeg developers

  built with gcc 5.2.0 (GCC)

  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enab

le-iconv --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme
--enable-libgsm --enable-l

ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-librtmp --en

able-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 --ena

ble-decklink --enable-zlib

  libavutil      54. 31.100 / 54. 31.100

  libavcodec     56. 60.100 / 56. 60.100

  libavformat    56. 40.101 / 56. 40.101

  libavdevice    56.  4.100 / 56.  4.100

  libavfilter     5. 40.101 /  5. 40.101

  libswscale      3.  1.101 /  3.  1.101

  libswresample   1.  2.101 /  1.  2.101

  libpostproc    53.  3.100 / 53.  3.100

[dnxhd @ 0000000000335260] frame size changed: 1920x1088 -> 1920x1080

Input #0, mxf, from 'out.mxf':

  Metadata:

    uid             : adab4424-2f25-4dc7-92ff-29bd000c0000

    generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001

    company_name    : FFmpeg

    product_name    : OPAtom Muxer

    product_version : 56.40.101

    product_uid     : adab4424-2f25-4dc7-92ff-29bd000c0002

    modification_date: 0000-01-01 00:00:00

    material_package_umid:
0x060A2B340101010501010D0013844BA5529471345A844BA500529471345A8400

    comment_x       : y

    timecode        : 13:33:28:23

  Duration: 00:00:10.00, start: 0.000000, bitrate: 37688 kb/s

    Stream #0:0: Video: dnxhd, yuv422p, 1920x1080, SAR 1:1 DAR 16:9, 25 fps,
25 tbr, 25 tbn, 25 tbc

    Metadata:

      file_package_umid:
0x060A2B340101010501010D0013844BA5529471345A844BA500529471345A8401

At least one output file must be specified

 

 

 

not working example with version 2.8.2

 

C:\Users\dwerft\Downloads\ffmpeg-2.8.2-win64-static\bin>ffmpeg.exe -i
Z:\hide\MXF_files\A019C046.mxf -an -f mxf_opatom -store_user_comments 1 -b:v
36M -metadata

comment_x=y out.mxf

ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers

  built with gcc 5.2.0 (GCC)

  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enab

le-iconv --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme
--enable-libgsm --enable-l

ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-librtmp --en

able-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 --ena

ble-decklink --enable-zlib

  libavutil      54. 31.100 / 54. 31.100

  libavcodec     56. 60.100 / 56. 60.100

  libavformat    56. 40.101 / 56. 40.101

  libavdevice    56.  4.100 / 56.  4.100

  libavfilter     5. 40.101 /  5. 40.101

  libswscale      3.  1.101 /  3.  1.101

  libswresample   1.  2.101 /  1.  2.101

  libpostproc    53.  3.100 / 53.  3.100

[dnxhd @ 0000000003115800] frame size changed: 1920x1088 -> 1920x1080

Input #0, mxf, from 'Z:\hide\MXF_files\A019C046.mxf':

  Metadata:

    uid             : adab4424-2f25-4dc7-92ff-29bd000c0000

    generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001

    company_name    : FFmpeg

    product_name    : OPAtom Muxer

    product_version : 57.63.100

    product_uid     : adab4424-2f25-4dc7-92ff-29bd000c0002

    modification_date: 0000-01-01 00:00:00

    material_package_umid:
0x060A2B340101010501010D001324A82352947134D824A8230052947134D82400

    timecode        : 13:33:28:23

  Duration: 00:00:10.00, start: 0.000000, bitrate: 37688 kb/s

    Stream #0:0: Video: dnxhd, yuv422p, 1920x1080, SAR 1:1 DAR 16:9, 25 fps,
25 tbr, 25 tbn, 25 tbc

    Metadata:

      file_package_umid:
0x060A2B340101010501010D001324A82352947134D824A8230052947134D82401

File 'out.mxf' already exists. Overwrite ? [y/N] y

Output #0, mxf_opatom, to 'out.mxf':

  Metadata:

    uid             : adab4424-2f25-4dc7-92ff-29bd000c0000

    generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001

    company_name    : FFmpeg

    product_name    : OPAtom Muxer

    product_version : 57.63.100

    product_uid     : adab4424-2f25-4dc7-92ff-29bd000c0002

    modification_date: 0000-01-01 00:00:00

    material_package_umid:
0x060A2B340101010501010D001324A82352947134D824A8230052947134D82400

    timecode        : 13:33:28:23

    comment_x       : y

    encoder         : Lavf56.40.101

    Stream #0:0: Video: dnxhd, yuv422p, 1920x1080 [SAR 1:1 DAR 16:9],
q=2-1024, 36000 kb/s, 25 fps, 25 tbn, 25 tbc

    Metadata:

      file_package_umid:
0x060A2B340101010501010D001324A82352947134D824A8230052947134D82401

      encoder         : Lavc56.60.100 dnxhd

Stream mapping:

  Stream #0:0 -> #0:0 (dnxhd (native) -> dnxhd (native))

Press [q] to stop, [?] for help

frame=  250 fps= 65 q=2.0 Lsize=   46007kB time=00:00:10.00
bitrate=37688.6kbits/s

video:46000kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.014251%

 

C:\Users\dwerft\Downloads\ffmpeg-2.8.2-win64-static\bin>ffmpeg.exe -i
out.mxf

ffmpeg version 2.8.2 Copyright (c) 2000-2015 the FFmpeg developers

  built with gcc 5.2.0 (GCC)

  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enab

le-iconv --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme
--enable-libgsm --enable-l

ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-librtmp --en

able-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 --ena

ble-decklink --enable-zlib

  libavutil      54. 31.100 / 54. 31.100

  libavcodec     56. 60.100 / 56. 60.100

  libavformat    56. 40.101 / 56. 40.101

  libavdevice    56.  4.100 / 56.  4.100

  libavfilter     5. 40.101 /  5. 40.101

  libswscale      3.  1.101 /  3.  1.101

  libswresample   1.  2.101 /  1.  2.101

  libpostproc    53.  3.100 / 53.  3.100

[dnxhd @ 00000000031150e0] frame size changed: 1920x1088 -> 1920x1080

Input #0, mxf, from 'out.mxf':

  Metadata:

    uid             : adab4424-2f25-4dc7-92ff-29bd000c0000

    generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001

    company_name    : FFmpeg

    product_name    : OPAtom Muxer

    product_version : 56.40.101

    product_uid     : adab4424-2f25-4dc7-92ff-29bd000c0002

    modification_date: 0000-01-01 00:00:00

    material_package_umid:
0x060A2B340101010501010D00131D855D52947134B91D855D0052947134B91D00

    timecode        : 13:33:28:23

  Duration: 00:00:10.00, start: 0.000000, bitrate: 37688 kb/s

    Stream #0:0: Video: dnxhd, yuv422p, 1920x1080, SAR 1:1 DAR 16:9, 25 fps,
25 tbr, 25 tbn, 25 tbc

    Metadata:

      file_package_umid:
0x060A2B340101010501010D00131D855D52947134B91D855D0052947134B91D01

At least one output file must be specified

 

 





























..

Julian Link

Filmuniversität Babelsberg KONRAD WOLF

Forschungsprojekt dwerft

 

Filmuniversity Babelsberg KONRAD WOLF

dwerft Research Project

 

j.link at filmuniversitaet.de

www.filmuniversitaet.de

www.dwerft.de

 



More information about the ffmpeg-user mailing list