DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-07-21 17:50:43

cunningr
Member
Registered: 2009-07-21
Posts: 6

REQUEST: Build 'get_iplayer' on DNS-323

Hi

Is anyone out there willing to compile what is needed to for "get_iplayer" to run on the DNS-323?  Any stream recording apps that might work with tvcatchup.com?

... pleeeaase!!

http://linuxcentre.net/getiplayer/installation/

It has been tested under Linux (Fedora 6/7/8/9/10, Centos5/RHEL5, Ubuntu, Xebian, Linpus, Gentoo, ArchLinux), MacOSX, FreeBSD and Windows (cygwin, Strawberry perl or Activestate perl)

    * Perl (required)
    * LWP (libwww-perl) (required)
    * For RealAudio Radio, mplayer and lame are required (not required for podcasts or MP3 radio)
    * For Flash Audio/Video downloads you will need flvstreamer and optionally ffmpeg and mplayer
    * For ITV downloads you will need mplayer
    * No extra programmes are required for iPhone/H.264 downloads of audio and video or podcasts

Offline

 

#2 2009-07-22 11:58:33

cunningr
Member
Registered: 2009-07-21
Posts: 6

Re: REQUEST: Build 'get_iplayer' on DNS-323

Ok. I got this working for iplayer streams by compling the extra perl modules and flvstreamer.  I'll try post the basics if anyone else wants to get this working on the DNS-323.

Now I need to mediatomb to transcode .flv for the PS3.  Anyone any experience with this?

Offline

 

#3 2009-07-24 14:01:42

cunningr
Member
Registered: 2009-07-21
Posts: 6

Re: REQUEST: Build 'get_iplayer' on DNS-323

Ok so transcoding on the DNS-323 is a bad idea due to resource limitations BUT turning the lighttpd into a flash streaming server so my PS3 can watch the .flv's in its browser seems to work well.

You need:

perl (plus libwww-perl which was easy to compile on the box)
flvstreamer - which was also easy to compile on the box
get_iplayer perl script.

Now you can schedule, stream and record* content from the BBC iPlayer and ITV and store it on your DNS-323 in FLV format.

*when the stream is recorded there is no DRM.  Individuals should be aware of the legalities before doing this.

Turn on lighttpd with support for PHP and flv streaming and grab a copy of flowplayer.  Follow the examples on their site and you have yourself a DNS-323 capable of serving flash videos!

That is it in a nutshell ... and it seems to work ok with my PS3!  how about a PVR for www.tvcatchup.com?

Offline

 

#4 2009-07-27 16:31:18

sp99
New member
Registered: 2009-07-27
Posts: 2

Re: REQUEST: Build 'get_iplayer' on DNS-323

Hi Cunningr,

Could you post a step by step walkthrough.

I only have very basic knowledge of Linux and have to follow guides.

I've used get_iplayer on my PC and its a great program.


Thanks.

Offline

 

#5 2009-07-27 17:06:07

cunningr
Member
Registered: 2009-07-21
Posts: 6

Re: REQUEST: Build 'get_iplayer' on DNS-323

I'll try but its worth noting that I only have it working for flvstreamer supported streams.  ffmpeg and/or mplayer are proving very much more difficult to get on the box. Google-ing around seems to suggest the box may not be up to it.

Firstly I am assuming that you already have fun_plug script working and are familiar with installing packages via the /ffp/sbin/funpkg utility.

If not the check out this link:

http://nas-tweaks.net/CH3SNAS:Tutorials … s#Packages

Later you are going to need to compile a few small things that aren't already available with the fun_plug packages so using the funpkg -i <package> method get the necessary packages for compilation at:

http://www.shadowandy.net/2008/08/addin … ns-323.htm

Then install perl from fun_pkg and the extra http related modules:

http://www.inreto.de/dns323/fun-plug/0. … ages/perl/

Get the two *HTML* perl modules and install with /ffp/sbin/funpkg -i <package>.tzg

