Kodi Community Forum
Autostretch 4:3 content to custom zoom amount/pixel ratio - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Autostretch 4:3 content to custom zoom amount/pixel ratio (/showthread.php?tid=206110)



Autostretch 4:3 content to custom zoom amount/pixel ratio - Jojaco - 2014-10-10

I'd like to play my 4:3 series with a custom zoom setting (Zoom amount=1.07 and Pixel ratio=1.06).
I'm setting this up manually for every episode now, but i wonder if it is possible to adjust the advancedsettings.xml to do this automated.

I experimented with these stretch options:

<advancedsettings>
<videoplayer>
<stretch43>3</stretch43> (1- Zoom, 2- 4:3, 3- 14:9, 4- 16:9)
</videoplayer>
</advancedsettings>

this works, but is not what I want, it gives me to much zoom (don't mind about small black bars on the sides but don'd want to lose too much of the video on top/bottom). I just like to set up my own zoom amount and pixel ratio settings. Which options/code can I use in the advancedsettings.xml?

Hopefully someone has got a solution for this?


RE: Autostretch 4:3 content to custom zoom amount/pixel ratio - lrusak - 2014-10-10

Why not just use the "Display 4:3 videos as" setting? I use the "wide zoom" option

Here are the other options

Stretch 4:3 - retains the original pixel ratio and stretches the image equally in both directions so that the vertical size matches the screen height. However this does not fill the screen in the horizontal plane so the video is displayed with black bars left and right. No distortion, No missing pixels, Black bars.

Zoom - goes one stage further and continues to stretch the image until the horizontal size matches the screen width. However pixels on the top and bottom are now off screen and thus missing. No Distortion, Missing pixels, No Black Bars.

Wide Zoom tries to improve on zoom by stretching the image slightly less in the vertical plane than the horizontal plane to retain more pixels at the cost of some distortion (slight squashing of the picture). Mild distortion, Less missing pixels, No Black Bars.

Stretch 16:9 - like Wide Zoom, the image is stretched by different ratios in the vertical and horizontal planes so that the vertical size matches the screen height and the horizontal size matches the screen width. However the image is even more squashed than with Wide Zoom. This fills the screen and retains all the pixels, but at the expense of image integrity. People appear short and fat. Maximum distortion, no loss of pixels, No black bars.

http://wiki.xbmc.org/index.php?title=Settings/Videos#Playback


RE: Autostretch 4:3 content to custom zoom amount/pixel ratio - un1versal - 2014-10-10

(2014-10-10, 02:55)lrusak Wrote: Why not just use the "Display 4:3 videos as" setting? I use the "wide zoom" option

Here are the other options

Stretch 4:3 - retains the original pixel ratio and stretches the image equally in both directions so that the vertical size matches the screen height. However this does not fill the screen in the horizontal plane so the video is displayed with black bars left and right. No distortion, No missing pixels, Black bars.

Zoom - goes one stage further and continues to stretch the image until the horizontal size matches the screen width. However pixels on the top and bottom are now off screen and thus missing. No Distortion, Missing pixels, No Black Bars.

Wide Zoom tries to improve on zoom by stretching the image slightly less in the vertical plane than the horizontal plane to retain more pixels at the cost of some distortion (slight squashing of the picture). Mild distortion, Less missing pixels, No Black Bars.

Stretch 16:9 - like Wide Zoom, the image is stretched by different ratios in the vertical and horizontal planes so that the vertical size matches the screen height and the horizontal size matches the screen width. However the image is even more squashed than with Wide Zoom. This fills the screen and retains all the pixels, but at the expense of image integrity. People appear short and fat. Maximum distortion, no loss of pixels, No black bars.

http://wiki.xbmc.org/index.php?title=Settings/Videos#Playback

@ Jojaco, let me begin by suggesting you mark this thread/report as a BUG and add if necessary a Debug log (wiki) to establish your system, OS etc.

In Kodi V14 (what irusak suggests above) this is totally broken and does have zero effect, Last time this worked for me was around V12, V13 after that is dead. See http://trac.xbmc.org/ticket/15476 (I doubt any bugs in v13 will be fixed anyway at this stage when V14 is nearing beta1)

things you can try.

1) Via Video_playback#OSD_video_settings (wiki) Change the view mode and cycle to 16:9 then you can optionally enable Non linear stretch (to fix the fat people irusak describes) -- Be warned, when you save for all videos its just a mess when you play non 4:3 material/content.

Alternative to 1)

