GithubHelp home page GithubHelp logo

Comments (9)

ajlennon avatar ajlennon commented on June 12, 2024

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.

ajlennon avatar ajlennon commented on June 12, 2024

btw. That looks great! Can't wait to see it in person

from makespacelive.

cheapjack avatar cheapjack commented on June 12, 2024

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.

ajlennon avatar ajlennon commented on June 12, 2024

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.

cheapjack avatar cheapjack commented on June 12, 2024

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.

ajlennon avatar ajlennon commented on June 12, 2024

That's interesting - that's not the line I gave you in the repo master branch. Are you using a different branch?

from makespacelive.

ajlennon avatar ajlennon commented on June 12, 2024

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.

cheapjack avatar cheapjack commented on June 12, 2024

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 ~/.bashrcbut 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.

cheapjack avatar cheapjack commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.