-
Notifications
You must be signed in to change notification settings - Fork 4
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
Serving pre-recorded mp4 on Raspberry Pi #3
Comments
Hello, I am quite bussy today, so tomorrow I will check a little bit more, but after a quick review of your code, the first thing I see is that you are using and udpsink on the pipeline. Also, you shouldnt need to decode the file, i think chrome accepts mp4. Try: If mp4 is not accepted: The idea behind this "project" is: Gstreamer (just the frames) -> tcp server (8081) (frames + headers)-> http server (8080) As I said, let me a day and I will come with more info. |
Hello, thanks for your advice and replying me in your tight schedule. I tried both args and got different error messages. Thanks again. For the first one (shorter one):
For the second one (longer one):
|
Hello, hope you’re well. I figured the Now, I set up a Raspberry Pi camera and ran these CLI pipelines: On Mac (client) These pipelines work well and start OpenGL renderer to display the camera stream. I want to display the camera streaming on a browser. So I adapted your Could you please take a look and advise anything I’m missing from the pipeline? Thanks again for your help. On RPi, index.js
On Mac, index.html
To start streaming, I did these steps:
Could you please take a look? Appreciate your help. |
Hi there,
Thanks for posting the solutions. I ran a server with tcpBridgeAutoPipeline.js on a Raspberry Pi. Since I didn't have a camera, I changed the CLI pipeline to
gst-launch-1.0 -v filesrc location = bigbuck.mp4 ! decodebin ! x264enc ! rtph264pay ! udpsink host=localhost port=8081
and changed'Content-Type': 'video/mp4'
Then I got an error -
Error: listen EADDRINUSE: address already in use :::8081
I tried changing to other port and checked whether port was in usesudo lsof -i -P -n
to make sure was not in use. But still getting the same error message. I think the issue is on the server itself not on the script you provided, but I can't figure out and am new to gstreamer cli pipeline and not sure how tcp server works with http server at the same time.Could you please take a look and give me some insights? Appreciate your help.
index.js
Error message:
package.json
The text was updated successfully, but these errors were encountered: