[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
Custom fonts for subtitles!
01-24-2008, 03:48 PM
Post: #1
Custom fonts for subtitles!
Using Lundman's guide to starting telnet on NMT, you can replace the fonts used for subtitles. Swapping \bin\arial.ttf with any truetype font will change their appearance. I'm using Bookman Antiquita, it looks so much better then Arial. 8)

You can also run your own custom PHP scripts by browsing to them with the stream command:

http://popcorn:8088/stream/file=/share/Scripts/filetest.php?cmd=echo Hello world

The PHP script is sending a shell command "echo Hello world" to the OS.

The .sh scripts in /mnt/syb8634/server are writable from Apache, so you may be able to make PHP scripts that will easily enable/disable telnet without removing Popcorn's HDD or messing with the first few steps in Lundman's wiki ( For those who are lazy or just don't want to remove the Popcorn HDD, but want telnet ;P ).

Might or might not be of interest, but someone out there might find it useful.

Edit; Some examples of how it looks on my PCH below.

Original PCH font:
[Image: PCH_Arial1.jpeg]

Modified PCH font:
[Image: PCH_Bookman1.jpeg]
Find all posts by this user
01-24-2008, 08:53 PM
Post: #2
 
Hell, now everybody can revive Comic Sans! :wink:


Since I havn't installed a hdd drive yet I'm unable to test myself, so here goes:

Do you need to rename the new ttf to arial.ttf, or is it just scripted somewhere to make use of the first encountered ttf file available in that directory?

(eg What happens if there are two or more fonts in the \bin directory?)

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
01-24-2008, 11:58 PM
Post: #3
 
It looks for arial.ttf. If it can't find it, it goes back to the main menu after showing the buffering screen.

Download Popcorn PHP Scripts

These are two scripts to make the process more painless. :twisted:

Telnet.php enables/disables telnet without removing the hard drive. Font.php swaps ( or restores ) the active font.

To use Telnet.php:
- Put Telnet.php on the Popcorn hard disk.
- Browse to it: http://popcorn:8088/stream/file=/share/Telnet.php
- Click Enable. It will say "Success, Telnet enabled".
- On the NMT: go to Setup -> NMT Applications.
- Stop myiHome server. Start it again, telnetd will start with it.

To use Font.php:
- First run the telnet script. It CHMODs all the fonts to 0777.
- Put Font.php and any fonts on the Popcorn hard disk.
- Edit Font.php and change the FONT_PATH to wherever your fonts are stored. The default is \Scripts\fonts.
- Browse: http://popcorn:8088/stream/file=/share/Scripts/Font.php
- It should list the fonts in your font path. Click on any font to install it, or click the restore button to return to the default font.

*I disclaim all responsibility in the event your NMT, PC or living space combusts as a result of using these scripts or the information included in this post. Use it at your own risk. :wink:
Find all posts by this user
01-25-2008, 12:16 AM
Post: #4
 
nice work gshock Smile

-----------------------------------------------------------------------------------------------------
Syabas Technology Inc. DBA Popcornhour
Find all posts by this user
01-25-2008, 12:22 AM
Post: #5
 
Big ups for the ghost in the shell. Smile

First thing I did was d/l some hd ghost Smile
Find all posts by this user
01-25-2008, 12:37 AM
Post: #6
 
ok on last beta firmware it wont work anymore i think i have to take a look on the change syabas already said something that they will close such holes hehehe but shouldnt be an problem to get it back up Smile

werner

-----------------------------------------------------------------------------------------------------
Syabas Technology Inc. DBA Popcornhour
Find all posts by this user
01-25-2008, 01:03 AM
Post: #7
 
Make sure http://popcorn/ is the IP address of your player. ie. http://192.168.1.107:8088/stream/file=/share/Telnet.php

NMT Apps needs to be installed and MyiHome needs to be running for this to work ( although it's always running, by default ).
Find all posts by this user
01-25-2008, 01:05 AM
Post: #8
 
Nice, that's a much nicer way to start adding our own features.
Visit this user's website Find all posts by this user
01-25-2008, 01:12 AM
Post: #9
 
yes and it tells me telnet is enabled but telnet dont reacts i have skills Smile but didnt look deeper what the changed Smile maybe have time to look tommorow.

werner

-----------------------------------------------------------------------------------------------------
Syabas Technology Inc. DBA Popcornhour
Find all posts by this user
01-25-2008, 05:15 AM
Post: #10
 
Thanks this opens up some new possibilities. I'd personally like the server script backed up to share before overwriting it.,

Also iI would make sense of include the b,i, and, z varieties of the family too, otherwise anything else that uses libfreetype could look odd.

Martin
Find all posts by this user
01-25-2008, 02:46 PM
Post: #11
 
ok looked into it the telnet binary is removed Smile so should be easy to open it again when we include the binary so gshock can you change your php script when the telnetd binary is stored on the hdd where the php file is located Smile

TIA Werner

-----------------------------------------------------------------------------------------------------
Syabas Technology Inc. DBA Popcornhour
Find all posts by this user
01-25-2008, 05:43 PM
Post: #12
 
I suggest changing /usr/sbin/telnet to

. /share/start_app.sh

or something similar. At least that's what I did to test this (don't forget the space between the . and the slash. Then you can control everything.

Martin
Find all posts by this user
01-25-2008, 07:38 PM
Post: #13
 
Try this one, Werner.

Download Popcorn PHP Scripts v2

Start at:
http://popcorn:8088/stream/file=/share/PopcornDev/Main.php

This is meant to be viewed from the web browser on the Popcorn/NMT. You can access it from a networked computer, but it will be missing images etc. It runs /bin/busybox telnetd instead of /usr/sbin/telnetd, so hopefully it will be more compatible with the new firmware.

Here's how it looks from the Popcorn:
[Image: fontmenu1.jpeg]
[Image: fontmenu2.jpeg]

Known issues:
- Tables are ugly. :evil:
- You have to manually start myiHome after telnet is installed ( it turns off myiHome automatically, but doesn't turn it back on again after installation finishes. ).
Find all posts by this user
01-25-2008, 09:27 PM
Post: #14
 
hmm dont works for me it tells me Error: ServerScript.php not found.

werner

-----------------------------------------------------------------------------------------------------
Syabas Technology Inc. DBA Popcornhour
Find all posts by this user
01-25-2008, 10:02 PM
Post: #15
 
Made a few changes and re-uploaded it, same link as above.
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Deploy custom app/static website calbo 2 1,312 07-07-2011 08:56 AM
Last Post: calbo
  Harmony 555 + subtitles monkfeesh 1 1,046 02-13-2011 08:14 PM
Last Post: lala
  Is it possible to display custom osd messages while playing a movie? gcf 2 1,570 02-12-2011 01:36 PM
Last Post: dc11ab
  txt2srt - convert subtitles from common .txt formats elephant 3 3,603 11-24-2010 06:02 AM
Last Post: ayeah
  Custom Index link (href) help wanted pbusardo 7 8,484 09-23-2010 03:32 AM
Last Post: pbusardo
  App for downloading subtitles? juanmanuelsanchez 7 3,193 06-29-2010 09:46 AM
Last Post: Zigismund
  Custom OSD message while playing a movie quetzal 2 1,626 02-26-2010 05:10 AM
Last Post: garp99
  Opening a movie from a custom-made webpage pakobagur 2 1,311 11-30-2009 10:53 PM
Last Post: pakobagur
  Custom menu: how to get rid of svu 3 1,612 10-21-2009 12:28 AM
Last Post: Specter
  DLNA and SRT subtitles kruikenzeiker 0 5,556 09-01-2009 11:23 AM
Last Post: kruikenzeiker

Forum Jump: