View unanswered posts | View active topics It is currently Sat May 18, 2013 6:55 am



Reply to topic  [ 9 posts ] 
 RSS: How to/Tips and Tricks (PlayonX) 
Author Message

Joined: Sat Jul 03, 2010 7:47 pm
Posts: 14
Post RSS: How to/Tips and Tricks (PlayonX)
been playing around with RSS scripts.. and want to share my findings..

So if you got some tips/tricks post them here...

FIRST the basics.. how to build a menu.. (using menu.rss = main menu)
The Menu file starts with values for the layout (line 3)

EXAMPLE:
<?xml version="1.0"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<mediaDisplay name="photoView" showHeader="yes" rowCount="3" columnCount="2" drawItemText="no" menuBorderColor="0:0:0" sideColorBottom="0:0:0" sideColorTop="0:0:0" itemImageXPC="5" itemOffsetXPC="25" backgroundColor="0:0:0" sliding="yes"
______________________________________________________________
This example: photoview with a header, 3 rows and 2 colums.
the colors are RGB (0:0:0 = black)(http://www.colorschemer.com/online.html)
The itemOffsetXPC value used for the size of the items (high value=small item-pictures)
______________________________________________________________

idleImageXPC="88"
idleImageYPC="12" idleImageWidthPC="4"idleImageHeightPC="13">
<idleImage> /home/scripts/trt/loading/load1.png </idleImage>
<idleImage> /home/scripts/trt/loading/load2.png </idleImage>

Next the Idle-Image this is the image(s) you see when you select a item (loading) what in this example does not work?
______________________________________________________________

<backgroundDisplay><image offsetXPC=0 offsetYPC=10 widthPC=100 heightPC=100>/home/scripts/trt/menu.jpg</image></backgroundDisplay>

Then the background..
The offsetXPC/YPC value is used for possioning X-horizontal (0-100= left to right) Y-vertical (0-100= top to bottom)
and widthPC/heightPC for image size (this case 100%) then path to the backgroundimage..
________________________________________________________________
<image offsetXPC=2 offsetYPC=2.8 widthPC=90 heightPC=10> /home/scripts/trt/top.jpg </image>
<text offsetXPC=10 offsetYPC=7 widthPC=35 heightPC=10 fontSize=30 backgroundColor=-1:-1:-1 foregroundColor=255:255:255>Internet Media</text>
</mediaDisplay>
<channel>

Next a image for the top and a Title text..
Again offset for possitioning X Horizontal Y vertical and
widthPC/heightPC for image size followed by the path to image.
The the Title text same again here offset and size (length).. fontsize and color (foregroundcolor) and the Text (Internet Media)

************************************************************
___________________________________________________________

So now we got a custom menu next adding the Items...
This can be a link to a exsiting RSS for example youtube..

<item>
<title>Youtube</title>
<link>/home/scripts/Youtube2/index.rss</link>
<media:thumbnail url="/home/scripts/trt/Youtube.jpg" width="120" height="120" />
</item>

or to a sub-menu (new layout)

<item>
<title>My Favorite Feeds</title>
<link>/home/scripts/trt/menu.rss</link>
<media:thumbnail url="/home/scripts/trt/rockit.jpg"/>
<mediaDisplay name="photoView" showHeader="yes" rowCount="4" columnCount="3" drawItemText="no" menuBorderColor="0:0:0" sideColorBottom="0:0:0" sideColorTop="0:0:0" itemImageXPC="5" itemOffsetXPC="25" backgroundColor="0:0:0" sliding="yes" idleImageXPC="88"
idleImageYPC="2" idleImageWidthPC="12"idleImageHeightPC="28">
<idleImage> /home/scripts/trt/loading/load1.png </idleImage>
<idleImage> /home/scripts/trt/loading/load2.png </idleImage>
<backgroundDisplay><image offsetXPC=0 offsetYPC=10 widthPC=100 heightPC=100>/home/scripts/trt/Simpsons.jpg</image></backgroundDisplay>
</mediaDisplay>
</item>

or to a Feed main page (again with new layout)

<item>
<title>The Hak5 Show</title>
<link>http://revision3.com/hak5/feed/MP4-High-Definition</link>
<media:thumbnail url="http://bitcast-a.bitgravity.com/revision3/images/shows/hak5/hak5.jpg" width="120" height="120" />
<mediaDisplay name="photoView" showHeader="yes" rowCount="4" columnCount="3" drawItemText="no" menuBorderColor="0:0:0" sideColorBottom="0:0:0" sideColorTop="0:0:0" itemImageXPC="10" itemOffsetXPC="20" backgroundColor="0:0:0" sliding="yes" idleImageXPC="88"
idleImageYPC="2" idleImageWidthPC="8"idleImageHeightPC="18">
<idleImage> /home/scripts/trt/loading/load1.png </idleImage>
<idleImage> /home/scripts/trt/loading/load2.png </idleImage>
<backgroundDisplay><image offsetXPC=0 offsetYPC=10 widthPC=100 heightPC=100>/home/scripts/trt/hak5bg.jpg</image></backgroundDisplay>
</mediaDisplay>
</item>

and for example a pod-cast (this example works but not all feeds work?!)

<item>
<title>Hardware Info TV</title>
<link>http://www.hardware.info/nl-NL/rss/podcast_video.xml?format=xml</link>
<media:thumbnail url="/home/scripts/trt/hwi.jpg" width="120" height="120" />
<mediaDisplay name="photoView" showHeader="yes" rowCount="4" columnCount="3" drawItemText="no" menuBorderColor="0:0:0" sideColorBottom="0:0:0" sideColorTop="0:0:0" itemImageXPC="10" itemOffsetXPC="20" backgroundColor="0:0:0" sliding="yes" idleImageXPC="88"
idleImageYPC="2" idleImageWidthPC="12"idleImageHeightPC="28">
<idleImage> /home/scripts/trt/loading/load1.png </idleImage>
<idleImage> /home/scripts/trt/loading/load2.png </idleImage>
<backgroundDisplay><image offsetXPC=0 offsetYPC=10 widthPC=100 heightPC=100>/home/scripts/trt/hak5bg.jpg</image></backgroundDisplay>
</mediaDisplay>
</item>

</channel>
</rss>

________________________________________________________________
So now we got a mainmenu with a link to a sub-menu... where we can link to feeds..


Attachments:
File comment: some example pics
example_pics.zip [39.09 KiB]
Downloaded 104 times
Sun Feb 19, 2012 11:33 pm
Profile

Joined: Sun Oct 31, 2010 4:48 pm
Posts: 1382
Location: Manchester, UK
Post Re: RSS: How to/Tips and Tricks (PlayonX)
Thanks - it's made a few things a lot more clear :D

_________________

Playon HD Mini PV73200+ Firmware v7.4.6 r7317 (Modified)
YAMJ v2.9-Snapshot r3416
YAYMan r0.99.99.24
MediaInfo CLI v0.7.61
Buffalo Linkstation 2TB Mirrored NAS
WD My World Book II 1TB Mirrored NAS
Wired 1GB LAN


Mon Feb 20, 2012 12:26 am
Profile

Joined: Sat Jul 03, 2010 7:47 pm
Posts: 14
Post Re: RSS: How to/Tips and Tricks (PlayonX)
So now some more about Linking to content... (in RSS/XML file)

AGAIN TIPS/TRICKS ARE WELCOME!!

___________________________________________________
EXAMPLE:
<title>The Hak5 Show</title>
<link>http://revision3.com/hak5/feed/MP4-High-Definition</link>

This link points to a folder containing the XML info..
_______________________________________________________
EXAMPLE:
<link>http://www.hardware.info/nl-NL/rss/podcast_video.xml?format=xml</link>
<link>/home/scripts/xLive/xlivenl/subfiles/k3.xml</link>

Next examples pointing to .XML file.. (?format=xml added for http link)
________________________________________________________

Now we got a link to a XML file... here we link to media (video/music)

EXAMPLE:
<item>
<title>K3 medley</title>
<media:thumbnail url="http://studio100tv.be/video/images/V30CvDvV/160x90" width="160" height="90" />
<enclosure type="video/mp4" url="http://dl02.telenet.jet-stream.nl/gtv/studio100tv/000/001/000/973/K3%20Medley%201.mp4"/>
</item>

This link to a .mp4 file (not a stream)
also see: enclosure type="video/mp4" here we set media type:

video/mpeg: MPEG-1 video with multiplexed audio
video/mp4: MP4 video
video/ogg: Ogg Theora or other video (with audio)
video/ms-wmv: Windows Media Video


EXAMPLE:
<enclosure type="video/ms-wmv" url="http://127.0.0.1/cgi-bin/wmv-m?mms://domainip/dir/subdir" />

Next link is to a mms (stream) again we can set media-type
BUT now it's in the url (wmv-m)
______________________________________________________________

So it should also be possible to link to local stream (LAN) from for example VLC player... again we set media-type this should match VLC stream settings to work..

using MMS:
<enclosure type="video/ms-wmv" url="http://127.0.0.1/cgi-bin/wmv-m?mms://192.186.1.10/" />
and HTTP: (not sure you use portnr or not?!)
<enclosure type="video/ms-wmv" url="http://192.186.1.10/" />
<enclosure type="video/ms-wmv" url="http://192.186.1.10:8080/" />

_____________________________________________________________________________


Mon Feb 20, 2012 7:21 pm
Profile

Joined: Tue Jan 17, 2012 8:26 pm
Posts: 64
Post Re: RSS: How to/Tips and Tricks (PlayonX)
Do you now of its posible to make a working encloser of Nederland 24 ?


Mon Feb 20, 2012 8:18 pm
Profile

Joined: Sat Jul 03, 2010 7:47 pm
Posts: 14
Post Re: RSS: How to/Tips and Tricks (PlayonX)
roerbakeitje wrote:
Do you now of its posible to make a working encloser of Nederland 24 ?


NOTE: I'm not a expert in this field.. had to try&test to find out the possibilities..
Used script file's PlayonX and played around with them ...
There are some site's where you can find info about RSS (http://forum.xtreamer.net/mediawiki-1.1 ... _RSS_Guide) But what i understand is that RSS on PlayonX different works ??

Questions are welcome btw.. BUT looking for more info/tips whats possible with RSS on PlayonX... maybe someone can enplane structure/working RSS? so far found out RSS contains layout and link info what can be to a RSS/XML or PHP file.. the XML looks similar to RSS and used for 'final' link to stream/media and PHP is used for more complex (to me) scripting..


MY QUESTIONS:
1) the best way to stream on LAN (windows PC) and how to link this (got it working 1x but can't remember how/what i did.. :cry:
2) Is it possible (not using HTTP) to link and play 'local' media (HDD playon/network drive/folder)
3) see link below this links to a youtube video: (Youtube2 must be installed)
<item>
<title>The Cure</title>
<link>http://127.0.0.1/cgi-bin/you.cgi?RS_ux2H473I</link>
<media>/home/mp3/mjukebox/TheCure.jpg</media>
</item>
Where RS_ux2H473I is Youtube video ID.

