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

Aspect Ratio is correct when streaming live, but then when playing recorded video it is wrong


I am streaming via a custom Flash broadcaster to wowza and then I am displaying the stream using jwplayer 6. When streaming live, the aspect ratio is correct with stretching set to 'uniform'. After the live video is over we are then displaying the recorded version for users. The recorded version is playing as if it was shot in 4:3 when it has actually been shot in 16:9.

I ran mediainfo on the recorded files and it appears that all of the meta information is correct:

General
Complete name : stream-5122.flv
Format : Flash Video
File size : 6.23 MiB
Duration : 1mn 8s
Overall bit rate : 759 Kbps

Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.1
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=15
Codec ID : 7
Duration : 1mn 8s
Bit rate mode : Constant
Nominal bit rate : 1 200 Kbps
Width : 640 pixels
Height : 360 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 25.000 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.208

Audio
Format : Nellymoser
Codec ID : 6
Duration : 1mn 8s
Channel count : 1 channel
Sampling rate : 22.05 KHz
Bit depth : 16 bits
Delay relative to video : 13ms

Does anyone have any suggestions for what I can do to resolve this?

13 Community Answers

Todd

JW Player Support Agent  
0 rated :

Last time I helped someone with a similar issue, there was an error in the encoding and the video dimensions in the metadata did not match the actual dimensions of the TS fragments. Are you able to share a URL to your video here?

What happens if you force our player to fixed dimensions to match the metadata?

jon

User  
0 rated :

Here's one of the videos: http://s3.amazonaws.com/concert_window_stage/app/archived_videos/000/001/004/original/cb4d551cfdd740f1baeffc12188badeb.flv

It looks correctly 16:9 in VLC and incorrectly 4:3 in jwplayer.

Is there a way to force jwplayer to use the dimensions in the metadata?

jon

User  
0 rated :

Just giving this a bump. Todd, is there a way to force JWPlayer to use the metadata dimensions?

Todd

JW Player Support Agent  
0 rated :

I’m going to download the .flv to see if the engineers see anything unusual with the metadata, but I was able to get our player to match what I see in VLC with the following player configuration:

jwplayer(“myElement2”).setup({
file: “http://s3.amazonaws.com/concert_window_stage/app/archived_videos/000/001/004/original/cb4d551cfdd740f1baeffc12188badeb.flv”,
width: ‘640’,
height: ‘360’,
stretching: ‘exactfit’
});

jon

User  
0 rated :

Thanks Todd,
If there's something wrong with the meta data that would be really helpful to know. Unfortunately all the videos are different sizes so we can't just set the width/height on the player staticly.

My analysis of the meta data doesn't reveal any issues though.

Thanks for your help.

jon

User  
0 rated :

Hey Todd, any update on this? It's becoming a larger issue for our users and we're going to have to switch the player out pretty soon if we can't get it resolved.

Thanks again for your help.

Todd

JW Player Support Agent  
0 rated :

I have a meeting with the product manager later this morning, so I will be sure to update you afterwards.

Todd

JW Player Support Agent  
0 rated :

I am not familiar with your workflow. How is the VOD being recorded?

jon

User  
0 rated :

VOD is recorded and streamed live via a custom Flash app to a Wowza publish point. It is recorded on the Wowza server and then it is being served off of the wowza server as well.

The live stream is played just fine using JWPlayer, but the very same recorded FLV has these aspect ratio issues.

Todd

JW Player Support Agent  
0 rated :

You originally mentioned that the initial aspect ratio is correct when the live stream is being played. What do you get when you do not set any stretching options in the player? Can you provide a live stream URL?

jon

User  
0 rated :

Todd, I have a stream live that I can send you but I'd prefer not to post it publicly. Is there an email I can send it to?

Removing the stretching param acts the same way as setting it to 'uniform' which incorrectly plays the video as 4:3 when it should be 16:9.

jon

User  
0 rated :

Hey Todd, just giving this another bump. Any insights from the meta data?

Todd

JW Player Support Agent  
0 rated :

Sorry for the delay. Please e-mail your stream to support@jwplayer.com and be sure to mark it for my attention.

This question has received the maximum number of answers.