Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 01-19-2016, 05:12 PM
Koze Koze is offline
Member
 
Join Date: Sep 2015
Posts: 35
Koze is on a distinguished road
Default

how to stream rtmp to rtmp


Hello,

I have for example following stream:
Code:
"rtmp://stream.smcloud.net/live2/wawa/wawa_720p" -a "live2/eskatv" -f "WIN 11,9,900,170" -W "http://www.eska.tv/thrdparty/flowplayer/flowplayer.rtmp.swf" -p "http://www.eska.tv/player" --live -y "eskatv_360p"
and would like to re-stream to another rtmp using ffmpeg on Linux Debian. Do I need any other program than ffmpeg to do the task?

Could you kindly check my below command if is correct one?
Code:
ffmpeg -re -i "rtmp://stream.smcloud.net/live2/wawa/wawa_720p" -a "live2/eskatv" -f "WIN 11,9,900,170" -W "http://www.eska.tv/thrdparty/flowplayer/flowplayer.rtmp.swf" -p "http://www.eska.tv/player" --live -y "eskatv_360p" -codec copy  -f flv rtmp://xxxxxxx
If not what would be the way to re-stream above source?

Thank you in advance for any suggestion.

k
Reply With Quote
  #2  
Old 01-19-2016, 05:52 PM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: how to stream rtmp to rtmp


hi

you can use livestreamer

Code:
livestreamer --player-external-http  --player-external-http-port "4546"  "rtmp://stream.smcloud.net/live2/wawa/wawa_720p app=live2/eskatv  pageUrl=http://www.eska.tv/player live=1 playpath=eskatv_360p" best
in local
Code:
http://127.0.0.1:4546/
extern
Code:
http://SERVER-IP:4546/
maybe need allow port 4546 on the server's firewall
Reply With Quote
  #3  
Old 01-19-2016, 06:04 PM
Koze Koze is offline
Member
 
Join Date: Sep 2015
Posts: 35
Koze is on a distinguished road
Default

Re: how to stream rtmp to rtmp


Thank you bezom,

So if I will use livestreamer with above port in local then can I re-stream within ffmpeg with following command:

Code:
ffmpeg -re -i "http://localhost:4546/" -acodec aac -strict -2 -vcodec copy -b:a 128K -preset ultrafast -bufsize 3968k -f flv rtmp://xxxxxxxxxxxxxxxx
or should I use:
Code:
ffmpeg -re -i "http://127.0.0.1:4546/" -acodec aac -strict -2 -vcodec copy -b:a 128K -preset ultrafast -bufsize 3968k -f flv rtmp://xxxxxxxxxxxxxxxx
Is that going to work?

Much appreciate your help,

k

Last edited by Koze : 01-19-2016 at 06:07 PM. Reason: adding code
Reply With Quote
  #4  
Old 01-19-2016, 06:07 PM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: how to stream rtmp to rtmp


i don't know but the command with livestreamer re-stream already
Reply With Quote
  #5  
Old 01-19-2016, 06:14 PM
Koze Koze is offline
Member
 
Join Date: Sep 2015
Posts: 35
Koze is on a distinguished road
Default

Re: how to stream rtmp to rtmp


yes I know,

but I would like to re-stream to another server (let's say twitch.tv)

Sorry for not being clear with that.

Thank you,
k
Reply With Quote
  #6  
Old 01-19-2016, 06:17 PM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: how to stream rtmp to rtmp


i'm not sure if i understand

if your sever is the debian linux run the livestreamer's command on this server
Reply With Quote
Reply Post New Thread
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 10:11 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons