-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Is it possible to restream to Youtube? #196
Comments
Please check the readme . |
Thanks, I can't do it, although I tried many configuration options in relay mode. And how would you do it? |
Where do I have to specify the "stream name / key" that Google broadcasts authenticates? |
Here is how I did it:
rtmp: { relay: {
|
Can you please format the console output ? |
Can you try the config like this
without the |
Because in |
Maybe we should add one more key in the relay config to substitute for the stream key ? Can you make a pull request with this feature ? |
Thanks for the help, but for some reason, the NMS inserts the symbol "/" at the end of the URL, and perhaps because of this, Youtube does not accept the content: 5/2/2019 08:13:00 5238 [INFO] Node Media Server v2.1.0 5/2/2019 08:13:21 5238 [FFDEBUG] FF输出: libavutil 56. 18.102 / 56. 18.102 5/2/2019 08:13:21 5238 [INFO] [rtmp connect] id=65ADIACS ip=::ffff:127.0.0.1 app=youtube args={"app":"youtube","flashVer":"LNX 9,0,124,2","tcUrl":"rtmp://127.0.0.1:1935/youtube","fpad":false,"capabilities":15,"audioCodecs":4071,"videoCodecs":252,"videoFunction":1} 5/2/2019 08:13:24 5238 [FFDEBUG] FF输出:rtmp://a.rtmp.youtube.com/live2/9qtz-mu76-7htf-ej46/: Input/output error 5/2/2019 08:13:24 5238 [INFO] [rtmp play] Close stream. id=65ADIACS streamPath=/youtube/ streamId=1 Tell me, please, how I can format the console output more readable? |
ffmpeg has one option |
No thats not the reason . The reason is that the stream key is missing |
|
Okay . The stream key is there . Can you give me the output of this
|
Here you are streaming a file as input to simulate a livestream . |
A very large log will get with the "-loglevel debug" key. Let's make it easier:
My qualification is not enough to correct the error in the code: |
Okay . That sounds great . Can you make a pull request to fix this ? |
It seems ffmpeg is not normalizing the urls . But thats fine . I'll make a pull request fixing this ASAP . |
Thank you so much! |
You're welcome . :) |
@parthibd, is it ASAP time to come soon? :) |
@VadimGuslistov - I have a work around for this, if you still need a fix ? |
Yes, I need it. Thank you very much! |
Hello do you mind sharing with me as well, I been trying to it on Facebook Live but I'm unable to do it, and I'm not sure what I'm doing wrong |
Hello, I've got the same issue could you help me out if you've found the solution? |
I think I got a workaround, not sure if it's the correct way of doing it. in the function onPostPublish in node_relay_server.js add a variable. could someone check it out if it's correct, please? |
Its not work. My solution is replace all |
Hi
Sorry I’ve been away. I will look at my fix later and update the form.
Nick Grant
On 18 Jul 2019, at 10:16, cpanel10x <notifications@github.com<mailto:notifications@github.com>> wrote:
I think I got a workaround, not sure if it's the correct way of doing it.
in the function onPostPublish in node_relay_server.js add a variable.
let newStream = stream.length ? /${stream} : stream
and change
conf.ouPath = hasApp ? ${conf.edge}/${stream}:${conf.edge}${streamPath};
to
conf.ouPath = hasApp ? ${conf.edge}${newStream}:${conf.edge}${streamPath};
could someone check it out if it's correct, please?
Its not work. My solution is replace all
hasApp ? ${conf.edge}/${stream}:${conf.edge}${streamPath};
to
rtmp://a.rtmp.youtube.com/live2/<stream key> lol
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#196?email_source=notifications&email_token=AG4NAQPBDHGXFZGSBIVOQKTQAAYIPA5CNFSM4HJQ3D5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2H3RLI#issuecomment-512735405>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AG4NAQN3ZP3NZ3YARD744J3QAAYIPANCNFSM4HJQ3D5A>.
|
Hi All To get this to work i removed ${stream} from the onPostPublish function . onPostPublish(id, streamPath, args) { } Then within my relay config this is my setup and it works like a dream. i'm not sure if this is the correct way around but it works. relay: { |
|
Hi guys. That pull is great solution for fix that problem #210 |
This issue is most likely fixed by #210 by adding the
This issue probably can be closed when adding the |
How to pass the dynamic stream key? |
How to get the Stream path when disconnecting server |
@kauravshubham Please open a new issue for whatever you are trying to achieve since this is not the topic that is being discussed here. |
For youtube:NOTE: You need to add / after the main URL of rtmp. Example: rtmp://a.rtmp.youtube.com/live1/jmhw-rgv0-uem7-6411-195h |
Following! |
No description provided.
The text was updated successfully, but these errors were encountered: