Restreaming / Relay RTMP to YouTube Live?
mscreenie opened this issue · 2 comments
mscreenie commented
Trying to relay a RTMP stream from a Wowza server (Not in my control) - need to restream it into YouTube Live, I've tried a few ways but to no avail. Any pointers appreciated!
rtmp {
server {
listen 1935;
chunk_size 4096;
application mypush {
live on;
record off;
push rtmp: //a.rtmp.youtube.com app=live2 playpath=xxxxx-streamkeyremoved;
}
application mystaticpull {
live on;
pull rtmp: //x.somecdnn.net/livestream/stream;
}
}
}
Need someway to get mystaticpull to send to mypush, if im not mistaken?
misiek08 commented
Why not direct ffmpeg -i [...] -f [...] ?
mscreenie commented
I want to host the pulled stream as MPEG dash too, Can your method be started automatically so it pushes to YouTube on boot?
this?
rtmp_auto_push on;
rtmp {
server {
listen 1935;
chunk_size 4096;
application mypush {
live on;
record off;
dash on;
dash_path / tmp / dash;
exec ffmpeg - i rtmp: //x.somecdnn.net/livestream/stream;
push rtmp: //a.rtmp.youtube.com app=live2 playpath=xxxxx-streamkeyremoved;
}
}
server {
listen 8080;
location / dash {
root / tmp;
add_header Cache - Control no - cache;
}
}