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?
    – sebix
    Aug 17, 2022 at 14:12
  • Yes. its a UVC class device.
    – light
    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!
    – light
    Oct 20, 2022 at 10:36
  • What output do -pix_fmts and -list_formats show?
    – sebix
    Oct 21, 2022 at 10:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.