Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3763

Troubleshooting • Help with Gstreamer

$
0
0
Hello World!

Total new guy - no prior programming experience, first Pi, and first time working with command line or anything similar.

I am trying to set up a system that will take composite video, resize it, and send it to a display to stream in real time. Right now, that looks like:

AV signal (fixed resolution 640x512) ->
AV/HDMI breakout board converter ->
HDMI to MIPI breakout board converter ->
RPI 4B MIPI camera input ->
RPI handling the conversion ->
RPI HDMI out to Waveshare screen (9.3", 1600x600)


Right now, I am having an issue with Gstreamer not recognizing the display, or having a functional sink. This is my command (path removed):

Code:

gst-launch-1.0 filesrc location=<path>.mp4 ! decodebin ! autovideosink
Here is the error:

Code:

Setting pipeline to PAUSED ...Pipeline is PREROLLING ...Redistribute latency...Redistribute latency...ERROR: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstKMSSink:autovideosink0-actual-sink-kms: GStreamer encountered a general resource error.Additional debug info:../sys/kms/gstkmssink.c(2032): gst_kms_sink_show_frame (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstKMSSink:autovideosink0-actual-sink-kms:drmModeSetPlane failed: Permission denied (13)ERROR: pipeline doesn't want to preroll.Setting pipeline to NULL ...ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0: Internal data stream error.Additional debug info:../gst/isomp4/qtdemux.c(6948): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0:streaming stopped, reason error (-5)ERROR: pipeline doesn't want to preroll.Freeing pipeline ...
When I run the same code, but use fakesink, it works. For example, this is my command (path removed):

Code:

gst-launch-1.0 filesrc location=<path>.mp4 ! decodebin ! fakesink
And results in, what looks like, a successful run:

Code:

Setting pipeline to PAUSED ...Pipeline is PREROLLING ...Redistribute latency...Redistribute latency...Pipeline is PREROLLED ...Setting pipeline to PLAYING ...Redistribute latency...New clock: GstSystemClockGot EOS from element "pipeline0".Execution ended after 0:00:48.660992156Setting pipeline to NULL ...Freeing pipeline ...
Now, this test is obviously for a stored video, and the code will need to be reconfigured for the MIPI input - still waiting on Santa (the Amazon delivery guy) to bring me a breakout board, but wanted to get this sorted. To fix this, I have tried the following;

Install dependencies;

Code:

sudo apt update && sudo apt install -y \    gstreamer1.0-tools \    gstreamer1.0-plugins-base \    gstreamer1.0-plugins-good \    gstreamer1.0-plugins-bad \    gstreamer1.0-plugins-ugly \    gstreamer1.0-libav \    gstreamer1.0-doc \    libgstreamer1.0-dev

Code:

Hit:1 http://deb.debian.org/debian bookworm InReleaseHit:2 http://deb.debian.org/debian-security bookworm-security InReleaseHit:3 http://deb.debian.org/debian bookworm-updates InReleaseHit:4 http://archive.raspberrypi.com/debian bookworm InReleaseReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneAll packages are up to date.Reading package lists... DoneBuilding dependency tree... DoneReading state information... DonePackage gstreamer1.0-doc is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourceE: Package 'gstreamer1.0-doc' has no installation candidate
Check user permissions;

Code:

groups

Code:

adm dialout cdrom sudo audio video plugdev games users input render netdev lpadmin gpio i2c spi
I have also independently verified the filepath, and played it with an ASCII sink. Any help is appreciated!

System Settings;
Raspberry Pi 4 Model B Rev 1.5 (c03115)
Debian GNU/Linux 12 (bookworm)
GStreamer 1.22.0

Statistics: Posted by TechForge — Thu Jan 16, 2025 8:20 pm



Viewing all articles
Browse latest Browse all 3763

Trending Articles