Aspect ratio fix for SH4

Information, questions and any other thing related with A series.

tom_van
Official SamyGO Developer
Posts: 146
Joined: Tue Jan 19, 2010 10:44 am

Aspect ratio fix for SH4

Post by tom_van »

Edit: Wiki page finally done. No more updates here.

Good news for owners of 'A' models with T-RBYDEU1013 firmware LE40A756, LE46A756, LE46A856, LE52A856, LE46A956, and LE55A956

Version 1.2 of aspect ratio fix is here:
http://sourceforge.net/projects/samygo/ ... p/download


What is changed
WiseLink video player has 3 new items for fixed aspect ratios in Tools menu:
4:3, 16:9 (also fullscreen), 2.21:1

New in version 1.1: For MPEG2 source aspect ratio flag in sequence header (01b3)
is taken into account in auto fit mode.
Otherwise if PAL resolution (720x576) is detected in Auto fit mode, aspect ratio 4:3
is used.

New in version 1.2: Fixed an error which prevented scaling of some video
formats (e.g. H264 in MPEG TS container).
Thanks to marcjero for the idea.


Known problems
elfpatcher bundled with version 1.1 had serious bug. After in-memory patching it left
WiseLink broken and any use of it triggered TV reboot.
Don't use dynamic patching with version 1.1
The same version integrated in SamyGO Firmware Patcher is ok.


Warranty
None as usual. Do it at your own risk.


Applying permanently
SamyGO Firmware Patcher version 0.26 integrates arfix-sh 1.2
http://sourceforge.net/projects/samygo/ ... y/download

Older version of SamyGO Firmware Patcher from version 0.21 on integrated arfix-sh 1.1
Use patcher to modify original T-RBYDEUC-1013.1 firmware and flash standard way.

SamyGO-All-Extensions-v0.03.6-r12-for-T-RBYDEUC-201103282318.zip runs arfix-sh 1.2 from init script
http://sourceforge.net/projects/samygo/ ... p/download


Applying manually
For safety of first tests I prefer dynamic patching in TV memory instead
of permanent firmware patch.
I recommend you to enable telnet/ssh access first although any way to start
a shell script inside TV is sufficient.

Unpack zip content to an USB flash or to a network share and insert/mount
it to TV. Change to patch directory and run arfix.sh

Code: Select all

# cd /dtv/usb/sdb1/T-RBYDEUC-1013.1-arfix_1.2/
# ls -l
-rw-r--r--    1 root     0            2673 Mar 27  2011 README
-rw-r--r--    1 root     0            2960 Mar 27  2011 T-RBYDEUC-1013.1-arfix_1.2.elfpatch
-rwxr-xr-x    1 root     0              80 Mar 27  2011 arfix.sh
-rwxr-xr-x    1 root     0           55864 Mar 27  2011 elfpatcher
# ./arfix.sh
Reading patches from file T-RBYDEUC-1013.1-arfix_1.2.elfpatch
Checking .checkVersion 16 bytes at 0x1508978
Writing .patch1 932 bytes at 0x056f43c
Writing .patch4 12 bytes at 0x073d334
Writing .patch7 4 bytes at 0x0740320
Writing .patch6 4 bytes at 0x0740470
Writing .patch5 4 bytes at 0x0b04e8c
Writing .patch2 108 bytes at 0x0d16520
Writing .patch3 180 bytes at 0x0d167a0
#
Changes will be lost after exeDSP restart (TV off/on).


Source
http://samygo.svn.sourceforge.net/viewv ... /arfix-sh/
Last edited by tom_van on Wed Jul 13, 2011 8:47 am, edited 13 times in total.

User avatar
erdem_ua
SamyGO Admin
Posts: 3112
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: Aspect ratio fix for SH4

Post by erdem_ua »

Really good news. Thanks.

sorcerer1
Official SamyGO Developer
Posts: 46
Joined: Wed Jan 13, 2010 5:16 pm

Re: Aspect ratio fix for SH4

Post by sorcerer1 »

tom_van, could you please provide source code for the elfpatch utility? Using ptrace() is cool.

tom_van
Official SamyGO Developer
Posts: 146
Joined: Tue Jan 19, 2010 10:44 am

Re: Aspect ratio fix for SH4

Post by tom_van »

Yes I want to do so for both elfpatcher and arfix. Just need some time to clean up the source and integrate it to oe.
elfpatcher is ment to be an universal tool and may be usefull for arm or elsewhere.
Please report how arfix works on other T-RBYDEUC models than LE46A965, which I'm testing on.

tom_van
Official SamyGO Developer
Posts: 146
Joined: Tue Jan 19, 2010 10:44 am

Re: Aspect ratio fix for SH4

Post by tom_van »

arfix-sh committed to svn, oe branch 0-0-1

Erdem, master of patches, wouldn't you mind if I upload T-RBYDEUC-1013.1-arfix_1.0.tar.gz to "SamyGO Firmware Patch Scripts" directory?
I'd need results from at least one tester before I ask you for integration of patch to your script.
So far it seems like everybody with T-RBYDEUC firmware is happy watching distorted video... :(

User avatar
erdem_ua
SamyGO Admin
Posts: 3112
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: Aspect ratio fix for SH4

Post by erdem_ua »

Okey for me but I prefer put package in branding.
Rename it like:
SamyGO T-RBYDEUC-1013.1 VideoARFix v1.0.tar.gz

And sure that package have sources & documentation in it.
Thanks.

tom_van
Official SamyGO Developer
Posts: 146
Joined: Tue Jan 19, 2010 10:44 am

Re: Aspect ratio fix for SH4

Post by tom_van »

Uploaded to project files and first post of this topic edited to reflect changes. Testers wanted!

tom_van
Official SamyGO Developer
Posts: 146
Joined: Tue Jan 19, 2010 10:44 am

Re: Aspect ratio fix for SH4

Post by tom_van »

Edited first post to reflect version 1.1
New: auto select aspect ratio for MPEG2.

352 downloads from SamyGO files and nobody has anything to report?
Please write if you tested the patch on LExxA756 or A856

User avatar
erdem_ua
SamyGO Admin
Posts: 3112
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: Aspect ratio fix for SH4

Post by erdem_ua »

tom_van wrote:Edited first post to reflect version 1.1
New: auto select aspect ratio for MPEG2.

352 downloads from SamyGO files and nobody has anything to report?
Please write if you tested the patch on LExxA756 or A856
If there is no bug report, that means 2 thing.
1. You make great job, there is no debug in it.
2. Users cannot run your script and feeling embarrassment to tell this :D
I bet for 1.

tom_van
Official SamyGO Developer
Posts: 146
Joined: Tue Jan 19, 2010 10:44 am

Re: Aspect ratio fix for SH4

Post by tom_van »

I wish your bet was right. At least I've got the works-for-me state.
erdem_ua wrote: 2. Users cannot run your script and feeling embarrassment to tell this :D
Well, let's discuss integrating the fix to your all-in-one superpatcher.
I can send you hex old/new data (about 1.2kbyte) or xdelta for exeDSP.
I hope it should be enough as I noticed that FAT/RFS injection is no problem for latest versions of patcher.

Post Reply

Return to “A Series”