简体   繁体   English

使用H.265(HEVC)编解码器编码TIFF图像

[英]Encode TIFF image using H.265 (HEVC) codec

Is it possible to encode image within TIFF file using HEVC codec? 是否可以使用HEVC编解码器在TIFF文件中编码图像?

Command: 命令:

./TAppEncoderStatic -i cubeImag.tif -wdt 1296 -hgt 1296 -cf 400 -fr 1 -f 1 -c ../cfg/encoder_intra_main_rext.cfg ./TAppEncoderStatic -i cubeImag.tif -wdt 1296 -hgt 1296 -cf 400 -fr 1 -f 1 -c ../cfg/encoder_intra_main_rext.cfg

But I am unable to do it. 但是我做不到。 Any ideas? 有任何想法吗?

I believe TAppEncoderStatic is the JVM HEVC Reference Encoder. 我相信TAppEncoderStatic是JVM HEVC参考编码器。 From what I remember, reference encoders expect the input to be in YUV format. 据我所知,参考编码器期望输入为YUV格式。 In order to encode TIFF using HEVC codec, I recommend to do the following 为了使用HEVC编解码器编码TIFF,我建议执行以下操作

  1. Decode TIFF Image to YUV. 将TIFF图像解码为YUV。 You can use ffmpeg with the following command 您可以通过以下命令使用ffmpeg

    ffmpeg -i input.tiff -f rawvideo -pix_fmt yuv420p output.yuv

  2. Encode YUV using JVM Encoder. 使用JVM编码器对YUV进行编码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM