Sign up here and you can log into the forum!

UMSP Plug-in :: Tou.tv (Experimental)

UMSP Plugin Depot, the place for sharing plugins & info about them. No requests, just plugins/code.

UMSP Plug-in :: Tou.tv (Experimental)   

Postby shunte » Sat Jul 02, 2011 2:10 pm

Tou.tv plug-in for Canadian TV sourced via the Tou.tv site

Image

Current prototype 2011.07.02
http://www.fileserve.com/file/mzweeBG

It has the same footprint as the PBS, and SVT Play plug-ins in that it is a two box solution, we're once again dealing with streams that require transcoding to play on the WD

See the thread for those other two plug-ins if you have questions on setup - questions you may have have already been addressed

Copy the archive somewhere writable on the WD like a thumb drive or a share that is accessible, and untar to the /tmp/umsp-plugins folder, e.g.

Code: Select all
tar xzf tou-tv.tgz
cp -fR tou-tv/* /tmp/umsp-plugins/tou-tv/


the proxy file should be copied to an external machine that has a webserver, rtmpdump, and ffmpeg installed and up and running - same as with the PBS plug-in and SVT Plug-in

Again, see those other threads for how to install and configure a plug-in of this type

So... once you've unzipped the code to the umsp folder and activated and configure via WEC you should be good to go...

If you have either of the plug-ins previously mentioned just point this plug-in to the same proxy via WEC, no need to update the file on the proxy box as no changes have been made

The plug-in emulates the layout of the Tou.tv site as of 201107.02, navigation is somewhat equivalent and search is fully implemented.

Please feel free to try it out...

And DO let me know if there are things that could be done a little better or if you have problems in general

Thanks go out to RMerlin for checking out the first pass and for providing critical info to getting this one done

enjoy!
If you like the work I do please feel free to make a donation to the Red Cross
User avatar
shunte
Developer
 
Posts: 420
Joined: Sun Sep 19, 2010 1:43 am
Location: Cambridge, MA U. S. and A.

Re: UMSP Plug-in :: Tou.tv (Experimental)   

Postby musicalbox » Sun Jul 03, 2011 11:09 am

Thank you for this plugin! Hopefully I can get it to work.

I've looked at the instructions for the two other similar plugins (PBS and SVT)...

Here's what I have done:

- Created an Apache2 server on a Ubuntu machine (added the proxy to the correct folder in the webserver).
- Installed RMTPdump on the webserver using the following command: sudo apt-get install rmtpdump
- Installed ffmpeg on the webserver using the following command: sudo apt-get install ffmpeg
- Added tou.tv to the UMSP list
- Changed the "TOUTV_SERVER" path for: "http://192.168.1.101/wdlxtvumsp/tou-tv-proxy.php" (where 101 is my apache webserver)

The proxy file is accessible from the other computers on my network. When I try to run Tou.tv from my WDTV, I keep getting the "Unable to play the selected file" message.

What am I doing wrong? Thank you (and sorry for asking dumb questions :oops: )
musicalbox
n00b
 
Posts: 3
Joined: Sun Jul 03, 2011 4:58 am

Re: UMSP Plug-in :: Tou.tv (Experimental)   

Postby RMerlin » Sun Jul 03, 2011 3:06 pm

Heya,

Just to confirm that it seems to work fine here - tested it with a video that was region-locked, and it played fine. :)

Keep in mind a lot of the videos found there are region-locked to Canada.

I used a Debian VM running under Virtualbox to handle the proxied transcoding here.
WDLXTV Webend maintainer. Visit http://www.lostrealm.ca/wdlxtv to see my other WDLXTV projects.
If you like my work, please consider donating.
User avatar
RMerlin
WDLXTV Team
 
Posts: 3236
Joined: Sat Jun 26, 2010 9:25 am
Location: Montreal, Canada

Re: UMSP Plug-in :: Tou.tv (Experimental)   

Postby musicalbox » Sun Jul 03, 2011 4:06 pm

Found the solution to my problem...

PHP was not installed on my apache server. It is all working now!! Thank you
musicalbox
n00b
 
Posts: 3
Joined: Sun Jul 03, 2011 4:58 am

Re: UMSP Plug-in :: Tou.tv (Experimental)   

Postby shunte » Sun Jul 03, 2011 4:08 pm

as RMerlin stated the locale restrictions on the Tou.tv site are pretty tight

If you can play the content via a browser but not via the plug-in then try the following

Via your browser select to view source on the page that has the video you'd like to play and view source for the page your viewing of the page and search for the unique id identifying the content, it can be found in a couple of places

example, you'll see something like :
Code: Select all
toutv.releaseUrl='0yyB9fHIc3OwQ1jUsdgnxZ_T2pofj7iA'

or

var episodeId = '0yyB9fHIc3OwQ1jUsdgnxZ_T2pofj7iA'

any of these is a good source, copy the Id and paste it into the following URL
Code: Select all
http://release.theplatform.com/content.select?pid=idgoeshere&Embedded=true&MBR=true&format=SMIL
example:
http://release.theplatform.com/content.select?pid=0yyB9fHIc3OwQ1jUsdgnxZ_T2pofj7iA&Embedded=true&MBR=true&format=SMIL

paste the URL into the browser and grab the content it returns

during development I found at minimum two versions of the data that this call would return, and there may be others

post what is returned to this thread and I'll review to see if there are additional cases that aren't covered by the current implementation.

In addition the 5 sur 5 Afrique content is not restricted and you can use this program to test the solution is working end-2-end.

good luck
If you like the work I do please feel free to make a donation to the Red Cross
User avatar
shunte
Developer
 
Posts: 420
Joined: Sun Sep 19, 2010 1:43 am
Location: Cambridge, MA U. S. and A.

Re: UMSP Plug-in :: Tou.tv (Experimental)   

Postby shunte » Sun Jul 03, 2011 4:10 pm

hi @musicalbox, ^^ good to here you got things working, I should type faster ;)
If you like the work I do please feel free to make a donation to the Red Cross
User avatar
shunte
Developer
 
Posts: 420
Joined: Sun Sep 19, 2010 1:43 am
Location: Cambridge, MA U. S. and A.

Re: UMSP Plug-in :: Tou.tv (Experimental)   

Postby blachanc » Tue Jul 12, 2011 1:40 pm

Fell free to tell me that I am too noobish, and should stop
trying to get this working right away:

1) I managed to install unbuntu 10.04 LTS, in a virtualbox.

2) I was able to install ffmpeg apache etc.
3) The webserver is working.


but I cannot install rtmpdump directly,
as the package is not found.


Code: Select all
[blachanc-desktop][toutv_prj] .../blachanc {15}% sudo apt-get install rtmpdump
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package rtmpdump is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package rtmpdump has no installation candidate



Anyway, I decided to do the install manually (http://rtmpdump.mplayerhq.hu/), but this requires few other tools.

I am in the middle of my openssl installation (http://www.techsww.com/tutorials/libraries/openssl/installation/installing_openssl_on_ubuntu_linux.php).

I am not stuck, i am just sharing my pain :D

Ben
blachanc
Patron
 
Posts: 238
Joined: Tue Feb 22, 2011 7:10 am
Location: Montreal,QC, Canada (french)

Re: UMSP Plug-in :: Tou.tv (Experimental)   

Postby RMerlin » Tue Jul 12, 2011 1:55 pm

Enable the Universe repository in Ubuntu, then you should be able to intsall rtmpdump through apt-get.
WDLXTV Webend maintainer. Visit http://www.lostrealm.ca/wdlxtv to see my other WDLXTV projects.
If you like my work, please consider donating.
User avatar
RMerlin
WDLXTV Team
 
Posts: 3236
Joined: Sat Jun 26, 2010 9:25 am
Location: Montreal, Canada

Re: UMSP Plug-in :: Tou.tv (Experimental)   

Postby blachanc » Wed Jul 13, 2011 7:54 am

RMerlin wrote:Enable the Universe repository in Ubuntu, then you should be able to intsall rtmpdump through apt-get.


I believed that I already enabled the universe repository.
Still, it did not work (probably a chair-keyboard interface issue)
Code: Select all
grep universe  /etc/apt/sources.list
## team. Also, please note that software in universe WILL NOT receive any
deb http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe


Anyway,
I managed to get rtmpdump to compile.

the compilation initially kept failling
Code: Select all
make[1]: Entering directory `/home/blachanc/test/rtmpdump-2.3/librtmp'
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC   -c -o rtmp.o rtmp.c
rtmp.c:40:25: error: openssl/ssl.h: No such file or directory


until I installed:
Based on "[ubuntu] problem compiling rtmpdump"
(http://ubuntuforums.org/showthread.php?t=1537278)
Code: Select all

sudo apt-get install libssl-dev
sudo apt-get install build-essential


Next step
re-do all this cleanly at home :-) & test the plugin

Thanks for the support.
Ben
blachanc
Patron
 
Posts: 238
Joined: Tue Feb 22, 2011 7:10 am
Location: Montreal,QC, Canada (french)

Re: UMSP Plug-in :: Tou.tv (Experimental)   

Postby RMerlin » Wed Jul 13, 2011 9:36 am

Maybe it wasn't on Universe for 10.04.

How about this package? http://pkgs.org/ubuntu-10.04/xbmc-i386/rtmpdump_2.3-2~_i386.deb.html
WDLXTV Webend maintainer. Visit http://www.lostrealm.ca/wdlxtv to see my other WDLXTV projects.
If you like my work, please consider donating.
User avatar
RMerlin
WDLXTV Team
 
Posts: 3236
Joined: Sat Jun 26, 2010 9:25 am
Location: Montreal, Canada

Next

Return to UMSP Plugins

Who is online

Users browsing this forum: No registered users and 2 guests

cron