I want to convert rgb2xyz
Posted: 2019-06-06T22:22:51-07:00
Hi~ I have some question.
I want to make DCP from my video(mp4).
It's my workflow.
1. I made TIFF sequence file from my mp4 file with ffmpeg.
CLI) ffmpeg -i myVideo.mp4 -q:v 1 -pix_fmt rgb48le myVideoFrame%10d.tiff
2. I converted to J2C with ImageMagick
CLI) magic myVideoFrame0000000001.tiff -colorspace XYZ myVideoFrame0000000001.j2c
3. make MXF and DCP by OpenDCP
But, in the second step I can't convert to j2c with xyz colorspace.
This mean, color is changed. but I inspected by ffmepeg image still rgb
CLI) ffmpeg -i myVideoFrame0000000001.j2c
- > Stream #0:0: Video: jpeg2000, rgb48le, 2048x858, lossless, 25 tbr, 25 tbn, 25 tbc
If I convert to j2c with OpenDCP
CLI) ffmpeg -i test.j2c
- > Stream #0:0: Video: jpeg2000 (JPEG 2000 digital cinema 2K), xyz12le, 2048x858, 25 tbr, 25 tbn, 25 tbc
I think the image contains color information.
Can I change this embedded color infomation also?
and, If I have already converted j2c file with sRGB color space or other color space can I change only color space in same extension?
Ofcause, I can convert to j2c with OpenDCP or other software. but, It is so slow....
Do any one have some idea?
==============================================================================================================================
My machine info
CPU : AMD Ryzen 7 2700X
RAM : 32GB
SSD : 500GB(SAMSUNG)
GPU : NVIDIA GeForce GTX 1660
OS : WIN 10(x64)
ImageMagick version : 7.0.8-48-portable-Q16-x64
I want to make DCP from my video(mp4).
It's my workflow.
1. I made TIFF sequence file from my mp4 file with ffmpeg.
CLI) ffmpeg -i myVideo.mp4 -q:v 1 -pix_fmt rgb48le myVideoFrame%10d.tiff
2. I converted to J2C with ImageMagick
CLI) magic myVideoFrame0000000001.tiff -colorspace XYZ myVideoFrame0000000001.j2c
3. make MXF and DCP by OpenDCP
But, in the second step I can't convert to j2c with xyz colorspace.
This mean, color is changed. but I inspected by ffmepeg image still rgb
CLI) ffmpeg -i myVideoFrame0000000001.j2c
- > Stream #0:0: Video: jpeg2000, rgb48le, 2048x858, lossless, 25 tbr, 25 tbn, 25 tbc
If I convert to j2c with OpenDCP
CLI) ffmpeg -i test.j2c
- > Stream #0:0: Video: jpeg2000 (JPEG 2000 digital cinema 2K), xyz12le, 2048x858, 25 tbr, 25 tbn, 25 tbc
I think the image contains color information.
Can I change this embedded color infomation also?
and, If I have already converted j2c file with sRGB color space or other color space can I change only color space in same extension?
Ofcause, I can convert to j2c with OpenDCP or other software. but, It is so slow....
Do any one have some idea?
==============================================================================================================================
My machine info
CPU : AMD Ryzen 7 2700X
RAM : 32GB
SSD : 500GB(SAMSUNG)
GPU : NVIDIA GeForce GTX 1660
OS : WIN 10(x64)
ImageMagick version : 7.0.8-48-portable-Q16-x64