Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Multibitrate RTMP. Is this possible?


Hello,
i'm streaming video to my nginx server with ffmpeg. Is this possible to make 2 outputs with different bitrate and put them under some kind of quality switcher in jw player?

I mean i have

rtmp://server:1935/app/channel1
rtmp://server:1935/app/channel2

Is there way to make button to switch between those 2 streams, instead of placing them in seperated players?
Kind Regards!

8 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

You can do this with a SMIL manifest.

Demo – http://www.longtailvideo.com/support/jw-player/29365/rtmp-dynamic-stream

JW Player

User  
0 rated :

Thanks for reply.
I would like to ask about that code:

bc.. <smil>
<head>
<meta base="rtmp://example.com/application"/>
</head>
<body>
<switch>
<video src="mp4:myVideoHi.mp4" system-bitrate="1800000" width="1280" height="720" />
<video src="mp4:myVideoMi.mp4" system-bitrate="1000000" width="640" height="360" />
<video src="mp4:myVideoLo.mp4" system-bitrate="400000" width="320" height="180" />
</switch>
</body>
</smil>



in place of "mp4:myVideoHi.mp4" i should place my rtmp link right? for example
<video src="rtmp://server:1935/app/channel" system-bitrate="1800000" width="1280" height="720" />
?

JW Player

User  
0 rated :

Oh sorry, now i see, link to application above.

so

bc.. <smil>
<head>
<meta base="rtmp://server:1935/live"/>
</head>
<body>
<switch>
<video src="streamname1" system-bitrate="1800000" width="1280" height="720" />
<video src="streamname2" system-bitrate="1000000" width="640" height="360" />
</switch>
</body>
</smil>


is correct?

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes, correct.

http://www.longtailvideo.com/sites/default/files/jw6-manifest.smil is a sample.

JW Player

User  
0 rated :

That's weird, i load page and my player just still loading with no end. Also no button appeared.

My player code:

bc.. <script type="text/javascript">
jwplayer('player').setup({
file: 'embed1/123.smil',
image: '',
title: 'NatGeo Wild HD',
aspectratio: '16:9',
width: '620',
height: '350',
stretching: 'exactfit',
autostart: 'true'
});
</script>



and my smil file:

bc.. <smil>
<head>
<meta base="rtmp://123:1935/live"/>
</head>
<body>
<switch>
<video src="animal" system-bitrate="1800000" width="1280" height="720" />
<video src="orange" system-bitrate="1000000" width="640" height="360" />
</switch>
</body>
</smil>


php with player is placed in /www/embed/
123.smil file is placed in /www/embed1/

Why it is not working?

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link?

JW Player

User  
0 rated :

Okay, i provide example channel link created for this case:

rtmp://212.83.174.93:1935/live/ch1

Ethan Feldman

JW Player Support Agent  
0 rated :

I mean a link to where your jw player embed is.

This question has received the maximum number of answers.