1 a ) For best results you can also play with the pixel ratio, for me the default is 1:00 and changing to a value of 1:10 does the job (find a ratio that works for you) + non linear stretch. To fix the fat people. Again if you save this for all videos non 4:3 material/content will playback in wrong ratio, imo either another bug, but maybe its all connected. idk Tongue these bits are somewhat messy atm.

To avoid this completely anarchy from saving those settings above -- I dont use any of the above - What I do in meanwhile is:

2) Allowed error in aspect ratio to minimize black bars set to 20% that will decrease the size of the black bars which are seen vertically. That's as good as you gonna get. until someone looks into the bug

In meanwhile already given a sample 4:3 Video to @fritsch/b[] for testing but given these guy are going off to the [b]DevCon I doubt anyone will care much for looking at bug reports never mind fixing them.

hope that helps you, it certainly took me a while fiddling with things since 4:3 content is very prevalent in older tv series things us older people seem to have in their collections Wink


RE: Autostretch 4:3 content to custom zoom amount/pixel ratio - nickr - 2014-10-10

Frankly I think stuff is better at the original aspect ratio.


RE: Autostretch 4:3 content to custom zoom amount/pixel ratio - Jojaco - 2014-10-10

ThnXaLot for the solutions, but this is not what I was looking for, tried all that before but is not satisfying to me. These above settings change also all my other materials ratio.

I only want the 4:3 material in a specified custom zoom amount/pixel ratio. Not what is already in XBMC (zoom, stretch to 16:9 etc.). I just look for the parameters to specify these in the advancedsettings.xml.

Also I don't mind if the picture isn't pixelperfect for the 4:3 material and small black bars on the side, these parameters must only apply to 4:3 so that other ratio's wil stay as they supposed to (16:9, 21:9, etc.).

Is this possible with the advancedsettings.xml? Or maybe the guisettings.xml and what code can I use for this?


RE: Autostretch 4:3 content to custom zoom amount/pixel ratio - un1versal - 2014-10-10

What was described above by irusak is what you want or at least what you say you want, if it works that is on your xbmc version and it should else its the bug I said.

my suggestion

You can just use the Allowed error in aspect ratio to minimize black bars in Settings/Videos#Playback (wiki) and set the error ratio to 20% or whatever you prefer (what I actually doing atm) and be done...

Side note

I been looking at the wiki and its a mystery to me where you get those advancedsettings from and more so when you say they work the only reference that says that belongs to is plex see https://forums.plex.tv/index.php/topic/19272-auto-stretch-43-movies-tv-shows/#entry211008

Both <videoplayer> and <stretch43> are totally undocumented in XBMC/Kodi wiki

Ok, going on, my suggestion just above does the trick you want, else no idea.


RE: Autostretch 4:3 content to custom zoom amount/pixel ratio - Jojaco - 2014-10-11

Thnx uNiversal, but that's not what I want and it probably isn't possible.

I just want to setup my own zoom amount/pixel ratio values like I can specify in the moviesettings menu while playing. I use zoom amount value 1.07 and pixel ratio value 1.06. The only thing I want is when I play 4:3 material, it will be played automatically with these values. I can't save these settings because all non 4:3 material will be played with these settings too. I hoped there was a way to specify these settings in the advancedsettings.xml but probably there is no parameter for that, unfortunately.

I'm aware I will miss some of the top/bottom of the video and the black bars are small, but that doesn't border me.

Hope someone has a briliant idea to achive this but for so far I stick with the possibilities.


RE: Autostretch 4:3 content to custom zoom amount/pixel ratio - un1versal - 2014-10-11

Have you actually tried what I last suggested?


RE: Autostretch 4:3 content to custom zoom amount/pixel ratio - Jojaco - 2014-10-12

I tried that, but applies to all material, so its not an option for me. I watch more non 4:3 material so turning the percentage up and back is to much of a hassle, I want to watch all other material in their original ratio. But thanx for suggesting.


RE: Autostretch 4:3 content to custom zoom amount/pixel ratio - un1versal - 2014-10-12

You must have a greatly dissimilar setup to mine both on htpc and tv and your content from what I have then, you started with Plex tweaks that dont work on my setup at all, so yea, not surprised at your results.


RE: Autostretch 4:3 content to custom zoom amount/pixel ratio - kaamaan - 2019-03-22

Please, "wide zoom" is horrible, it even makes objects narrowed in the middle and more streched on sides, I beleive this must be a bug.
Mediaportal has the parameters far better, it even can remove side black bars, here. Could you please have a look at it?