[FFmpeg-user] Storing scan-type/interlaced in MXF?

Peter B. pb at das-werkstatt.com
Wed Oct 31 14:11:06 EET 2018


Hi everyone :)

When trying to store an interlaced J2K-lossless in MXF, ffmpeg
recognizes the "top field first" given, but the resulting file claims to
be progressive :(

------------------------------
FFmpeg encoding says:
"Stream #0:0: Video: jpeg2000 (libopenjpeg), yuv422p10le(top first),
720x576 [SAR 1:1 DAR 5:4], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97
tbc"

FFprobe check says:
"Stream #0:0: Video: jpeg2000, yuv422p10le(progressive), 720x576, 29.97
tbr, 29.97 tbn, 29.97 tbc"
------------------------------

If anyone could tell me how to make the result "behave" properly, I'd be
very grateful :D

Thanks in advance,
Peter B.



Here's the commandline and uncut console output:


------------------------------
$ ffmpeg-git -f lavfi -i testsrc=size=720x576:rate=30000/1001 -c:v
libopenjpeg -pix_fmt yuv422p10le -t 1 -an -top 1 delme.mxf
------------------------------

ffmpeg version N-91407-g3c4af57 Copyright (c) 2000-2018 the FFmpeg
developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 20160609
  configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
--enable-version3 --enable-postproc --enable-ffplay --enable-swscale
--enable-avfilter --enable-pthreads --enable-bzlib --enable-zlib
--enable-decoder=png --enable-encoder=png --samples=../fate-suite
--enable-libfreetype --enable-libopenjpeg --disable-decoder=jpeg2000
--enable-libvpx --enable-libvorbis --enable-libx264 --enable-libx265
  libavutil      56. 18.102 / 56. 18.102
  libavcodec     58. 20.104 / 58. 20.104
  libavformat    58. 17.101 / 58. 17.101
  libavdevice    58.  4.101 / 58.  4.101
  libavfilter     7. 25.100 /  7. 25.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, lavfi, from 'testsrc=size=720x576:rate=30000/1001':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 720x576
[SAR 1:1 DAR 5:4], 29.97 tbr, 29.97 tbn, 29.97 tbc
File 'delme.mxf' already exists. Overwrite ? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> jpeg2000 (libopenjpeg))
Press [q] to stop, [?] for help
Output #0, mxf, to 'delme.mxf':
  Metadata:
    encoder         : Lavf58.17.101
    Stream #0:0: Video: jpeg2000 (libopenjpeg), yuv422p10le(top first),
720x576 [SAR 1:1 DAR 5:4], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
    Metadata:
      encoder         : Lavc58.20.104 libopenjpeg
frame=   30 fps=0.0 q=-0.0 Lsize=    1217kB time=00:00:01.00
bitrate=9956.1kbits/s speed=1.92x   
video:1186kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 2.568086%


------------------------------
ffprobe-git -i delme.mxf
------------------------------

ffprobe version N-91407-g3c4af57 Copyright (c) 2007-2018 the FFmpeg
developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 20160609
  configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
--enable-version3 --enable-postproc --enable-ffplay --enable-swscale
--enable-avfilter --enable-pthreads --enable-bzlib --enable-zlib
--enable-decoder=png --enable-encoder=png --samples=../fate-suite
--enable-libfreetype --enable-libopenjpeg --disable-decoder=jpeg2000
--enable-libvpx --enable-libvorbis --enable-libx264 --enable-libx265
  libavutil      56. 18.102 / 56. 18.102
  libavcodec     58. 20.104 / 58. 20.104
  libavformat    58. 17.101 / 58. 17.101
  libavdevice    58.  4.101 / 58.  4.101
  libavfilter     7. 25.100 /  7. 25.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, mxf, from 'delme.mxf':
  Metadata:
    uid             : adab4424-2f25-4dc7-92ff-29bd000c0000
    generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001
    company_name    : FFmpeg
    product_name    : OP1a Muxer
    product_version : 58.17.101
    product_uid     : adab4424-2f25-4dc7-92ff-29bd000c0002
    modification_date: 0-01-02T00:00:00.000000Z
    material_package_umid:
0x060A2B340101010501010D001355EF5D529471340A55EF5D00529471340A5500
    timecode        : 00:00:00:00
  Duration: 00:00:01.00, start: 0.000000, bitrate: 9956 kb/s
    Stream #0:0: Video: jpeg2000, yuv422p10le(progressive), 720x576,
29.97 tbr, 29.97 tbn, 29.97 tbc
    Metadata:
      file_package_umid:
0x060A2B340101010501010D001355EF5D529471340A55EF5D00529471340A5501



More information about the ffmpeg-user mailing list