[SOLVED] Sony Bravia - Aspect Ratio fixing
The following is just a discussion on what has to be implemented in future Serviio versions (version 1.0) for this to work. You won't be able to pass any custom parameters to FFmpeg as of now.
Since version 1.0 Serviio use the following solution (2) , it was implemented and fix the Sony Aspect Ratio issue.
I worked on ffmpeg option to use for Sony Bravia TV Aspect Ratio fixing.
1) This is the best solution
- no need to use the zoom option on Sony Bravia Menu
- All pixels are displayed
- Correct Display Aspect Ratio
- But there is a CPU overhead for the upscaling into hd resolution
ffmpeg option to use with AVI files <720 height resolution
With DAR > = 16:9
"-vf "scale=1280:1280/dar/sar","pad=1280:720:(ow-iw)/2:(oh-ih)/2:black","setdar=4:3"
With DAR < 16:9
"-vf "scale=720*dar*sar:720","pad=1280:720:(ow-iw)/2:(oh-ih)/2:black","setdar=4:3"
2) An alternative - same that PS3 Media Server/Mencoder option -, resulting less cpu overhead, but some pixels (16) are lost on left and right side !!
- add padding to have a 16/9 aspect ratio (top/bot or left/right depends of the source format ratio)
- Change DAR=4/3
-vf "pad=max(iw,ih*16/9):max(ih,iw/16*9):(ow-iw)/2:(oh-ih)/2:black,setdar=4:3"
Explain:
With DAR > = 16:9
-vf "pad=iw:iw/16*9:(ow-iw)/2:(oh-ih)/2:black","setdar=4:3"
With DAR < 16:9
-vf "pad=ih*16/9:ih:(ow-iw)/2:(oh-ih)/2:black","setdar=4:3"
3) Workaround for testing purpose
viewtopic.php?f=11&t=2956&start=30#p34000
_________________________________
Sony Bravia Display configuration
HOME -> Display -> Screen:
- Screen Format/Wide Mode (option name varies depending on your region/country) : Wide
-------- Enlarges the picture horizontally to fill the screen when the original source is 4:3. When the original source is 16:9 (High-definition source), select this option to display the 16:9 picture in its original size.
- Auto Format : Off
-------- Automatically changes “Screen Format/Wide Mode” to match the input signal
- 4:3 Default : Off (greyed)
-------- Sets the default screen format for a 4:3 broadcast.
- Auto Display Area : Off (greyed)
-------- Automatically adjusts the picture to the most appropriate display area.
- Display Area : +1
-------- Adjusts the picture display area. Select “Full Pixel” to display the original picture when parts of the picture are cut,“+1” to display the original picture,“Normal” to display the recommended size picture, or “-1” to enlarge the picture
.