Made a page with my favorite You-tube movies and would like to know
if it's possible to make link with a search or a user in it? would be handy...
_________________________________________________________

Back to the question....


If your using PlayonX firmware and scripts you can add NTV (also Uitzending Gemist)
http://playon.unixstorm.org/ntv.php

looks like this...its linking to unixstorm page...
<item>
<title>Nederland 24</title>
<link>http://playon.unixstorm.org/NTV/playonx_nl24.rss</link>
<media:thumbnail url="/home/scripts/trt/image/main_NL24.jpg"/>
</item>

______________________________________________________________
Would like to give my compliments to the PlayonX developers.. KEEP UP THE GOOD WORK..
from the start a firmware that worked better then the factory firmware and got better in following
versions... So looking forward whats still to come.. :o .
Using PlayonX firmware for about 2 years and NO major issues (once in a while it's
not responding whats caused by corrupt-files, but never had sudden reboots)
-----------------------------------------------------------------------------------------------------
****************************************************************************************************


Mon Feb 20, 2012 10:24 pm
Profile

Joined: Sat Jul 03, 2010 7:47 pm
Posts: 14
Post Re: RSS: How to/Tips and Tricks (PlayonX)
Some Tips from Mikka:


There are 3 ways to create RSS feeds:
1) Using pure RSS commands - which doesn't require any additional knowledge and should work on any firmware, but also is very limited due to little amount of these commands
2) Using PHP to generate RSS feeds - the most powerful if you know PHP, but also require lighttpd which is available only in few firmwares, including PlayOn!X
3) Using shell to generate RSS feeds - the most difficult, but required only in few cases

