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

RTMP stream video codec


Hello,

we are trying to stream videos over rtmp, but are experiencing a lot of buffering and lagging. On several hardware, we always have lagging/non smooth movements (stuttering) with 720p and 1080p, especially noticable in movements (videos are 50fps and run smoothly when played locally). With the JWPlayer, CPU usage also goes up very high and not high-end hardware runs into problems very quickly.

Do you have recommended video codec settings for rtmp videos?
These are our current settings: http://prntscr.com/bfsamo

We are streaming our videos via Amazon Cloudfront and using the JWPlayer 7.4.3. Here is a minimal setup with the player and one video (and two resolutions):
http://dev.tybas.dance/player/public/720
http://dev.tybas.dance/player/public/1080

When we load the URL (which you can see in the page source) into the wowza testplayer at https://www.wowza.com/testplayers, we do not experience buffering/non smooth movements as with the JWPlayer.
Are there special configuration parameters we have to set? We have already tried setting 'primary' to 'flash' and 'html5', and also setting 'smoothing' to true and false.

8 Community Answers

rolf.boomgaarden N/A

User  
0 rated :

Somehow, clicking those links will open https://dev.ty... instead of http://, as is written there. I'll try posting the links again, if this still redirects to https, please just change it to http.

dev.tybas.dance/player/public/720
dev.tybas.dance/player/public/1080

Donni

JW Player Support Agent  
0 rated :

Rolf has anything changed since you submitted this ticket? Both of those pages appear to be working for me on the latest macOS/Chrome. What system are you testing this on?

Rolf Boomgaarden

User  
0 rated :

Nothing has changed.

We are primarily using Chrome&Firefox on Windows (10), but sometimes get feedback from Mac users.
The videos are playing, that is not the problem. It's that if you watch closely (as if you would when you view the content of the video), movements will not render smoothly, but fast movements will look choppy. It seems as if the 50fps video is shown with less frames. This is especially noticable in the 1080p video.

We have this issue with all systems we are using. These are at least two middle\high-end desktop PCs, one SurfaceBook and some MacBooks from testers.

My experience right now using you stream-tester http://demo.jwplayer.com/stream-tester/:
https://s3-eu-west-1.amazonaws.com/tybas.video.configtest/test/1080.mp4
1) loading the mp4 directly into your player with flag 'attempt to render in html5':
This will run smooth for me
2) loading the mp4 directly into your player without the flag 'attempt to render in html5':
This will already run less smooth for me
3) loading the RTMP-stream URL generated on our testing page (dev.tybas.dance/player/public/1080) (these URLs are signed and will only work for a certain time, best is to open our test site and copy the URL from the site source)
This will load/buffer a lot and movements are not smooth at all

It seems the problem might be rtmp/flash? Are there ways we can make the videos run smooth with using rtmp? Different video codec settings, or different player settings?

Donni

JW Player Support Agent  
0 rated :

Thanks for that. It does look like when the player is rendered in flash there is choppy playback. Your content-type is application/octet-stream, try changing it to video/mp4 and let’s see if that helps.

Rolf Boomgaarden

User  
0 rated :

Thank you, but you are talking about the content-type of the mp4-file I uploaded, right?
I changed it now, but I uploaded that only for the purpose of comparing playing the mp4 file to playing the rtmp stream.

The rtmp stream files are already being served with content-type video/mp4.

Donni

JW Player Support Agent  
0 rated :

Is it possible for you to switch to HLS instead of RTMP? I assume you’d also want mobile users to be able to watch the video, which would not be possible if you were serving an RTMP stream.

Rolf Boomgaarden

User  
0 rated :

Yes, we are trying to implement HLS at the moment, but read that HLS alone isn't enough to cover all browsers, so we had planned to have RTMP for desktop and HLS for mobile.
Is this information out of date? Is HLS alone enough to get the same coverage as if using HLS + RTMP?

Donni

JW Player Support Agent  
0 rated :

Check our media formats reference page. If a browser can’t natively handle an HLS stream we convert it to flash. It’s actually the best choice right now.

This question has received the maximum number of answers.