[FFmpeg-user] -vf Colorspace filter - 'Unknown input primaries 2' error

Paul B Mahol onemda at gmail.com
Fri May 13 13:26:12 CEST 2016


On 5/13/16, Kieran O'Leary <kieran.oleary at irishfilm.ie> wrote:
> Hello,
>
> I want to transcode a DCP to ProRes or x264 while transforming to bt709. I
> am experimenting with the colorspace filter, as I've found that most DCPS
> that I've converted have low contrast and washed out colours. As some DCP
> players (EasyDCP) allow XYZ -> bt709 transforms, I wanted to see if forcing
> bt709 would produce more satisfactory images. Clearly, I am not very
> knowledgeable when it comes to colour spaces, so any feedback is greatly
> appreciated.
>
> I noticed that the colormatrix filter requires that both input and output
> colour matrixes are specified, but I understood from the documentation that
> the colorspace filter does not require this.
>
> Here is my command: ffmpeg -i /Volumes/Stardom/kieran_tests/input.mxf -c:v
> prores -vf colorspace=bt709 /Volumes/Stardom/kieran_tests/output.mov
>
>
>
>
> ffmpeg -i /Volumes/Stardom/kieran_tests/input.mxf -c:v prores -vf
> colorspace=bt709 /Volumes/Stardom/kieran_tests/output.mov
>
> ffmpeg version git-2016-05-13-ed3a025 Copyright (c) 2000-2016 the FFmpeg
> developers
>
>   built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
>
>   configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared
> --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
> --enable-avresample --cc=clang --host-cflags= --host-ldflags=
> --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid
> --enable-libfreetype --enable-libfaac --enable-libass --enable-ffplay
> --enable-libx265 --enable-libopenjpeg --disable-decoder=jpeg2000
> --extra-cflags=-I/usr/local/Cellar/openjpeg/1.5.2_1/include/openjpeg-1.5
> --enable-nonfree --enable-vda
>
>   libavutil      55. 24.100 / 55. 24.100
>
>   libavcodec     57. 41.102 / 57. 41.102
>
>   libavformat    57. 36.100 / 57. 36.100
>
>   libavdevice    57.  0.101 / 57.  0.101
>
>   libavfilter     6. 45.100 /  6. 45.100
>
>   libavresample   3.  0.  0 /  3.  0.  0
>
>   libswscale      4.  1.100 /  4.  1.100
>
>   libswresample   2.  0.101 /  2.  0.101
>
>   libpostproc    54.  0.100 / 54.  0.100
>
> [mxf @ 0x7fd0bc00ac00] "OPAtom" with 2 ECs - assuming OP1a
>
> Input #0, mxf, from '/Volumes/Stardom/kieran_tests/input.mxf':
>
>   Metadata:
>
>     uid             : a9becd46-734f-4f2b-b8a0-b9ef8fb12e7c
>
>     generation_uid  : 43deb483-89d5-4999-adb2-0b489a4c6b6b
>
>     company_name    : QubeCinema, Inc.
>
>     product_name    : QubeMaster Pro
>
>     product_version : 2.4
>
>     product_uid     : a6d3ea56-8155-4dfc-86f6-664b12671427
>
>     modification_date: 2016-01-15 12:55:18
>
>     application_platform: win32
>
>     material_package_umid:
> 0x060A2B340101010501010F2013000000397E9CDFB9214B38BD67D776C752A98A
>
>     material_package_name: AS-DCP Material Package
>
>     timecode        : 00:00:00:00
>
>   Duration: 00:12:03.25, start: 0.000000, bitrate: 178178 kb/s
>
>     Stream #0:0: Video: jpeg2000, rgb48le(12 bpc), 2048x858, SAR 1:1 DAR

This is XYZ right?

AFAIK colorspace filter doesn't support XYZ as input.

> 1024:429, 24 tbr, 24 tbn
>
>     Metadata:
>
>       file_package_umid:
> 0x060A2B340101010501010F2013000000C1CA596A60CE49009349EA73FD0B54D3
>
>       file_package_name: File Package: SMPTE 429-4 frame wrapping of JPEG
> 2000 codestreams
>
> File '/Volumes/Stardom/kieran_tests/output.mov' already exists. Overwrite ?
> [y/N] y
>
> [prores @ 0x7fd0bd074c00] encoding with ProRes standard (apcn) profile
>
> [prores @ 0x7fd0bd079400] encoding with ProRes standard (apcn) profile
>
> [prores @ 0x7fd0bd07dc00] encoding with ProRes standard (apcn) profile
>
> [prores @ 0x7fd0bd082400] encoding with ProRes standard (apcn) profile
>
> [prores @ 0x7fd0bd086c00] encoding with ProRes standard (apcn) profile
>
> [prores @ 0x7fd0bd08b400] encoding with ProRes standard (apcn) profile
>
> [prores @ 0x7fd0bd08fc00] encoding with ProRes standard (apcn) profile
>
> [prores @ 0x7fd0bd094400] encoding with ProRes standard (apcn) profile
>
> [prores @ 0x7fd0bc012400] encoding with ProRes standard (apcn) profile
>
> [mov @ 0x7fd0bc016c00] Using AVStream.codec to pass codec parameters to
> muxers is deprecated, use AVStream.codecpar instead.
>
> Output #0, mov, to '/Volumes/Stardom/kieran_tests/output.mov':
>
>   Metadata:
>
>     uid             : a9becd46-734f-4f2b-b8a0-b9ef8fb12e7c
>
>     generation_uid  : 43deb483-89d5-4999-adb2-0b489a4c6b6b
>
>     company_name    : QubeCinema, Inc.
>
>     product_name    : QubeMaster Pro
>
>     product_version : 2.4
>
>     product_uid     : a6d3ea56-8155-4dfc-86f6-664b12671427
>
>     modification_date: 2016-01-15 12:55:18
>
>     application_platform: win32
>
>     material_package_umid:
> 0x060A2B340101010501010F2013000000397E9CDFB9214B38BD67D776C752A98A
>
>     material_package_name: AS-DCP Material Package
>
>     timecode        : 00:00:00:00
>
>     encoder         : Lavf57.36.100
>
>     Stream #0:0: Video: prores (apcn / 0x6E637061), yuv422p10le, 2048x858
> [SAR 1:1 DAR 1024:429], q=2-31, 200 kb/s, 0.04 fps, 12288 tbn
>
>     Metadata:
>
>       file_package_umid:
> 0x060A2B340101010501010F2013000000C1CA596A60CE49009349EA73FD0B54D3
>
>       file_package_name: File Package: SMPTE 429-4 frame wrapping of JPEG
> 2000 codestreams
>
>       encoder         : Lavc57.41.102 prores
>
> Stream mapping:
>
>   Stream #0:0 -> #0:0 (jpeg2000 (libopenjpeg) -> prores (native))
>
> Press [q] to stop, [?] for help
>
> [Parsed_colorspace_0 @ 0x7fd0bbe00000] Unsupported input primaries 2
> (unknown)
>
> Failed to inject frame into filter network: Invalid argument
>
> Conversion failed!
>
> I have also tried
>
> ffmpeg -i /Volumes/Stardom/kieran_tests/input.mxf -c:v prores -vf
> colorspace=all=bt709 /Volumes/Stardom/kieran_tests/output.mov
>
>
> but I got the same error.
> Thanks!
>
> -Kieran.
>
>
> ------
> This email has been scanned for spam and malware by The Email Laundry.
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list