Now take a look at the list of dependencies on the get_iplayer site ...

    * Perl (required)
    * LWP (libwww-perl) (required)
    * For RealAudio Radio, mplayer and lame are required (not required for podcasts or MP3 radio)
    * For Flash Audio/Video downloads you will need flvstreamer and optionally ffmpeg and mplayer
    * For ITV downloads you will need mplayer
    * No extra programmes are required for iPhone/H.264 downloads of audio and video or podcasts

we have Perl already via the funpkg install.  You will need to get URI for Perl before you get libwww-perl. Get:

http://search.cpan.org/~gaas/URI-1.38/ (or http://search.cpan.org/CPAN/authors/id/ … .38.tar.gz)

and un-tar that. (tar -zxvf URI-1.38.tar.gz) then cd to the new directory and do:

./configure
make
make install

Repeat the above for libwww-perl:

http://cpan.uwinnipeg.ca/cpan/authors/i … 830.tar.gz

All being well you should have satisfied the Perl requirements now.  Next get the source for Flvstreamer from:

http://nongnu.askapache.com/flvstreamer/source/

Untar that and follow the compile instructions in the README.  This should be pretty similar to the previous example for install of libwww-perl modules.

Finally you should be able to download and run the get_iplayer perl script.  One last thing to note is that the location of perl will be different to that configured in the 'shebang' (#!/usr/bin/perl) so you will need to edit that in the get_iplayer script or run with "perl get_iplayer --options ..."

Hope that helps.

Offline

 

#6 2009-07-28 01:37:48

sp99
New member
Registered: 2009-07-27
Posts: 2

Re: REQUEST: Build 'get_iplayer' on DNS-323

cunningr wrote:

we have Perl already via the funpkg install.  You will need to get URI for Perl before you get libwww-perl. Get:

http://search.cpan.org/~gaas/URI-1.38/ (or http://search.cpan.org/CPAN/authors/id/ … .38.tar.gz)

and un-tar that. (tar -zxvf URI-1.38.tar.gz) then cd to the new directory and do:

./configure
make
make install

Repeat the above for libwww-perl:

http://cpan.uwinnipeg.ca/cpan/authors/i … 830.tar.gz

All being well you should have satisfied the Perl requirements now.  Next get the source for Flvstreamer from:

http://nongnu.askapache.com/flvstreamer/source/

Untar that and follow the compile instructions in the README.  This should be pretty similar to the previous example for install of libwww-perl modules.

Finally you should be able to download and run the get_iplayer perl script.  One last thing to note is that the location of perl will be different to that configured in the 'shebang' (#!/usr/bin/perl) so you will need to edit that in the get_iplayer script or run with "perl get_iplayer --options ..."

Hope that helps.

Hi cunningr

For the compiles the ./configure didn't work, I finally twigged to read the README.
I also needed distcc as well

perl Makefile.PL
make
make install

get_iplayer runs ok, can you explain what parameters to alter to point to flvstreamer and change the default download directory.

Thanks

Offline

 

#7 2009-08-05 11:00:49

cunningr
Member
Registered: 2009-07-21
Posts: 6

Re: REQUEST: Build 'get_iplayer' on DNS-323

Glad you got it working.  All the docs you need for get_iplayer should be here:

http://linuxcentre.net/getiplayer/documentation/

You should be able to change the download dir like so:

* Record programme number 123 and save in ‘/home/user/tv-files/’:

    get_iplayer --get 123 --output '/home/user/tv-files/'



and point to flvstreamer with something like:

* Using flvstreamer tool to get high or normal quality Flash version of a TV programme (--flvstreamer is optional)

    get_iplayer --type=tv --get 123 --modes=flashnormal
      --flvstreamer='/path/to/flvstreamer'

Offline

 

#8 2014-11-30 16:32:59

Targles
New member
Registered: 2014-11-30
Posts: 1

Re: REQUEST: Build 'get_iplayer' on DNS-323

I stumbled across this thread because I wanted to see whether or not I could convince get_iplayer's Web PVR Manager to work on my NAS (a DNS-321 running funplug 0.7).  I was more shocked than anything to discover that I was able to do so by following the above guide, but it needed some work.  Since I've spent the time on it I figured I'd share; maybe someone else will find it useful.

If you haven't set up a compilation environment you might want to - most of this doesn't need it, but you'll want it to compile RTMPDump.

Perl and Modules

I think funplug still installs some flavour of Perl, but I used slacker to install the most up-to-date versions of Perl and the Perl modules from the main "s:" repository, which at the time of writing is 5.14.2.  The packages can be found here for manual installation with funpkg.

Installing libwww-perl had many more prerequisites than those listed above.  The list below shows the modules I had to install to get it working.  They're listed in the order I installed them in - there may be a better order and there's no doubt a quicker way to do this all in one go, but this is what worked for me.  I've indicated the version I used; links go to the author's page on cpan.

URI 1.65

(The next four are all required by HTTP-Message)

IO::HTML 1.001
Encode::Locale 1.03
HTTP::Date 6.02
LWP::MediaTypes 6.02

HTTP::Message 6.06
HTTP::Daemon 6.01
File::Listing 6.04
HTTP::Cookies 6.01
HTTP::Negotiate 6.01
Net::HTTP 6.07
WWW::RobotRules 6.02
Test::Pod 1.48
HTML::Tagset 3.20
HTML::Parser 3.71

Aaand finally:

libwww-perl 6.08

Each module was installed using a standard set of build/install commands:

perl Makefile.PL
make
make test
make install

Note that for URI, the test seems to identify an issue with old-file.t:

t/old-file.t ..... 1/12 domainname: No such file or directory

But then passes it as okay anyway.  It also skips one item:

t/urn-isbn.t ..... skipped: Needs the Business::ISBN module installed

This version of Perl won't build Business:ISBN, but it's not relevant to us and doesn't cause the test to fail.

Get_iplayer

Grab the most recent version of get_iplayer from here - currently it's 2.90.  Unzip, make get_iplayer executable by typing:

chmod 755 ./get_iplayer

And then copy get_iplayer to the funplug binary directory:

cp ./get_iplayer /ffp/bin

Create a symbolic link to the env command - you might want to append this to /ffp/etc/fun_plug.init so you don't have to keep typing it.

ln -s /ffp/bin/env /usr/bin/env

If you want to specify a default download directory, you can do so by typing:

export IPLAYER_OUTDIR="/path/to/downloads"

You can also add this to the .profile file in your home directory if you don't want to keep typing it (create the .profile file it if you haven't got one already).

Run get_iplayer by typing get_iplayer - the first time it loads it will set up all the gubbins it needs to work.  The second time it will download the list of programmes.  However, you can't do anything with them without RTMPDump or FLVStreamer.

RTMPDump

Download and compile rtmpdump using git by typing (in whatever folder you're using to build things):

git clone git://git.ffmpeg.org/rtmpdump
cd rtmpdump
make

You then want to copy both the executable and the library to the relevant places:

cp ./rtmpdump /ffp/bin
cp ./librtmp/librtmp.so.1 /ffp/lib

FLVStreamer

The instructions for FLVStreamer are pretty much unchanged from those provided above - download and compile the latest version, copy it to /ffp/bin and then make sure you remember to include the --flvstreamer switch to indicate where the executable is located.  Personally I found it easier just to use rtmpdump and be done with it.

Once all that's done, you can get the Web PVR started:

Web PVR

Copy the PVR executable from the get_iplayer folder to somewhere in the path (like /ffp/bin):

cp ./get_iplayer.cgi /ffp/bin

To start the Web PVR, type:

get_iplayer.cgi -p 1935 -g /ffp/bin/get_iplayer

(Change the path if you put get_iplayer somewhere else).

After a few moments it will show:

INFO: Listening on 0.0.0.0:1935
WARNING: Insecure Remote access is allowed, use --listen=127.0.0.1 to limit to this host only

You can then access the Web PVR from a browser at http://xx.xx.xx.xx:1935/ (where xx.xx.xx.xx is the IP of the NAS) and start looking at files.

Last edited by Targles (2014-11-30 16:35:08)


Attachments:
Attachment Icon gipdns.jpg, Size: 86,197 bytes, Downloads: 149

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB