[FFmpeg-user] rgb8

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


Am 31.05.2023 um 09:57 schrieb Gyan Doshi:
>
>
> On 2023-05-31 01:14 pm, Michael Koch wrote:
>> ffmpeg -f dshow -video_size 1280x800 -framerate 5 -pixel_format gray 
>> -i video="ASI178MM Camera (ZWO Design)" -f rawvideo -frames 1 -y 
>> test.raw 
>
> Pipe it.
>
> ffmpeg -f dshow -video_size 1280x800 -framerate 5 -pixel_format rgb8 
> -i video="ASI178MM Camera (ZWO Design)"  -map 0 -c copy -f rawvideo 
> pipe:1 | ffmpeg -f rawvideo -video_size 1280x800 -framerate 5 
> -pixel_format gray -i pipe:0 {output options} <out>
>

Thank you! It does indeed work. I only had to add a format conversion at 
the end, because sdl2 doesn't support gray.

ffmpeg -f dshow -video_size 1280x800 -framerate 10 -pixel_format rgb8 -i 
video="ASI178MM Camera (ZWO Design)" -map 0 -c copy -f rawvideo pipe:1 | 
ffmpeg -f rawvideo -video_size 1280x800 -framerate 10 -pixel_format gray 
-i pipe:0 -vf format=rgb24 -f sdl2 -

Michael



More information about the ffmpeg-user mailing list