[FFmpeg-user] -vf Colorspace filter - 'Unknown input primaries 2' error
Kieran O Leary
kieran.o.leary at gmail.com
Fri May 13 14:34:29 CEST 2016
On 13 May 2016 12:26 p.m., "Paul B Mahol" <onemda at gmail.com> wrote:
>
>
> This is XYZ right?
>
> AFAIK colorspace filter doesn't support XYZ as input.
>
It is indeed XYZ. However when I transcode the DCP to libx264 without any
filtering and the output file is yuv420p, the colorspace filter still
throws up the error when I try to use that x264 file as input and impose
the bt709 space. I must be doing something wrong with my filter command?
ffmpeg -i /Users/ifiedit/Desktop/_muxed_2016_05_13T12_48_42.mkv -vf
colorspace=bt709 /Users/ifiedit/Desktop/output.mkv
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-libass --enable-ffplay --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
Input #0, matroska,webm, from
'/Users/ifiedit/Desktop/_muxed_2016_05_13T12_48_42.mkv':
Metadata:
ENCODER : Lavf57.25.100
Duration: 00:02:14.15, start: 0.000000, bitrate: 2484 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 2048x858 [SAR 1:1 DAR
1024:429], 24 fps, 24 tbr, 1k tbn (default)
Metadata:
FILE_PACKAGE_UMID:
0x060A2B340101010501010F20130000009423E7D888874901A8BE497684BE549D
FILE_PACKAGE_NAME: File Package: SMPTE 429-4 frame wrapping of
JPEG 2000 codestreams
ENCODER : Lavc57.24.102 libx264
DURATION : 00:02:14.146000000
Stream #0:1: Audio: aac (LC), 48000 Hz, 5.1, fltp (default)
Metadata:
FILE_PACKAGE_UMID:
0x060A2B340101010501010F20130000002DACAAD9E7B045F8B8F6FEF40AE86743
FILE_PACKAGE_NAME: File Package: SMPTE 382M frame wrapping of wave audio
ENCODER : Lavc57.24.102 aac
DURATION : 00:02:12.501000000
[libx264 @ 0x7fe10b811a00] using SAR=1/1
[libx264 @ 0x7fe10b811a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x7fe10b811a00] profile High, level 4.0
[libx264 @ 0x7fe10b811a00] 264 - core 148 r2668 fd2c324 - H.264/MPEG-4
AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html -
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
threads=24 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1
interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2
b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00
[matroska @ 0x7fe10b810200] Using AVStream.codec to pass codec
parameters to muxers is deprecated, use AVStream.codecpar instead.
Last message repeated 1 times
Output #0, matroska, to '/Users/ifiedit/Desktop/output.mkv':
Metadata:
encoder : Lavf57.36.100
Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 2048x858
[SAR 1:1 DAR 1024:429], q=2-31, 24 fps, 1k tbn (default)
Metadata:
FILE_PACKAGE_UMID:
0x060A2B340101010501010F20130000009423E7D888874901A8BE497684BE549D
FILE_PACKAGE_NAME: File Package: SMPTE 429-4 frame wrapping of
JPEG 2000 codestreams
DURATION : 00:02:14.146000000
encoder : Lavc57.41.102 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1,
fltp, 448 kb/s (default)
Metadata:
FILE_PACKAGE_UMID:
0x060A2B340101010501010F20130000002DACAAD9E7B045F8B8F6FEF40AE86743
FILE_PACKAGE_NAME: File Package: SMPTE 382M frame wrapping of wave audio
DURATION : 00:02:12.501000000
encoder : Lavc57.41.102 ac3
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> ac3 (native))
Press [q] to stop, [?] for help
[Parsed_colorspace_0 @ 0x7fe10b700000] Unsupported input primaries 2 (unknown)
Failed to inject frame into filter network: Invalid argument
Conversion failed!
More information about the ffmpeg-user
mailing list