Hexxeh / rpi-firmware

Firmware files for the Raspberry Pi
Other
775 stars 208 forks source link

GStreamer decoding issue #273

Closed robert5974 closed 2 years ago

robert5974 commented 2 years ago

The following firmware update created an issue with Gstreamer usage:

https://github.com/Hexxeh/rpi-firmware/commit/b4e395b3e87dba4964f314e12871630cabb35f70

The issue comes utilizing Gstreamer to stream from Android phone to open source Android Auto called OpenAuto. The project utilizing OpenAuto in question is OpenDash. Within specifically the OpenAuto repo of the project as a whole, gstreamer is used to take a qml stream and display it in a Qt widget within the dashboard. After this update, only a white screen is shown. Rolling back to firmware commit 15471b6e99b6db2f3206f0aed67d0aebbfc9f9cf corrects the issue.

I have tried using updates after the specified issue and received the same results. I have reproduced this on both Buster and Bullseye OS releases. I have reproduced this on versions of GStreamer from versions 1.14, 1.16, 1.18.4 on Buster and the default package version of 1.18 in Bullseye.

The error that is generated is:

videodecoder gstvideodecoder.c:1161:gst_video_decoder_sink_event_default:<v4l2h264dec0> error: No valid frames decoded before end of stream
videodecoder gstvideodecoder.c:1161:gst_video_decoder_sink_event_default:<v4l2h264dec0> error: no valid frames found
 GST_ERROR_SYSTEM gstelement.c:2145:gst_element_message_full_with_details:<v4l2h264dec0> posting message: No valid frames decoded before end of stream
 GST_ERROR_SYSTEM gstelement.c:2172:gst_element_message_full_with_details:<v4l2h264dec0> posted error message: No valid frames decoded before end of stream

The stream is supposed to be displayed inside of a Qt widget but also cropped to the resolution chosen (480i, 720p, or 1080p) and at either 30 or 60 fps. With the changes made after commit 15471b..., is there something that requires changes from our side? I can provide more info if that isn't enough to go on.

robert5974 commented 2 years ago

Closing and moving issue created to active repo.