MediaPortal Forums HTPC/MediaCenter

Sponsored Ads

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » General Development (no feature request here!)

General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here.

Reply
 
LinkBack Thread Tools Display Modes
Old 2007-10-29, 17:17   #1 (permalink)
Portal Member
 
Join Date: Mar 2007
Age: 27
Posts: 38
Thanks: 0
Thanked 8 Times in 2 Posts

Country:


Default Implemented Non-Linear (Smart) Stretching of 4:3->16:9

Hi,

I have implemented a new aspect ratio: "Smart 4:3->16:9" for displaying 4:3 material fullscreen on a 16:9 display.
It performs slight cropping of the top and bottom, and then stretches the video non-linearly (Center area barely stretched, while sides are stretched more). Like most LCD's/PLASMAS and MCE do.
More info can be found in this thread here.
The values currently being used are identical (Or at least should be) to the numbers posted by 'mystic2k' in post #8 of that thread.

I am currently attaching the patch/binaries here (And not yet posting to the sourceforge patch section) for the following reasons:
- I want to make sure there is enough interest in this before asking for it to be patched in to the main development stream (I also understood new features are currently frozen)
- So that it can be tested (Making sure no other application parts have been broken)

To install/use it:

- If you are building MP, apply the patch.diff from 'patch.zip' attached here and rebuild.

If you are not building:
I attached binaries you can apply to the 0.2.3.0 final release: Just Extract '0.2.3.0_final_binaries_v2.zip' to your MediaPortal directory, overwriting previous files (Back them up first in case you want to go back).

This Zoom Mode now overlaps with what was previously "Pan&Scan". (It should appear as "Smart" in the aspect ratio selection when watching a movie/tv)
If you select "Smart", then if your viewing window is detected as 4:3 (Or near 4:3) the old Pan&Scan is used. If it is detected near 16:9 then this new mode is used.

From my testing it is working with the TVserver plugin (multiseat), in My videos, and using the old (built in) tv engine.

Please post any issues you may have.

*IMPORTANT*
If you used the previous version of the binaries, you need to rollback to the original official 0.2.3.0 files, either by copying them back if you saved them, or re-installing 0.2.3.0 final. Otherwise you will have leftover garbage from the previous version.
You also no longer need to overwrite the official TVplugin if using TVserver, just install the TVplugin as normal from the TVserver SVN.

*IMPORTANT 2*
If you are using a language other than english, the Aspect Ratio may still appear as "Pan&Scan" in the Aspect Ratio when watching movies.
It will still do smart stretching when in 16:9, functionality isn't effected.
If you want to change the text, then simply edit string 946 in file 'language/strings_xx.xml', where 'xx' is your language, calling it what you like.
Attached Files
File Type: zip 0.2.3.0_final_binaries_v2.zip (677.7 KB, 140 views)
File Type: zip patch.zip (2.2 KB, 95 views)

Last edited by ol263; 2007-12-19 at 10:24.
ol263 is offline   Reply With Quote
7 Users Say Thank You:
Old 2007-10-29, 19:22   #2 (permalink)
Portal Member
 
Join Date: Apr 2006
Location: San Sebastian
Posts: 377
Thanks: 7
Thanked 14 Times in 10 Posts

My System

Default

I would like to test it, but I'm using latest SVN.. 16387....can you give us the patch with the diff, so we can include on our svn build?


is this like mode 4 on mce??


Great idea...

Iosu
iosub is offline   Reply With Quote
Old 2007-10-29, 20:11   #3 (permalink)
Portal Member
 
Join Date: Mar 2007
Age: 27
Posts: 38
Thanks: 0
Thanked 8 Times in 2 Posts

Country:


Default

The patch.zip file contains the diff from the SVN code (I think it's code from 2 days ago), as well as files that were updated. Is that what you meant? (Sorry this is my first patch).

Yes this is pretty much like mode 4 in MCE.
ol263 is offline   Reply With Quote
Old 2007-10-29, 21:42   #4 (permalink)
Portal Member
 
Join Date: Apr 2006
Location: San Sebastian
Posts: 377
Thanks: 7
Thanked 14 Times in 10 Posts

My System

Default

Hi

I will need something like
Line

20- if(....)
20+ return (if(----))


so I now that I have just to replace that line, and not the all .cs

SVN tools do that, compare the online .cs with yours and make the diff file

Hope this helps
Iosu
iosub is offline   Reply With Quote
Old 2007-10-30, 06:43   #5 (permalink)
Project Coordinator
 
infinityloop's Avatar
 
Join Date: Dec 2004
Location: 127.0.0.1
Age: 28
Posts: 5,244
Thanks: 112
Thanked 83 Times in 55 Posts

Country:

My System

Default

sounds very interesting. i will have a look at it
__________________
regards
chris

MediaPortal Project Coordinator
Test Team Leader

Do not start to moan if something is not working as you want it to be.
Remember that MediaPortal is Open Source.
YOU can improve it!
infinityloop is online now   Reply With Quote
Old 2007-10-30, 08:37   #6 (permalink)
Portal Member
 
Join Date: Mar 2007
Age: 27
Posts: 38
Thanks: 0
Thanked 8 Times in 2 Posts

Country:


Default

Quote:
Originally Posted by iosub View Post
Hi

I will need something like
Line

20- if(....)
20+ return (if(----))


so I now that I have just to replace that line, and not the all .cs

SVN tools do that, compare the online .cs with yours and make the diff file

Hope this helps
Iosu

Isn't that the "nls.patch" file i put in patch.zip? I created it with TortoiseSVN by performing "Create Patch" operation.
ol263 is offline   Reply With Quote
Old 2007-10-30, 11:32   #7 (permalink)
Portal Member
 
Join Date: Apr 2006
Location: San Sebastian
Posts: 377
Thanks: 7
Thanked 14 Times in 10 Posts

My System

Default

Upsss I miss that, I'm going to check it

Thanks!
iosub is offline   Reply With Quote
Old 2007-10-30, 17:49   #8 (permalink)
Portal Member
 
Join Date: Apr 2007
Age: 32
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

VERY GOOD AND WELL ANTICIPATED FEATURE!

I cannot test it now, but am writing it down and promise to test ASAP.

Thank you for that!!
moti_r is offline   Reply With Quote
Old 2007-11-02, 17:05   #9 (permalink)
Portal Member
 
Join Date: Mar 2007
Age: 27
Posts: 38
Thanks: 0
Thanked 8 Times in 2 Posts

Country:


Default

I've updated the files. The Aspect Ratio is now available in the configuration and can be enabled/disabled/set to default for each section (DVD/Movies/TV).
ol263 is offline   Reply With Quote
Old 2007-11-03, 16:49   #10 (permalink)
Portal Member
 
Join Date: Aug 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

this sounds like, just what i wanted. thanks
gingertom is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New zoom mode: 4/3 -> 16/9 non-linear distortion mystic2k Improvement Suggestions 15 2007-11-08 22:50
strange stretching and flickering of text and UI in tvguide joostzilla General Support 0 2007-10-23 20:20
Stretching thumbnails when browsing mikael MediaPortal 1 Talk 1 2007-01-22 10:19
smart mode for viewing 4:3 as 16:9 dipunm Improvement Suggestions 6 2006-09-08 11:26
(linear) Editing of DVR-MS files simple and free suslik Tips and Tricks 0 2005-07-17 20:47


All times are GMT +1. The time now is 07:23.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Integrated by BBpixel ©2004-2008, jvbPlugin
Protected by Akismet Blog with WordPress