Video player aspect ratio fix (SH4)

From SamyGO
Revision as of 11:09, 30 March 2011 by Tom van (talk | contribs) (Applying permanently to television firmware)
Jump to: navigation, search

WiseLink player is a component of television firmware. It can be used for browsing and playback of digital media from USB disk or network server. It is related neither to DVB-T television show nor HDMI playback.

On 'A' series models with T-RBYDEUC firmware (LE40A756, LE46A756, LE46A856, LE52A856, LE46A956 and LE55A956) WiseLink player has no interface to set desired aspect ratio for playback (although aspect ratio can be set in other modes). DAR (display aspect ratio) information from headers in video file is not honored at all. Moreover an evident bug prevents scaling of some type of video files in some circumstances. Samsung unfortunately refused complaints and left the problems without fixing.

arfix-sh is a patch fixing some problems with aspect ratio in WiseLink playback. It is a binary patch, available only for firmware T-RBYDEU1013 (T-RBYDEUC-1013.1)

What arfix-sh does?

WiseLink video player has 3 new items for fixed aspect ratios in Tools menu: 4:3, 16:9 (also use as 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 in original WiseLink code, which prevented scaling of some video formats (e.g. H264 in MPEG TS container).

Applying permanently to television firmware

Use SamyGO Firmware Patcher Version 0.26 integrates arfix-sh 1.2

Run patcher to modify original T-RBYDEUC-1013.1 firmware and flash standard way.

Older version of SamyGO Firmware Patcher from version 0.21 integrated arfix-sh 1.1

Dynamic in-memory patching

If you have access to linux console in your tv, download arfix-sh 1.2, unpack zip content to an USB flash or to a network share and insert/mount it to TV. Change to patch directory and run

  # 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
  -rwxr-xr-x    1 root     0           55864 Mar 27  2011 elfpatcher
  # ./
  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).

A more comfortable alternative is SamyGO Extensions Pack.

Download and install SamyGO-All-Extensions-v0.03.6-r12-for-T-RBYDEUC-201103282318

This version contains arfix-sh 1.2 and run it at the boot time.

See also discussion. Source code of arfix-sh is available in svn