I recommend to start with option 2 if you know PHP, otherwise with option 1. The easiest way to learn is to study existing scripts and many tries (practice makes perfect).

A lot of examples are already in scripts.zip, other on playon.unixstorm.org (like Youtube2, NTV or SIRadio).

Now, looking at your questions:
1) If you mean streaming from PlayOn!HD to Windows PC, you can check the source of ISS project - this is what it's all about
2) If you mean playing on PlayOn!HD from network, you can use either:
a) <link> and <enclosure> tags
b) playItemURL function
3) You can modify Youtube2 source code, likely where search is performed. A lot of information can be found on Youtube API pages.

There are some differences between Xtreamer and Playon!HD, sometimes visual, always with remote keys (different RC mapping) and paths.


Tue Feb 21, 2012 5:22 pm
Profile

Joined: Tue Jan 17, 2012 8:26 pm
Posts: 64
Post Re: RSS: How to/Tips and Tricks (PlayonX)
I,m a noob in php . i,m only now some enclocers. I hope so that someone develop some script ore modded firmware where i can play nederland24 on my playonhd2 . I know its not easy but there a people that maby can creat it.

best regrards and thanks fore your info.


Tue Feb 21, 2012 8:14 pm
Profile

Joined: Sat Jul 03, 2010 7:47 pm
Posts: 14
Post Re: RSS: How to/Tips and Tricks (PlayonX)
roerbakeitje wrote:
I,m a noob in php . i,m only now some enclocers. I hope so that someone develop some script ore modded firmware where i can play nederland24 on my playonhd2 . I know its not easy but there a people that maby can creat it.

