[FFmpeg-user] ScaleUp the Raw file

Michael Koch astroelectronic at t-online.de
Wed Oct 19 22:42:15 EEST 2022


Am 19.10.2022 um 21:26 schrieb Naveen.B:
>>> I got an error by trying this command. Could you kindly let me know if
>> this
>>> is feasible?
>> Always always always include the complete output of ffmpeg when asking for
>> help. For one, we don't know what error you got.
>>
>> C:\Naveen\projects\DMS\software\ffmpeg_full\ffmpeg\bin>ffmpeg -i
>> CapturedImage-001.raw -vf scale=1920:1080 CapturedImageScale-001.raw
>> ffmpeg version 2022-06-20-git-56419428a8-full_build-www.gyan.dev
>> Copyright (c) 2000-2022 the FFmpeg developers
>>    built with gcc 11.3.0 (Rev1, Built by MSYS2 project)
>>    configuration: --enable-gpl --enable-version3 --enable-static
>> --disable-w32threads --disable-autodetect --enable-fontconfig
>> --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib
>> --enable-lzma --enable-libsnappy --enable-zlib --enable-librist
>> --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth
>> --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d
>> --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e
>> --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265
>> --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl
>> --enable-libopenjpeg --enable-libvpx --enable-mediafoundation
>> --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi
>> --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg
>> --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec
>> --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2
>> --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo
>> --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug
>> --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame
>> --enable-libshine --enable-libtheora --enable-libtwolame
>> --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm
>> --enable-libopencore-amrnb --enable-libopus --enable-libspeex
>> --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite
>> --enable-libmysofa --enable-librubberband --enable-libsoxr
>> --enable-chromaprint
>>    libavutil      57. 27.100 / 57. 27.100
>>    libavcodec     59. 33.100 / 59. 33.100
>>    libavformat    59. 25.100 / 59. 25.100
>>    libavdevice    59.  6.100 / 59.  6.100
>>    libavfilter     8. 41.100 /  8. 41.100
>>    libswscale      6.  6.100 /  6.  6.100
>>    libswresample   4.  6.100 /  4.  6.100
>>    libpostproc    56.  5.100 / 56.  5.100
>> [image2 @ 0000023a84c00880] Format image2 detected only with low score of
>> 5, misdetection possible!
>> [rawvideo @ 0000023a84c14b40] Invalid pixel format.
>> [image2 @ 0000023a84c00880] Failed to open codec in
>> avformat_find_stream_info
>> [rawvideo @ 0000023a84c14b40] Invalid pixel format.
>>      Last message repeated 1 times
>> [image2 @ 0000023a84c00880] Failed to open codec in
>> avformat_find_stream_info
>> [image2 @ 0000023a84c00880] Could not find codec parameters for stream 0
>> (Video: rawvideo, none): unspecified size
>> Consider increasing the value for the 'analyzeduration' (0) and
>> 'probesize' (5000000) options
>> Input #0, image2, from 'CapturedImage-001.raw':
>>    Duration: 00:00:00.04, start: 0.000000, bitrate: 832000 kb/s
>>    Stream #0:0: Video: rawvideo, none, 25 fps, 25 tbr, 25 tbn
>> [NULL @ 0000023a84c15b80] Unable to find a suitable output format for
>> 'CapturedImageScale-001.raw'
>> CapturedImageScale-001.raw: Invalid argument
>>
>> C:\Naveen\projects\DMS\software\ffmpeg_full\ffmpeg\bin>
>>

I think you must tell FFmpeg the pixel format and the size of the input 
image.
If you would use JPG or PNG as input format, then FFmpeg would detect 
these details automatically. But for RAW format FFmpeg can't know the 
details.

Michael



More information about the ffmpeg-user mailing list