-
-
Notifications
You must be signed in to change notification settings - Fork 173
GStreamer can't open stream RTP #307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
How do you launch the rtp server? Do you use gstreamer there too? Can you give me the command for that so I can try to reproduce this on my own pi? Can you run the rtp client with debug messages: Seems like the rtpsrc plugin (the one which does the URI handling) is in the |
RTSP Server I started from this example: But not work in video-player. Client have to read on rtsp://:PORT If I run GST_DEBUG=rtpsrc:5 gst-play-1.0 rtp://:5000
Ok, If I run that command
I got in terminal something like that and nothing happend
|
If You could run on Your RaspPi Server (NVIDIA Jetson) Client (RaspberryPi 3B+) and that format server and client is correct for me. |
I think I'll just add a way to launch the video player with a custom gstreamer pipeline. I mean, it definitely should be possible to launch the player with just some special |
It's great news. Last time, I try add/modify player but not successful. I think player should open gstreamer player like
It will be awsome. |
@Progressia working on it right now |
@Progressia Sorry for the delay, can you try the FlutterpiVideoPlayerController.withGstreamerPipeline('libcamerasrc ! queue ! appsink name="sink") there (the last element must always be an appsink with name |
Hi @ardera . It's good news. I will check in a day. |
Hi @ardera.
Maybe I did something wrong. I set up the pipeline like this
If I run this command in the console, I can see the frames from the remote camera.
In this command I have The error appears to relate to the absence of the |
That's actually not an error, more like a warning :) the video player will look for an element called
Try this:
|
Thanks for answer I try but got this same Warning I went back to the beginning and use Your full example (https://pub.dev/packages/flutterpi_gstreamer_video_player/example) and I only modified part in CameraViewPage
Now I got Warning and after that I got error:
Next I cut part of example with ExampleVideoPage and run just CameraView and I got just Warning
I received a warning every time I clicked the refresh icon. |
fixed by #323 |
Hello,
I have a problem opening an RTP stream in flutter-pi. I am using a RaspberryPI 3B+ (Buster).
My device is streaming a live camera to
rtp://<host-ip>:PORT
I correctly installed GStreamer on the Raspberry Pi and used the command:
$ gst-launch-1.0 udp://<raspberryPi-IP>:PORT ! application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, payload=96 ! rtph264depay ! avdec_h264 ! autovideosink
GStreamer respond
and that's work - camera view is showed with minimal latency but that form pipeline for URI in video-player in flutter-pi isn't correct.
So I try using as URI:
udp://<raspberryPi-IP>:PORT
or
rtp://<raspberryPi-IP>:PORT
Widget code
but I got error:
[gstreamer video_player] Could not fetch duration. (gst_element_query_duration)
and white screen and displays nothing else. Other elements of the application (like buttons) work. Only the video-player does not show a frame from the camera.
The text was updated successfully, but these errors were encountered: