2

I have a image sensor that streams 640x480 in RAW8 format. A USB controller is receiving this data, packing two pixels of 8-bits each and sending to USB as a 16-bits per pixel YUV422 format (this is because currently UVC does not support RAW8 format).

I was checking if I can use ffmpeg to receive the UVC stream and decode it as RAW8 video.

Has anyone tried this before?

2
  • How do you access the sensor? With UVC? Commented Aug 17, 2022 at 14:12
  • Yes. its a UVC class device. Commented Sep 14, 2022 at 14:38

1 Answer 1

0

With

ffmpeg -f video4linux2 -list_formats all -i /dev/video0 

you can query all available formats and resolutions

With

ffplay -f video4linux2 -input_format raw -i /dev/video0 

you can access the raw video stream of the UVC device

2
  • Thanks for your reply! I am using Windows and was able to stream RAW8 video by reporting the pixel_format as gray. ( I used ffmpeg -f dshow -pix_fmt gray -video_size 1280x720 -i video="UVC" -f nut - | fplay -flags low_delay - ) However, I do not see any way to stream RAW10. I am not sure which pixel_format to use in this case. Do you know? Thanks! Commented Oct 20, 2022 at 10:36
  • What output do -pix_fmts and -list_formats show? Commented Oct 21, 2022 at 10:59

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.