best regrards and thanks fore your info.


The Playon2 cant run PlayonX firmware... (yet?) have a look below maybe you can
stream it from a PC/Laptop on your LAN (VLC)... there must be a way...

_________________________________________________________________________
HOW TO...Stream content using VLCplayer or TVersity

This example i'm using a DV file (raw/uncompressed avi) that won't play on the playon the 'normal' way.. (unsupported) got lots of DV file's from my Camera but the Playon won't play these uncompressed formats..

Did some testing... again ..... here my findings...

The BEST solution for this issue is using a UPnP media server..
Windows7 got this feature build in BUT won't transcode content (if needed)

I'm using TVersity (free version) it's very easy to setup.. plays DV (raw) video perfectly..
After the install add a folders and go to settings/transcoder settings, default settings
should work..just make sure transcoding when needed.. is selected..
Now you can browse and play content using UPnP (under browse menu)

VLC is more tricky but got way more input and other options (file,network,capture-device/web-cam) Linux version got most options for input sources (DVB cards) i'm using windows version in this test.. Using HTTP you can stream in several formats, MMSH = MP4 only..

Start VLC and press CTRL-S.. add file(s) and press Stream. Next.. then select HTTP for destination and select ADD.. here we can also select the active transcoding options..
In this case: i want to use it, without it won't play.. using MP4 profile in this case BUT
have to change some settings..
edit profile and select MPEG-TS for Encapsulation, and MPEG for video and audio codecs.
Hit Next again and hit Stream to start the stream.....

