Opened 3 months ago

Last modified 3 months ago

#10808 new enhancement

An urgent need of a possibility to encode yuv 4:1:1 16-BIT image AND ALSO a possibility to encode yuv 4:4:0 16-BIT image

Reported by: 李星辰 Owned by:
Priority: critical Component: ffmpeg
Version: git-master Keywords: pixfmt
Cc: 李星辰 Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by 李星辰)

Summary of the bug:

An urgent need of a possibility to encode yuv 4:1:1 16-BIT image

How to reproduce:

% ffmpeg -c:v tiff -f image2 -i input%d.tif -c:v rawvideo -pix_fmt yuv411p16le -f image2 output%d.yuv

ffmpeg version N-113169-ge1c1dc8347-tessus

built on ... 2024-01-01 13:50

ffmpeg version N-113169-ge1c1dc8347-tessus  https://evermeet.cx/ffmpeg/  Copyright (c) 2000-2024 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
  libavutil      58. 36.100 / 58. 36.100
  libavcodec     60. 36.100 / 60. 36.100
  libavformat    60. 20.100 / 60. 20.100
  libavdevice    60.  4.100 / 60.  4.100
  libavfilter     9. 16.100 /  9. 16.100
  libswscale      7.  6.100 /  7.  6.100
  libswresample   4. 13.100 /  4. 13.100
  libpostproc    57.  4.100 / 57.  4.100
Input #0, tiff_pipe, from '/Volumes/A029/MAT/7-1/CORE/7T14_00000002.TIF':

  Duration: N/A, bitrate: N/A

  Stream #0:0: Video: tiff, rgb48le, 4096x2160, 25 fps, 25 tbr, 25 tbn

[0;33mMultiple -r options specified for stream 0, only the last option '-r 1/1' will be used.

[0m[1;35m[vost#0:0/rawvideo @ 0x7fab47105500] [0m[4;31m

**Unknown pixel format requested: yuv411p16le.**

[0m[1;31mError opening output file /Volumes/A029/MAT/7-1/CORE/7T14_00000002.YUV.

[0m[4;31mError opening output files: Invalid argument



And also, an urgent need of a possibility to encode yuv 4:4:0 16-BIT image

% ffmpeg -c:v tiff -f image2 -i input%d.tif -c:v rawvideo -pix_fmt yuv440p16le -f image2 output%d.yuv

ffmpeg version N-113169-ge1c1dc8347-tessus

built on ... 2024-01-01 13:50

ffmpeg version N-113169-ge1c1dc8347-tessus  https://evermeet.cx/ffmpeg/  Copyright (c) 2000-2024 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
  libavutil      58. 36.100 / 58. 36.100
  libavcodec     60. 36.100 / 60. 36.100
  libavformat    60. 20.100 / 60. 20.100
  libavdevice    60.  4.100 / 60.  4.100
  libavfilter     9. 16.100 /  9. 16.100
  libswscale      7.  6.100 /  7.  6.100
  libswresample   4. 13.100 /  4. 13.100
  libpostproc    57.  4.100 / 57.  4.100
Input #0, tiff_pipe, from '/Volumes/A029/MAT/7-1/CORE/7T14_00000002.TIF':

  Duration: N/A, bitrate: N/A

  Stream #0:0: Video: tiff, rgb48le, 4096x2160, 25 fps, 25 tbr, 25 tbn

[0;33mMultiple -r options specified for stream 0, only the last option '-r 1/1' will be used.

[0m[1;35m[vost#0:0/rawvideo @ 0x7fb657105500] [0m[4;31m

**Unknown pixel format requested: yuv440p16le.**

[0m[1;31mError opening output file /Volumes/A029/MAT/7-1/CORE/7T14_00000002.YUV.

[0m[4;31mError opening output files: Invalid argument



Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (3)

comment:1 by 李星辰, 3 months ago

Description: modified (diff)
Summary: An urgent need of a possibility to encode yuv 4:1:1 16-BIT imageAn urgent need of a possibility to encode yuv 4:1:1 16-BIT image AND ALSO a possibility to encode yuv 4:4:0 16-BIT image

comment:2 by 李星辰, 3 months ago

Description: modified (diff)

comment:3 by 李星辰, 3 months ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.