[FFmpeg-trac] #10808(ffmpeg:new): 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

FFmpeg trac at avcodec.org
Wed Jan 17 06:57:28 EET 2024


#10808: 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
-------------------------------------+----------------------------------
             Reporter:  李星辰       |                    Owner:  (none)
                 Type:  enhancement  |                   Status:  new
             Priority:  critical     |                Component:  ffmpeg
              Version:  git-master   |               Resolution:
             Keywords:  pixfmt       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+----------------------------------
Description changed by 李星辰:

Old description:

> 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
>

>
> }}}
>

> {{{
>
> % 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
>
> Multiple -r options specified for stream 0, only the last option
> '-r 1/1' will be used.
>
> [vost#0:0/rawvideo @ 0x7fb657105500] 
>
> **Unknown pixel format requested: yuv440p16le.**
>
> Error opening output file
> /Volumes/A029/MAT/7-1/CORE/7T14_00000002.YUV.
>
> Error opening output files: Invalid argument
>

>
> }}}
>

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

New description:

 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:1:1 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.

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10808#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list