Page 1 of 5

Aspect ratio fix for SH4

Posted: Sat Feb 13, 2010 2:49 pm
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/

Re: Aspect ratio fix for SH4

Posted: Sat Feb 13, 2010 9:43 pm
by erdem_ua
Really good news. Thanks.

Re: Aspect ratio fix for SH4

Posted: Mon Feb 15, 2010 10:39 am
by sorcerer1
tom_van, could you please provide source code for the elfpatch utility? Using ptrace() is cool.

Re: Aspect ratio fix for SH4

Posted: Mon Feb 15, 2010 11:03 am
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.

Re: Aspect ratio fix for SH4

Posted: Sat Feb 20, 2010 3:09 pm
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... :(

Re: Aspect ratio fix for SH4

Posted: Sat Feb 20, 2010 4:01 pm
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.

Re: Aspect ratio fix for SH4

Posted: Sun Feb 21, 2010 11:09 am
by tom_van
Uploaded to project files and first post of this topic edited to reflect changes. Testers wanted!

Re: Aspect ratio fix for SH4

Posted: Mon Mar 01, 2010 7:01 pm
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

Re: Aspect ratio fix for SH4

Posted: Mon Mar 01, 2010 9:47 pm
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.

Re: Aspect ratio fix for SH4

Posted: Tue Mar 02, 2010 7:45 am
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.