UDP streaming methods require MPEG TS encapsulation. The HTTP streaming method can be used with the MPEG PS, MPEG TS, MPEG 1, OGG, RAW or ASF encapsulation

NOTE: Depending on the media-type (MIME type) use
active transcoding or not.. IF you use transcoding option the enclosed media-type option (MIME type) should match
Also your PC/Laptop must have the power (CPU) to transcode in real-time...

____________
NEXT... There are a couple of ways to play the stream...
we can add a item in a XML..

<item>
<title>LAN HTTP Stream</title>
<enclosure type="video/x-mpeg" url="http://10.100.10.2:8080"/>
</item>

Note: video/x-mpeg worked for me..
other options you can try: /ms-wmv /asf /ogg /mp4


You can also try linking to file (add file-name and extension at HTTP part VLC)
<enclosure type="video/mp4" url="http://10.100.10.2:8080/stream.mp4"/>
_________________________________________________________


Thu Feb 23, 2012 10:00 pm
Profile

Joined: Sat Jul 03, 2010 7:47 pm
Posts: 14
Post Re: RSS: How to/Tips and Tricks (PlayonX)
Using Movie Jukebox RSS files

Still looking how to link to local video file's (playon HDD) in a RSS menu... ?? so far no luck.. got item and link but won't play if selected? Found another way using RSS file's from Movie Jukebox..

What do we need: PlayonX! firmware and YAMJ

1st - Sort out media to use (personal video**/TV series/etc..) and put this in your movie folder on Playon..
EXAMPLE: I'm using Series23 of the Simpsons.. then name the folder: The Simpsons and the file's S23E01 (Series 23 Episode 01) this way YAMJ will find (proper) info... ** (see end of post)

2nd - Run YAMJ on PC to create files/database ... Start YAMJ browse to movies folder on your Playon, save and Run/Update... this will create a sub-dir called Jukebox in movies folder...

Next select on the Playon... Mainmenu --> Movie Jukebox--> HDD and select (after scan) location to use also press YES to update files..
Then goto Infosite page of your playon (http://playon_ipadress) and select movie-jukebox in RSS menu.. and update location (/tmp/hdd/volumes/HDD1/movies/)

Then what do you want to use? open Index.html (movies folder on Playon)
in web-browser and browse to page you want to link
you'll see in the end of the URL the file we need BUT we need the RSS not the HTML!
look in the Jukebox folder and you'll find some RSS files but not all of them..
EXAMPLE: file://///10.100.10.6/hdd1/movies/Jukebox/S23E01.html
so i'm looking for S23E01.rss but it's not there??

Start a TELNET session to your Playon.. (start run: telnet ip_playon)
cd /usr/local/etc/scripts/
this will point to location Jukebox
now if you type: ls (=dir) you Do see the rss file (S23E01.rss)
next copy the file to HDD:
cp filename.rss /tmp/hdd/volumes/HDD1/

Browse to HDD playon and move file to scripts folder/sub-folder
next we can edit the RSS to change: title's, cover image used, colors, font-color and size..

Only a item in menu.rss or other rss menu and now we got a direct link to a menu without having to use the Movie-Jukebox..

<item>
<title>The Simpsons Series 23</title>
<link>/home/scripts/trt/S23E01.rss</link>
<media:thumbnail url="/home/movies/Jukebox/S23E01.jpg" />
</item>

** If your using personal video you won't get proper info or cover(s) and they will end up in:
All Others...
TIP: you want personal movies/clips you got in one menu? then use a name of a TV-serie as folder name, and rename file's to S01Exx (xx = 01,02,03.....) this way you get one menu with all video's (episodes) .. edit file to change cover, main text, title's etc...


Fri Mar 02, 2012 6:39 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.