# Change display aspect ratio without changing width and height

**URL:** https://community.wowza.com/t/change-display-aspect-ratio-without-changing-width-and-height/41515
**Category:** Wowza Streaming Engine
**Created:** [October 31, 2013, 4:17pm UTC](https://community.wowza.com/t/change-display-aspect-ratio-without-changing-width-and-height/41515 "2013-10-31T16:17:28Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Moises\_Panisello](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@Moises\_Panisello](https://community.wowza.com/u/Moises_Panisello)
#### Post date: [October 31, 2013, 4:17pm UTC](https://community.wowza.com/t/change-display-aspect-ratio-without-changing-width-and-height/41515/1 "2013-10-31T16:17:28Z")

</div>

Hello,

We are streaming with Adobe Flash Media Live Encoder into our wowza server a PAL video with 720x756 pixels anamorphic (16:9).

We configured the transrate.xml file like this:

* * *

true

test

mp4:${SourceStreamName}\_test

H.264

default

-1

match-source

720

576

0,0,0,0

high

1500000

true

5

PassThru

${SourceAudioBitrate}

* * *

We get an output stream from wowza media server like this:

* * *

General

ID : 1 (0x1)

Complete name : media.ts

Format : MPEG-TS

File size : 2.67 MiB

Duration : 9s 960ms

Overall bit rate mode : Variable

Overall bit rate : 2 239 Kbps

Video

ID : 256 (0x100)

Menu ID : 1 (0x1)

Format : AVC

Format/Info : Advanced Video Codec

Format profile : Main@L3.1

Format settings, CABAC : Yes

Format settings, ReFrames : 3 frames

Codec ID : 27

Duration : 10s 0ms

Bit rate mode : Variable

Maximum bit rate : 1 980 Kbps

Width : 720 pixels

Height : 576 pixels

Display aspect ratio : 5:4

Frame rate : 25.000 fps

Standard : NTSC

Color space : YUV

Chroma subsampling : 4:2:0

Bit depth : 8 bits

Scan type : Progressive

Audio

ID : 257 (0x101)

Menu ID : 1 (0x1)

Format : AAC

Format/Info : Advanced Audio Codec

Format version : Version 4

Format profile : LC

Muxing mode : ADTS

Codec ID : 15

Duration : 9s 891ms

Bit rate mode : Variable

Minimum bit rate : 85.1 Kbps

Maximum bit rate : 139 Kbps

Channel(s) : 2 channels

Channel positions : Front: L R

Sampling rate : 44.1 KHz

Compression mode : Lossy

Delay relative to video : 19ms

* * *

We would like to get this parameters:

* * *

Width : 720 pixels

Height : 576 pixels

Display aspect ratio : 16:9 (instead of 5:4)

Frame rate : 25.000 fps

Standard : PAL (instead of NTSC)

* * *

Is there a way to obtain these results changing some parameters of the transrate.xml file?

Thanks for advance,

Moisès

---

<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: [October 31, 2013, 6:59pm UTC](https://community.wowza.com/t/change-display-aspect-ratio-without-changing-width-and-height/41515/2 "2013-10-31T18:59:01Z")

</div>

Moisès,

The Wowza Transcoder does not support anamorphic squeeze encoding. It does support decode of video with anamorphic squeeze, but not encode. So the Display aspect ratio is only a function of Width and Height

You will have to [verify following this guide](https://www.wowza.com/docs/how-to-control-transcoded-video-with-video-encoding-parameters) but you can probably set the encode to PAL by adding this Parameter to each Transcoder template /Encode /Video Parameters container:

```auto
<Parameter>
    <Name>mainconcept.video_format</Name>
    <Value>1</Value>
    <Type>Long</Type>
</Parameter>

```

Look for this output in the access log with the logVideoEncodingParameters Property enabled to verify your system has this feature.

```auto
INFO server comment - # long: vui parameters: 1: PAL, 2: NTSC
INFO server comment - mainconcept.video_format: 2

```

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: [November 13, 2013, 2:20pm UTC](https://community.wowza.com/t/change-display-aspect-ratio-without-changing-width-and-height/41515/3 "2013-11-13T14:20:58Z")

</div>

Thanks for the update, Moisès. Glad it’s working

Richard

---

<div class="post-metadata">

### Author: ![Moises\_Panisello](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@Moises\_Panisello](https://community.wowza.com/u/Moises_Panisello)
#### Post date: [November 12, 2013, 12:26pm UTC](https://community.wowza.com/t/change-display-aspect-ratio-without-changing-width-and-height/41515/4 "2013-11-12T12:26:23Z")

</div>

Richard,

Many thanks for your help.

Regards,

Moisès

---

<div class="post-metadata">

### Author: ![Moises\_Panisello](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@Moises\_Panisello](https://community.wowza.com/u/Moises_Panisello)
#### Post date: [November 13, 2013, 9:12am UTC](https://community.wowza.com/t/change-display-aspect-ratio-without-changing-width-and-height/41515/5 "2013-11-13T09:12:28Z")

</div>

Hi again,

Finally, we achieved everything we needed.

The output of the access log was very helpfull:

* * *

INFO 200 - # long: vui parameters: sample aspect ratio: horizontal size in arbitrary units

INFO 200 - mainconcept.sar\_width: 1

INFO 200 - # long: vui parameters: sample aspect ratio: vertical size in arbitrary units

INFO 200 - mainconcept.sar\_height: 1

* * *

So we modified the transrate template to also obtain 16:9 aspect ratio with a 720x576 video resolution. We configured the pixel ratio as 16:11 (for an anamorphic wide screen; 16:9 =\> [http://en.wikipedia.org/wiki/Pixel\_aspect\_ratio](http://en.wikipedia.org/wiki/Pixel_aspect_ratio)):

* * *

mainconcept.video\_format

1

Long

mainconcept.sar\_width

16

Long

mainconcept.sar\_height

11

Long

* * *

So we got this:

* * *

Width : 720 pixels

Height : 576 pixels

Display aspect ratio : 16:9

Frame rate : 25.000 fps

Standard : PAL

* * *

Regards,

Moisès

---

<div class="post-metadata">

### Author: ![Growing\_Mature](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@Growing\_Mature](https://community.wowza.com/u/Growing_Mature)
#### Post date: [August 3, 2014, 10:33pm UTC](https://community.wowza.com/t/change-display-aspect-ratio-without-changing-width-and-height/41515/6 "2014-08-03T22:33:16Z")

</div>

You may also refer to this step by step guide on how to [change video aspect ratio](http://www.idealshare.net/video-converter/change-video-aspect-ratio.html)among 4:3, 16:9, 2.35:1, 1.85:1, 1:1, 21:9 etc

---

<div class="post-metadata">

### Author: ![Growing\_Mature](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@Growing\_Mature](https://community.wowza.com/u/Growing_Mature)
#### Post date: [August 3, 2014, 10:36pm UTC](https://community.wowza.com/t/change-display-aspect-ratio-without-changing-width-and-height/41515/7 "2014-08-03T22:36:10Z")

</div>

Just google search Step by Step Guide on **How to Change Video Aspect Ratio with iDealshare VideoGo** , you will find a detailed guide.

---

<div class="post-metadata">

### Author: ![TIM\_PAN](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@TIM\_PAN](https://community.wowza.com/u/TIM_PAN)
#### Post date: [September 20, 2015, 10:22pm UTC](https://community.wowza.com/t/change-display-aspect-ratio-without-changing-width-and-height/41515/8 "2015-09-20T22:22:50Z")

</div>

HI, I think the best and simple way is use some kind of software, don’t need the coding staffs. I usually use the HD Video Converter Factory Pro [to change aspect ratio of video](http://www.videoconverterfactory.com/tips/change-aspect-ratio.html) to solve this kind of things. Hope it will help you.

Best
