[App] libText D/E/F/H

Here are software that related with Samsung F series TVs.
Please don't create any new topic here unless you have software to post/release.

zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

[App] libText D/E/F/H

Post by zoelechat »

Lib shows any text at any place for any time.
capt3.jpg
capt1.jpg
capt2.jpg
Usage:
  • First install latest samyGOso as usual, if needed.
  • Extract attached archive and copy contents of out- folder (libText.so and all fontX.raw) to /mtd_rwcommon
  • Execute

    Code: Select all

    samyGOso -d -A -B -l /mtd_rwcommon/libText.so ARG[S]
Usable args:
Common:
  • TEXT:"your text" - Text to display, use '\' for linefeed (e.g. TEXT:"line1\line2\line3" == TEXT:"$(echo -e "line1\nline2\nline3")" )
  • FILE:/full/path/to/textfile - Display text from file (at least TEXT or FILE are mandatory args)
  • FONT:0-4 - Select font to use
    • FONT:0 - TV built-in "default" font, see first screenshot above (full UTF-8 support).
    • FONT:1-4 - Bitmap fonts, monospace, ASCII (+Latin-1) only. Overview of usable ones (for now):
      SpoilerShow
      FONT:1 (default, 10x20px)
      font1.jpg
      FONT:2 (18x36px)
      font2.jpg
      FONT:3 (50x50px, capital letters only)
      font3.jpg
      FONT:4 (32x32px, capital letters only)
      font4.jpg
  • CENTER:1-9 - Where to display text on screen (look at your numpad, default is 7=upper-left). Only 1 or 7 accepted for FONT:0.
  • TIMEOUT:seconds - How long to display text (default is 0=unspecified=unlimited)
  • COLOR:0xAARRGGBB - Specify font color (default: 0xFFFFFFFF=white=as bitmap). 0xAA defines transparency on FONT:0 (0xFF=plain).
  • NOCLEAR - Do not clear previous text/OSD before displaying another (and do not wipe screen on timeout, except on SCROLL or FONT:0)
  • SCROLL - Scroll down to the end of text if it overlaps screen (mostly for text file, else only the beginning will be shown)
  • WIPE - Clear screen from anything prior (to be used alone, e.g. if some text had previously been displayed without timeout)
  • FB - Use TV "other" framebuffer. TV owns 2 layers, one is mostly used for guide/smarthub/mediaP, other one (lib default) for info/channelList/source... It depends on which TV OSD you prefer to (temporarily) erase to display your own text instead :)
Specific to FONT:0
  • SIZE:pixels - Font size in pixels.
  • POSX:pixels - Text left corner horizontal position.
  • POSY:pixels - Text up corner vertical postion (beware that depending on TVs, OSD is either 720p or 1080p, check log to know).
  • STYLE:n - Font style. 0=Normal 1=Italic 2=Bold 4=Reverse italic 8=Black outlined. Can be a sum of values if more than one style is expected at once (e.g. bold+italic+outlined = 1+2+8 = 11).
Specific to FONT:1-4
  • FONTPATH:/full/path/to - Path where font bitmaps are located (default is /mtd_rwcommon, font1-4.raw files HAVE to be somewhere)
  • NOALPHA - Disable font transparency (=mostly disable smoothing on FONT:1/2)
Logfile is written to /dtv/Text.log

Sample usages (from screenshots above):

Code: Select all

samyGOso -d -A -B -l /mtd_rwcommon/libText.so FILE:/dtv/ScreenShot.log SIZE:24 COLOR:0xA010F010 SCROLL STYLE:11 TIMEOUT:5 FONT:0
samyGOso -d -A -B -l /mtd_rwcommon/libText.so FILE:/dtv/ScreenShot.log SCROLL CENTER:7 COLOR:0xf0f010
samyGOso -d -A -B -l /mtd_rwcommon/libText.so TEXT:'WELCOME TO SAMYGO !' FONT:3 CENTER:5
*Changelog:

Code: Select all

