v4l 设备的正确编码是什么,Chromium 可以接受什么?

v4l 设备的正确编码是什么,Chromium 可以接受什么?

我使用 Raspberry Pi 相机模块 V2 的 uv4l 驱动程序,这使我可以选择编码、帧速率等...

测试了以下编码:yuv420、nv21、yvu420、rgb565、rgb565x、bgr24、rgb24、rgba、bgra、mjpeg、jpeg、h264,帧率为 30。在所有情况下,当 chromium 尝试时,都会将以下内容打印到标准错误中通过 WebRTC 访问设备:

[1113:1152:0701/090110:ERROR:video_capture_device_factory_linux.cc(108)] Not implemented reached in void media::GetSupportedFormatsForV4L2BufferType(int, media::VideoCaptureFormats*)
[1113:1152:0701/090110:ERROR:video_capture_device_factory_linux.cc(72)] Not implemented reached in std::list<float> media::GetFrameRateList(int, uint32_t, uint32_t, uint32_t)
[1113:1152:0701/090110:ERROR:video_capture_device_factory_linux.cc(108)] Not implemented reached in void media::GetSupportedFormatsForV4L2BufferType(int, media::VideoCaptureFormats*)
[1113:1152:0701/090110:ERROR:video_capture_device_factory_linux.cc(72)] Not implemented reached in std::list<float> media::GetFrameRateList(int, uint32_t, uint32_t, uint32_t)
[1113:1152:0701/090110:ERROR:video_capture_device_factory_linux.cc(108)] Not implemented reached in void media::GetSupportedFormatsForV4L2BufferType(int, media::VideoCaptureFormats*)
[1113:1152:0701/090110:ERROR:video_capture_device_factory_linux.cc(72)] Not implemented reached in std::list<float> media::GetFrameRateList(int, uint32_t, uint32_t, uint32_t)
[1113:1152:0701/090110:ERROR:video_capture_device_factory_linux.cc(108)] Not implemented reached in void media::GetSupportedFormatsForV4L2BufferType(int, media::VideoCaptureFormats*)
[1113:1152:0701/090110:ERROR:video_capture_device_factory_linux.cc(72)] Not implemented reached in std::list<float> media::GetFrameRateList(int, uint32_t, uint32_t, uint32_t)

所有可能的配置都可以在这里找到: http://www.linux-projects.org/documentation/uv4l-raspicam/

问题:Chromium 可以处理的正确视频流(客户端)是什么?

相关内容