如何在 JPEG 中编码 HEVC 瓦片?
How to encode HEVC tile in JPEG?
我正在尝试将 HEIF 文件转换为 JPEG 文件,我使用 MP4Box 提取 HEIC 图像图块,但是当使用 FFMPEG 将这些图块转换为 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
我正在尝试将 HEIF 文件转换为 JPEG 文件,我使用 MP4Box 提取 HEIC 图像图块,但是当使用 FFMPEG 将这些图块转换为 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