28/6/2015
v0.1.3 - Added non-bitmap built-in TV font (FONT:0)
22/6/2015
v0.1.0 - First public release
You do not have the required permissions to view the files attached to this post.
I do NOT receive any PM. Please use forum.
User avatar
fluffi444
SamyGO Project Donor
Posts: 568
Joined: Fri Apr 05, 2013 9:55 pm
Location: Germany

Re: [App] libText D/E/F/H

Post by fluffi444 »

Works very good here. I use FB option because I seams that my TV don't like text on the same framebuffer as SmartHub.

A bit offtopic: Do you know which framebuffer libAlert is using? Maybe this is the actual problem of my freezing SmartHub (we talked about this via PM). Not using ChanInfo helped but not solved this SmartHub freezing (from time to time) completely. Now I do not use libAlert and only libText on second framebuffer (option FB)... Time will tell me/us if this helps...
It's also possible that I'm completly wrong with this. Need some long term tests now with TV ON for a longer time.

"off topic" off :-)
Do you know were to find some more fonts? Tried to find some in raw (bitmap fonts, ASCII format) but without success.
TV: UE40ES7000 @ UE40ES8090 - T-ECPDEUC-2022.0 // SamyGO
CI+: Unicam EVO 4 with HD+ (HD02) @ Pacific 4.60
NET: Samba: PC
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libText D/E/F/H

Post by zoelechat »

fluffi444 wrote:Works very good here. I use FB option because I seams that my TV don't like text on the same framebuffer as SmartHub.
Whatever is frame buffer, lib erase its content anyway, so you might often notice already displayed content "don't like" :)
That's why you should always use the right (=unused) FB at the right moment, depending on current OSD (if any).
fluffi444 wrote:A bit offtopic: Do you know which framebuffer libAlert is using?
IIRC it's first one (=with FB option in that version)
fluffi444 wrote:Do you know were to find some more fonts? Tried to find some in raw (bitmap fonts, ASCII format) but without success.
You can already check new version in test area (to be released soon), it has one more non-bitmap font (FONT:0) you can size and style as much as you want. Otherwise, FONT:3/4 I found on Google, and 1/2 I created myself using "Codehead's Bitmap Font Generator", but in any case they still need some conversion through an (unreleased) lib to be suitable to libText then (and some additional hidden args). I may explain full procedure at some point ;) .
I do NOT receive any PM. Please use forum.
User avatar
fluffi444
SamyGO Project Donor
Posts: 568
Joined: Fri Apr 05, 2013 9:55 pm
Location: Germany

Re: [App] libText D/E/F/H

Post by fluffi444 »

Have an issue - After TV runs for a while I cannot inject an text anymore

Code: Select all

