openDsh / dash

Join us on Slack! https://join.slack.com/t/opendsh/shared_invite/zt-la398uly-a6eMH5ttEQhbtE6asVKx4Q
GNU General Public License v3.0
238 stars 69 forks source link

White screen camera view #135

Closed Gioee closed 1 year ago

Gioee commented 1 year ago

I get a white screen when I try to load unicam dev0 device, it works perfectly on vlc when I open it. Does it work with gstreamer, is there any way to setup advanced settings for the camera view?

Gioee commented 1 year ago

[2023-01-20 18:52:38.094141] [0x0000007f7a60a040] [info] [Dash] [Bluetooth] Init [2023-01-20 18:52:39.431316] [0x0000007f7a60a040] [info] [OpenAuto] [GSTVideoOutput] Selecting the v4l2h264dec h264 decoder [2023-01-20 18:52:39.500156] [0x0000007f7a60a040] [info] [OpenAuto] [AndroidBluetoothServer] listening. [2023-01-20 18:52:39.507657] [0x0000007f7a60a040] [info] [OpenAuto] [btservice] Listening for connections, address: B8:27:EB:A0:10:56, port: 22 [2023-01-20 18:52:39.509678] [0x0000007f7a60a040] [info] [OpenAuto] [btservice] Service registered, port: 22 [2023-01-20 18:52:39.509800] [0x0000007f7a60a040] [info] [OpenAuto] [btservice] Attempting to connect to last bluetooth device, 64:A2:F9:F2:B3:82 with bluetoothctl [2023-01-20 18:52:39.539673] [0x0000007f7a60a040] [info] [OpenAuto] SERVICE FACTORY INITED [2023-01-20 18:52:39.540758] [0x0000007f7a60a040] [info] [OpenAuto] [App] Waiting for USB device... [2023-01-20 18:52:39.540868] [0x0000007f7a60a040] [info] [OpenAuto] [App] Waiting for Wireless device... [2023-01-20 18:52:39.757197] [0x0000007f7a60a040] [info] [Dash] [SocketCANBus] 'socketcan' Available [2023-01-20 18:52:39.760595] [0x0000007f7a60a040] [info] [Dash] [SocketCANBus] Connecting CAN interface disabled [2023-01-20 18:52:39.781679] [0x0000007f7a60a040] [info] [Dash] [Gauges] Registered frame handler for id 2024 [2023-01-20 18:52:39.782100] [0x0000007f7a60a040] [info] [Dash] [Gauges] Registered frame handler for id 2024 [2023-01-20 18:52:39.782438] [0x0000007f7a60a040] [info] [Dash] [Gauges] Registered frame handler for id 2024 [2023-01-20 18:52:39.782779] [0x0000007f7a60a040] [info] [Dash] [Gauges] Registered frame handler for id 2024 [2023-01-20 18:52:40.065853] [0x0000007f7a60a040] [info] [OpenAuto] [GSTVideoOutput] Got resize request to 980x568 [2023-01-20 18:52:40.065978] [0x0000007f7a60a040] [info] [OpenAuto] [GSTVideoOutput] Android Auto is 800x480, calculated margins of: 0x8.16327 [2023-01-20 18:52:40.244186] [0x0000007f7a60a040] [info] [OpenAuto] [GSTVideoOutput] Got resize request to 972x558 [2023-01-20 18:52:40.244322] [0x0000007f7a60a040] [info] [OpenAuto] [GSTVideoOutput] Android Auto is 800x480, calculated margins of: 0x10.3704 [2023-01-20 18:52:40.350055] [0x0000007f7a60a040] [info] [Dash] [Bluetooth] Init complete! [2023-01-20 18:52:40.350175] [0x0000007f7a60a040] [info] [Dash] [Bluetooth] Has Adapter: true, Has Media Device: false [2023-01-20 18:52:40.578991] [0x0000007f5586f040] [info] [OpenAuto] [App] Devices enumeration result: false [2023-01-20 18:52:45.697805] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Show event. camera status: QCamera::LoadingStatus camera: QCamera(0x55a36b65d0) resolutions: (QSize(1280, 720)) No suitable resolutions found to fit in QSize(972, 558) [2023-01-20 18:52:48.314907] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Creating GStreamer pipeline with /dev/video0 [2023-01-20 18:52:48.321953] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Created GStreamer Pipeline of v4l2src device=/dev/video0 ! capsfilter caps="video/x-raw,width=-1,height=-1;image/jpeg,width=-1,height=-1" ! decodebin ! videoconvert ! rsvgoverlay location=/tmp/dash_camera_overlay.svg width-relative=1,000000 height-relative=1,000000 x-relative=0,000000 y-relative=0,000000 ! videoconvert ! capsfilter caps=video/x-raw name=mycapsfilter [2023-01-20 18:52:48.391378] [0x0000007f7a60a040] [info] [Dash] [CameraPage] videoContainer resized [2023-01-20 18:52:48.467606] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Resizing to video container [2023-01-20 18:52:48.467766] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Size: 972x526 [2023-01-20 18:52:48.525155] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Error Internal data stream error. [2023-01-20 18:52:48.525411] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Error Il flusso non contiene abbastanza dati. Unable to query the parameter info: QCameraImageProcessingControl::WhiteBalancePreset : "Argomento non valido" Unable to query the parameter info: QCameraImageProcessingControl::ColorTemperature : "Argomento non valido" Unable to query the parameter info: QCameraImageProcessingControl::ContrastAdjustment : "Argomento non valido" Unable to query the parameter info: QCameraImageProcessingControl::SaturationAdjustment : "Argomento non valido" Unable to query the parameter info: QCameraImageProcessingControl::BrightnessAdjustment : "Argomento non valido" Unable to query the parameter info: QCameraImageProcessingControl::SharpeningAdjustment : "Argomento non valido" [2023-01-20 18:53:13.748973] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Disconnecting camera and destroying gstreamer pipeline camera status: QCamera::LoadingStatus camera: QCamera(0x55a3fde9e0) resolutions: (QSize(1280, 720)) No suitable resolutions found to fit in QSize(972, 558) [2023-01-20 18:53:49.014273] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Creating GStreamer pipeline with /dev/video0 [2023-01-20 18:53:49.020264] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Created GStreamer Pipeline of v4l2src device=/dev/video0 ! capsfilter caps="video/x-raw,width=-1,height=-1;image/jpeg,width=-1,height=-1" ! decodebin ! videoconvert ! capsfilter caps=video/x-raw name=mycapsfilter [2023-01-20 18:53:49.055520] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Resizing to video container [2023-01-20 18:53:49.064715] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Size: 972x526 [2023-01-20 18:53:49.086219] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Error Internal data stream error. [2023-01-20 18:53:49.086489] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Error Il flusso non contiene abbastanza dati. Unable to query the parameter info: QCameraImageProcessingControl::WhiteBalancePreset : "Argomento non valido" Unable to query the parameter info: QCameraImageProcessingControl::ColorTemperature : "Argomento non valido" Unable to query the parameter info: QCameraImageProcessingControl::ContrastAdjustment : "Argomento non valido" Unable to query the parameter info: QCameraImageProcessingControl::SaturationAdjustment : "Argomento non valido" Unable to query the parameter info: QCameraImageProcessingControl::BrightnessAdjustment : "Argomento non valido" Unable to query the parameter info: QCameraImageProcessingControl::SharpeningAdjustment : "Argomento non valido" [2023-01-20 18:54:02.006213] [0x0000007f7a60a040] [info] [Dash] [CameraPage] Disconnecting camera and destroying gstreamer pipeline free(): invalid pointer Annullato

Gioee commented 1 year ago

Here's the log, If you read it says "no suitable resolution found to fit in size (972, 558). Do I have to edit the edid to fix it or can I edit the pipeline and force to read it from 1280x720?

rsjudka commented 1 year ago

ill need to double check on this, it seems to be related to qt and not gstreamer tho so thats a bit promising.

rsjudka commented 1 year ago

this will be resolved by #137 right?

Gioee commented 1 year ago

this will be resolved by #137 right?

Yess. We can close this.