[FFmpeg-user] how to specify pixel format of input image pixels
Kieran O Leary
kieran.o.leary at gmail.com
Fri Sep 14 21:13:54 EEST 2018
Hi
On Fri, 14 Sep 2018, 16:33 Mayur Patel, <m.patel at toonboxent.com> wrote:
> We have encoded YUV pixels into TIF images. TIF is one of the few image
> formats that FFMPEG show support for yuv444p pixels (as identified by
> ffmpeg -h encoder=tiff)
>
> I am having trouble getting ffmpeg to read the pixels as yuv444p (as
> opposed to the default rgb24):
>
>
> Here is a typical command line:
>
> ffmpeg -r 24 -f image2 -c:v tiff -pix_fmt yuv444p -start_number 0101 -y
> -i "frames.%04d.tif" -r 24 -vframes 130 -threads 6 -c:v dnxhd -timecode
> 00:00:04:05 -vf format=yuv422p,scale=out_range=tv -b:v 36M
> /var/tmp/a_dnxhd.mov
>
Can you send the full, uncut terminal output? Are you sure that your input
TIFF files are actually YUV and not RGB? Also perhaps share one of the tiff
files? I tried with an oldish version of ffmpeg which had no issue
identifying yuv444p TIFF:
$ ffmpeg -i 1fr.tif
ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg
developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libflite --enable-libfontconfig
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm
--enable-libmp3lame --enable-libmysofa --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libpulse
--enable-librubberband --enable-librsvg --enable-libshine
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh
--enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2
--enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx
--enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394
--enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r
--enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, tiff_pipe, from '1fr.tif':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: tiff, yuv444p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr,
25 tbn, 25 tbc
Best,
Kieran.
More information about the ffmpeg-user
mailing list