root@tv:/mtd_rwcommon $ sh -x /mnt/etc/init.d/99_99_zzzAlert.init start
+ sleep 2
+ . /dtv/SGO.env
+ SYSROOT=/mnt
+ MOUNT_PATH=/dtv/usb/sdb
+ export MOD_DIR=/mnt/lib/modules/2.6.35.13
+ export TMPDIR=/dtv
+ export HOME=/mtd_wiselink
+ export SMB_CONF_PATH=/mnt/etc/samba/smb.conf
+ LOGFILE=/mnt/samygo.log
+ LD_LIBRARY_PATH=/mnt/opt/privateer/lib:/mnt/opt/privateer/usr/lib:/mnt/lib:/mnt/usr/lib:/mnt/lib:/mtd_cmmlib/RECOGNITION_LIB:/lib:/mtd_cmmlib/lib:/mtd_cmmlib/Comp_LIB:/mtd_exe/lib:/mtd_cmmlib/YWidget_LIB:/mtd_contents:/mtd_cmmlib/InfoLink/lib/plugin/Static:/mtd_appdata/moip:/mtd_cmmlib/GAME_LIB:/mtd_appdata/gemstar:/mtd_cmmlib/DRM_LIB:/Java/lib:/mtd_cmmlib/InfoLink/lib:/dtv:/mtd_appext/WidgetEngine:/mtd_rocommon/Webkit:/mtd_appext/Webkit:/mtd_exe/WebServerApp/bin:/mtd_appdata/Runtime/lib/CairoShadow:/mtd_appdata/Runtime/lib:/mtd_appdata/Runtime/XorgLibs:/mtd_appdata/yahoo:/mtd_appdata/yahoo/lib:/mtd_cmmlib/CM_LIB:/mtd_appext/OIPF/lib:/mtd_exe/OIPF/lib
+ PATH=/mnt/opt/privateer/sbin:/mnt/opt/privateer/bin:/mnt/opt/privateer/usr/bin:/mnt/opt/privateer/usr/sbin:/mnt/sbin:/mnt/bin:/mnt/usr/bin:/mnt/usr/sbin:/mnt/bin:/usr/sbin:/usr/bin:/bin:/sbin:/etc/Scripts:/util:/mtd_appdata/Runtime/bin
+ export ENV=/dtv/.ashrc
+ export FRAMEBUFFER=/dev/sam/fb0
+ export DISTROOT=/mnt/opt/privateer
+ SODIR=/mnt/opt/privateer/usr/libso
+ SAMYGOSODIR=/mnt/opt/privateer/usr/bin
+ TEXT=WELCOME TO SAMYGO!
+ stop_bootloop
+ echo checking /dtv/usb/sda1
checking /dtv/usb/sda1
+ [ -e /dtv/usb/sda1/STOP ]
+ echo checking /dtv/usb/sdb
checking /dtv/usb/sdb
+ [ -e /dtv/usb/sdb/STOP ]
+ [  ]
+ /mnt/opt/privateer/usr/bin/samyGOso -d -A -B -l /mnt/opt/privateer/usr/libso/libText.so TEXT:WELCOME TO SAMYGO! FONTPATH:/mnt/opt/privateer/usr/libso COLOR:0xA0FFFF00 FONT:0 SIZE:35 POSX:20 POSY:1030 STYLE:10 TIMEOUT:60
samyGOso v1.2.4 (c) bugficks 2013, sectroyer 2014
Injecting '/mnt/opt/privateer/usr/libso/libText.so' resident: '0'
mprotect: 0x41bb9c80
Can't open /proc/1568240239/maps for reading
cannot read memory map
find_linker pid: 1568240239, error!
Failed.
root@tv:/mtd_rwcommon $
After fresh reboot everything works as it should. But some minutes later it looks that something breaks..

Any Idea?

EDIT
Looks like that also (all?) other libs reacting like this.
Also toolsmenu (for instance) and others are showing this error:

Code: Select all

+ samyGOso -A -B -r -l /mnt/opt/privateer/usr/libso/libToolsMenu.so
samyGOso v1.2.4 (c) bugficks 2013, sectroyer 2014
Injecting '/mnt/opt/privateer/usr/libso/libToolsMenu.so' resident: '1'
Can't open /proc/1568240239/maps for reading
cannot read memory map
find_linker pid: 1568240239, error!
Failed.
TV: UE40ES7000 @ UE40ES8090 - T-ECPDEUC-2022.0 // SamyGO
CI+: Unicam EVO 4 with HD+ (HD02) @ Pacific 4.60
NET: Samba: PC
User avatar
fluffi444
SamyGO Project Donor
Posts: 568
Joined: Fri Apr 05, 2013 9:55 pm
Location: Germany

Re: [App] libText D/E/F/H

Post by fluffi444 »

fluffi444 wrote:Have an issue - After TV runs for a while I cannot inject an text anymore (...)
Looks like that also (all?) other libs reacting like this.
Also toolsmenu (for instance) and others are showing this error:

Code: Select all

+ samyGOso -A -B -r -l /mnt/opt/privateer/usr/libso/libToolsMenu.so
samyGOso v1.2.4 (c) bugficks 2013, sectroyer 2014
Injecting '/mnt/opt/privateer/usr/libso/libToolsMenu.so' resident: '1'
Can't open /proc/1568240239/maps for reading
cannot read memory map
find_linker pid: 1568240239, error!
Failed.
Only for the records:
Looks like that SamyGOso V1.2.5 (viewtopic.php?f=63&t=6186) solves this on my TV.
BIg thx for great support here everytime.
TV: UE40ES7000 @ UE40ES8090 - T-ECPDEUC-2022.0 // SamyGO
CI+: Unicam EVO 4 with HD+ (HD02) @ Pacific 4.60
NET: Samba: PC
astrakid
SamyGO Project Donor
Posts: 84
Joined: Mon Sep 14, 2015 3:19 pm

