Comments (9)
Never a chore when it's you @cheapjack ! That error you post indicates to me that it isn't able to connect to wherever it's trying to send the RTMP stream (10.0.31.212) could that be the problem?
from makespacelive.
btw. That looks great! Can't wait to see it in person
from makespacelive.
Well Ive configured the $AV_STREAM_URL value to my restream RTMP target url , but for some reason it keeps going to the default stream which has an actual IP address. Ive confirmed by echo $AV_STREAM_URL
Been trying to swap the the 'autodetect' address and the UK/EU address option also just like you show in the README.md still nothing ;(
All else I can think of it's 'cos im on a uni eduroam so maybe rtmp is blocked? I'm setup on that like this and internet works fine. Will have to ask IT bods maybe but id rather not have to. Ill try setup on a different network and test like my mobile hotspot
cheers!
from makespacelive.
Humm. How are you running this? Using Balena or locally on your own install?
Can you try changing this line to default to what you want as a short term fix?
https://github.com/DynamicDevices/makespacelive/blob/master/stream.py#L19
[Edit: If the IP displayed is wrong I doubt it's related to EduRoam]
from makespacelive.
Hmm running on my own install on the pi... ill try that when im back in next week. Forgot to leave it on last night so I could ssh in!! Do you mean change to
STREAM_URL= os.getenv('AV_STREAM_URL','rtmp://live.restream.io/live')
Yeah seems no reason for it to be eduroam when i regularly connect to streams and restream itself loads up and streams fine on the pi on it....Need to make it work on eduroam though as want it to be a portable streamer that can work anywhere in the biology labs so it becomes a kit for the department not just my research (which is in a convoluted way, actually also the research)....
from makespacelive.
That's interesting - that's not the line I gave you in the repo master branch. Are you using a different branch?
from makespacelive.
The code snippet you gave has this target
rtmp://10.0.31.212/live/
That's what the line I gave you defaults to if for some reason the environment variable isn't set.
So it implies that somehow the environment variable isn't getting through to the Python script.
As a short cut just change the default to what you want it to be...
from makespacelive.
Ah got it, yes that's what I thought that would be the default if no env variable comes through i am on master branch, the line i quoted was what I thought you meant I should try change it to; Ill try changing the default to what im after.
Maybe Im not exporting paths properly? Ive got them in a ~/.bashrc
but also did it by export manually (am i doing that right?)
Maybe I should do a fresh image otherwise, just got a few configs didnt want to lose maybe I should have gone the resin route instead of the Standalone install...
Its all part of making this me/fool-proof :)
from makespacelive.
Hey @ajlennon still same error. So I've changed the default in the stream.py
code from this
STREAM_URL= os.getenv('AV_STREAM_URL','rtmp://10.0.31.212/live')
to this STREAM_URL= os.getenv('AV_STREAM_URL','rtmp://live.restream.io/live')
to see if that helps.
Also pulled from git so all up to date. Maybe we could think about it over lunch on thursday 30th Im free 1-2 if any good then any time after 5
I still feel it might be to do with eduroam but even switching to my mobile hotspot fails. Maybe Ill try a new restream identity or enquire with the IT people...
could it be to do with flash version. maybe need to apt-get update & upgrade
Still same error
Defaulting to PiCam
No audio capture available
Pipeline stream:
rpicamsrc keyframe-interval=2 hflip=true vflip=true ! omxh264enc ! video/x-h264,width=1280,height=720,framerate=30/1 ! h264parse ! flvmux streamable=true name=mux ! queue ! rtmpsink location='rtmp://eu-london.restream.io/live/ live=1 flashver=FME/3.0%20(compatible;%20FMSc%201.0)'
GST ERROR (gerror=GLib.Error('Could not open resource for writing.', 'gst-resource-error-quark', 6), debug='gstrtmpsink.c(245): gst_rtmp_sink_render (): /GstPipeline:pipeline0/GstRTMPSink:rtmpsink0:\nCould not connect to RTMP stream "\'rtmp://eu-london.restream.io/live/ live=1 flashver=FME/3.0%20(compatible;%20FMSc%201.0)\'" for writing')
from makespacelive.
Related Issues (17)
- Key frame interval is incorrect HOT 1
- Store files locally as well as / instead of live streaming
- Look at ways to transcode live video stream to low bitrates / low framerates
- Audio in pipeline causing buffering issues with Restream/Twitch/Youtube
- Streaming to YouTube/Periscope seems to fail without audio channel present
- Document licensing of existing code components and new code
- Support Ansible setup and onboarding
- Rpi Zero W 'RpiCamSrc' is flakey
- Current Balena Pi0 image doesn't support gstreamer head
- Add support for using audio in jack / USB audio in
- ALSA audio device IDs change randomly on bootup
- if resin-wifi-connect doesn't connect to configured AP it sets up its own AP
- Latency is too high at 15s or so
- Make the setup fool proof for *actual fools* like me HOT 2
- Look into using the RPi compute module which has support for 2xPiCams
- Add start/stop control button (BLE) Could be extended to other uses? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from makespacelive.