# Aspect ratio not correct in JW Player

**URL:** https://community.wowza.com/t/aspect-ratio-not-correct-in-jw-player/33988
**Category:** Wowza Streaming Engine
**Created:** [December 23, 2009, 5:20pm UTC](https://community.wowza.com/t/aspect-ratio-not-correct-in-jw-player/33988 "2009-12-23T17:20:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Vivek\_Gupta](https://avatars.discourse-cdn.com/v4/letter/v/f17d59/32.png) [@Vivek\_Gupta](https://community.wowza.com/u/Vivek_Gupta)
#### Post date: [December 23, 2009, 5:20pm UTC](https://community.wowza.com/t/aspect-ratio-not-correct-in-jw-player/33988/1 "2009-12-23T17:20:54Z")

</div>

I am using JW player to play a wowza stream. JW Player is showing the ascpect ratio is 4:3, although the original stream is encoded in 16:9. I did some debugging and I think the problem is Wowza not sending the metadata. Here is the output from Arthropod. It seems to missing the height & width of the video. I am using rtp-live stream type.

META ({description:myStream7ca33c8ad4478858fc11b66bb895c480.sdp is now published., level:status, code:NetStream.Play.PublishNotify, clientid:1020680111})

META ({description:Playing and resetting myStream7ca33c8ad4478858fc11b66bb895c480.sdp., level:status, code:NetStream.Play.Reset, clientid:1020680111})

META ({description:Started playing myStream7ca33c8ad4478858fc11b66bb895c480.sdp., level:status, code:NetStream.Play.Start, clientid:1020680111, isFastPlay:false, timecodeOffset:3470605646563L})

META ({audiochannels:2, trackinfo:[object Object],[object Object], width:0, audiocodecid:mp4a, height:0, type:metadata, audiosamplerate:48000, rtpsessioninfo:[object Object], videocodecid:avc1})

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [December 24, 2009, 1:37am UTC](https://community.wowza.com/t/aspect-ratio-not-correct-in-jw-player/33988/2 "2009-12-24T01:37:36Z")

</div>

width and height are there, but set to 0. It’s an issue with the encoder, Wowza wouldn’t change width and height metadata.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [December 24, 2009, 12:11pm UTC](https://community.wowza.com/t/aspect-ratio-not-correct-in-jw-player/33988/3 "2009-12-24T12:11:11Z")

</div>

JW player doesn’t read the sdp file, it gets metadata from stream, in metadata handler. You can see what it is being sent in that Arthropod output you posted:

> META ({audiochannels:2, trackinfo:[object Object],[object Object], **width:0** , audiocodecid:mp4a, **height:0** , type:metadata, audiosamplerate:48000, rtpsessioninfo:[object Object], videocodecid:avc1})

Richard

---

<div class="post-metadata">

### Author: ![Vivek\_Gupta](https://avatars.discourse-cdn.com/v4/letter/v/f17d59/32.png) [@Vivek\_Gupta](https://community.wowza.com/u/Vivek_Gupta)
#### Post date: [December 23, 2009, 7:03pm UTC](https://community.wowza.com/t/aspect-ratio-not-correct-in-jw-player/33988/4 "2009-12-23T19:03:14Z")

</div>

Here is my sdp file. Could you tell me where in this the height/width are specified?

v=0

o=- 14906139635711259196 14906139635711259196 IN IP4 venky-desktop

s=Unnamed

i=N/A

c=IN IP4 192.168.40.16

t=0 0

a=tool:vlc 1.0.2

a=recvonly

a=type:broadcast

a=charset:UTF-8

m=video 8010 RTP/AVP 96

b=RR:0

a=rtpmap:96 H264/90000

a=fmtp:96 packetization-mode=1

m=audio 8012 RTP/AVP 97

b=RR:0

a=rtpmap:97 mpeg4-generic/48000/2

a=fmtp:97 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1190; SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1;

---

<div class="post-metadata">

### Author: ![Vivek\_Gupta](https://avatars.discourse-cdn.com/v4/letter/v/f17d59/32.png) [@Vivek\_Gupta](https://community.wowza.com/u/Vivek_Gupta)
#### Post date: [December 24, 2009, 3:46pm UTC](https://community.wowza.com/t/aspect-ratio-not-correct-in-jw-player/33988/5 "2009-12-24T15:46:15Z")

</div>

Thanks Richard. I figured out the problem last night. Apparently when using Wowza RTMP streaming with MPEG-TS, Wowza does not send the correct height & width. And the default video size in JW Player is 320x240 (which 4:3). I changed the default in JW & recompiled the player. It seems be working fine now.