Re: [App] libText D/E/F/H

Post by astrakid »

i tried this lib right now and it doesn't work on h6270:

Code: Select all

[Text] SamyGO D/E/F/H libText v0.1.3 - (c) zoelechat 2015
[Text] _Znwj [0x158a184].
[Text] _ZN4SCGCC2El [0x2616fc8].
[Text] _ZN8SCBaseGC6CreateEv [0x26038f4].
[Text] _ZN4SCGC7DestroyEv [0x2617438].
[Text] _ZN4SCGCD2Ev [0x2617010].
[Text] dlsym '_ZN8SCBaseGC20m_GetFrameBufferInfoEP10shared_ptrIN6Shadow7IBufferE14FastLockPolicyEPlS6_' failed.
[Text] dlsym '_ZN8SCBaseGC20m_GetFrameBufferInfoEPN6Shadow9BasicType10shared_ptrINS0_7IBufferENS1_10LockPolicyEEEPlS7_' failed.
[Text] _ZN8SCBaseGC20m_GetFrameBufferInfoEPPN6Shadow7IBufferEPlS4_ [0x260a2f8].
[Text] _ZN4SCGC5ClearEPN6Shadow9BasicType4RectE [0x2606ffc].
[Text] _ZN8SCBaseGC5FlushEPN6Shadow9BasicType4RectE [0x2603208].
[Text] _ZN9PCWString7ConvertEPtPKciiPi [0x158bdfc].
[Text] _ZN4SCGC8DrawTextEllPtl [0x260997c].
[Text] _ZN4SCGC11SetFontSizeEl [0x2609ce0].
[Text] _ZN4SCGC7SetFontEP6SCFont [0x2607070].
[Text] _ZN4SCGC12SetFontStyleEl [0x26076b8].
[Text] _ZN4SCGC10SetFgColorEN6Shadow5ColorE [0x4f183d8].
[Text] _ZN14CUSBAppResUtil14GetDefaultFontEv [0x3897918].
[Text] lib_init, >>>
[Text] No text to show, exiting...
[Text] <<< lib_deinit
i called the library by executing

Code: Select all

samyGOso -d -A -B -l /mnt/opt/privateer/usr/bin/libText/libText.so CENTER:"WELCOME TO SAMYGO" FONT:3

any idea?
kind regards,
astrakid
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libText D/E/F/H

Post by zoelechat »

astrakid wrote:

Code: Select all

[Text] No text to show, exiting...
Wrong usage syntax, check first post :)
I do NOT receive any PM. Please use forum.
astrakid
SamyGO Project Donor
Posts: 84
Joined: Mon Sep 14, 2015 3:19 pm

Re: [App] libText D/E/F/H

Post by astrakid »

Couldn't retest yet but i See what you mean...
Thanks for Opening my eyes!
Regards
Astrakid
astrakid
SamyGO Project Donor
Posts: 84
Joined: Mon Sep 14, 2015 3:19 pm

Re: [App] libText D/E/F/H

Post by astrakid »

OK, works fine now.
But when using

Code: Select all

samyGOso -d -A -B -l /mtd_rwcommon/libText.so  TEXT:"ANRUF VON\CBD GDH\MOBIL" FONT:0 TIMEOUT:2 COLOR:0xFFFFFFFF SIZE:12
samygo seems to crash - it is not reacting on my remote anymore, network is down as well. but current tv-channel is still playing without issues.
only solution is to take away power.

edit: this happens as well when using other parameters (posx and posy).

regards,
astrakid
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libText D/E/F/H

Post by zoelechat »

mmmh no real idea, maybe framebuffer overflow, shouldn't happen but who knows... Is text shown before crash or not at all?
Try to check using another font (not 0) if issue remains, and also FB option.
I do NOT receive any PM. Please use forum.

Post Reply

Return to “[F] Software”