[FFmpeg-user] rgb8

Michael Koch astroelectronic at t-online.de
Wed May 31 10:44:21 EEST 2023


Am 31.05.2023 um 09:36 schrieb Reindl Harald:
>
>
> Am 31.05.23 um 09:28 schrieb Michael Koch:
>>>> Couldn't this be simplified with a new filter "set_pixel_format" 
>>>> which tells FFmpeg to interpret the data as a different pixel 
>>>> format, without making any modifications to the data?
>>>> In my case the data is already correct. It's only labeled incorrectly.
>>>
>>> "-pixel_format rgb8" as input parm tells ffmpeg exactly that
>>
>> yes, but I can't use "-pixel_format gray" because the DirectShow 
>> driver accepts only those pixel formats that are listed with "ffmpeg 
>> -list_options 1 -f dshow -i video="ASI178MM Camera (ZWO Design)"
>> There is only one pixel format listed and that's "rgb8"
> for a FFMPEG INPUT PARAM it's irrelevant what the driver supports - it 
> don't tell the source driver anything but tells ffmpeg to ignore it's 
> auto-detection
>
> it's the same with "-f" as input param when the source has some weird 
> wrong header
>
> it *really* would be helpful when you post uncutted command line and 
> the whole output instead all of this guessing back and forth

C:\Users\astro\Desktop\FFmpeg_Test>ffmpeg -f dshow -video_size 1280x800 
-framerate 5 -pixel_format gray -i video="ASI178MM Camera (ZWO Design)" 
-f rawvideo -frames 1 -y test.raw
ffmpeg version 2023-05-11-git-ceb050427c-essentials_build-www.gyan.dev 
Copyright (c) 2000-2023 the FFmpeg developers
   built with gcc 12.2.0 (Rev10, 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-zlib --enable-libsrt 
--enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid 
--enable-libaom --enable-libopenjpeg --enable-libvpx 
--enable-mediafoundation --enable-libass --enable-libfreetype 
--enable-libfribidi --enable-libvidstab --enable-libvmaf 
--enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid 
--enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va 
--enable-dxva2 --enable-libvpl --enable-libgme --enable-libopenmpt 
--enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora 
--enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb 
--enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
   libavutil      58.  7.100 / 58.  7.100
   libavcodec     60. 11.100 / 60. 11.100
   libavformat    60.  5.100 / 60.  5.100
   libavdevice    60.  2.100 / 60.  2.100
   libavfilter     9.  8.100 /  9.  8.100
   libswscale      7.  2.100 /  7.  2.100
   libswresample   4. 11.100 /  4. 11.100
   libpostproc    57.  2.100 / 57.  2.100

Final buffer size is 1152.
[dshow @ 00000265c3b01840] Could not set video options
video=ASI178MM Camera (ZWO Design): I/O error



More information about the ffmpeg-user mailing list