ffmpeg - 如何在 JPEG 中编码 HEVC 平铺?

标签 ffmpeg jpeg hevc mp4box

我正在尝试将 HEIF 文件转换为 JPEG 文件,我使用 MP4Box 提取 HEIC 图像图 block ,但是当使用 FFMPEG 将这些图 block 转换为 JPEG 时,我得到了:

SAKATA-INX:desktop stellar$ MP4Box -dump-item 1:path=item1.hevc still_rear.HEIC

ICC colour profile not supported ICC colour profile not supported

SAKATA-INX:desktop stellar$ ffmpeg -i item1.hevc -frames:v 1 -vsync vfr -q:v 1 -an test.jpg

ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers built with Apple LLVM version 9.1.0 (clang-902.0.39.1)

configuration: --prefix=/usr/local/Cellar/ffmpeg/4.0 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma

libavutil 56. 14.100 / 56. 14.100

libavcodec 58. 18.100 / 58. 18.100

libavformat 58. 12.100 / 58. 12.100

libavdevice 58. 3.100 / 58. 3.100

libavfilter 7. 16.100 / 7. 16.100

libavresample 4. 0. 0 / 4. 0. 0

libswscale 5. 1.100 / 5. 1.100

libswresample 3. 1.100 / 3. 1.100

libpostproc 55. 1.100 / 55. 1.100

[hevc @ 0x7fc56e808e00] Format hevc detected only with low score of 1, misdetection possible!

[hevc @ 0x7fc56f800000] No start code is found.

[hevc @ 0x7fc56f800000] missing picture in access unit

[AVBSFContext @ 0x7fc56e505e00] No start code is found.

item1.hevc: could not find codec parameters

Input #0, hevc, from 'item1.hevc':

Duration: N/A, bitrate: N/A

Stream #0:0: Video: hevc, none, 1200k tbn

Output #0, image2, to 'test.jpg':

Output file #0 does not contain any stream



谁能告诉我我该怎么做?

最佳答案

提取所有 HEVC 文件后,创建一个文本文件

file file1.hevc
file file2.hevc
file file3.hevc
...
file file48.hevc

然后运行
ffmpeg -f concat -i list.txt -vf tile=8x6 -vframes 1 -q:v 1 grid.jpg

关于ffmpeg - 如何在 JPEG 中编码 HEVC 平铺?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50980295/

相关文章:

video - FFmpeg 错误(没有这样的文件或目录错误)

video - x264/libx264 : Can only one I/P frame to be used as reference for B-frames?

ffmpeg - 使用 ffmpeg 选项 -video_track_timescale 25 可生成 1k tbn 的视频。为什么是这样?

c - 匹配 JPEG 签名

android - 如何在 Android 中从 JPEG 创建动画 GIF(开发)

c++ - 使 Qt Player 编解码器独立

Android Volley 库 : How to send an image to server?

Android 中 HEVC(H.265) 的 Android Media Recorder 视频编码

c++ - 读取文件并将其作为整数数组输入