maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   How do I install 'hls-player' on N900 (https://talk.maemo.org/showthread.php?t=43488)

b666m 2010-02-10 12:56

Re: How do I install 'hls-player' on N900
 
try to install vlc.
i think it can open m3u8-playlists. :)

sophocha 2010-02-10 12:58

Re: How do I install 'hls-player' on N900
 
Quote:

Originally Posted by omeriko9 (Post 519311)
Disgusting.

Don`t worry, I`ve already forgive him....ehehe

sophocha 2010-02-10 13:00

Re: How do I install 'hls-player' on N900
 
Quote:

Originally Posted by b666m (Post 519318)
try to install vlc.
i think it can open m3u8-playlists. :)

...let me try this.I`ll report back

Marshall Banana 2010-02-10 13:53

Re: How do I install 'hls-player' on N900
 
Quote:

Originally Posted by sophocha (Post 519305)
Can anybody help on this error?Why can it not find twisted.internet?

Most likely because you have not installed python-twisted. Twisted is a networking engine for python.
Here is a list of the python modules available for fremantle: http://bit.ly/94U7XC

You can install a module with the following command (you need to be root):
apt-get install <module Name>

sophocha 2010-02-10 16:25

Re: How do I install 'hls-player' on N900
 
Quote:

Originally Posted by Marshall Banana (Post 519411)
Most likely because you have not installed python-twisted. Twisted is a networking engine for python.
Here is a list of the python modules available for fremantle: http://bit.ly/94U7XC

You can install a module with the following command (you need to be root):
apt-get install <module Name>

Thank you for this!Now I don`t have any twisted internet errors, however I have another error :) its a syntax error this time.

I type 'sudo gainroot' and I`m at home/user.There I have the player.py and all the files from the hls player.

I type 'python player.py <url>' and I get '/bin/sh: syntax error: newline unexpected'

Any help?

Thanks (I`m trying to learn some basic linux commands, I`m a noob so bear with me)

Marshall Banana 2010-02-10 17:31

Re: How do I install 'hls-player' on N900
 
Quote:

Originally Posted by sophocha (Post 519668)
Thank you for this!Now I don`t have any twisted internet errors, however I have another error :) its a syntax error this time.

I type 'sudo gainroot' and I`m at home/user.There I have the player.py and all the files from the hls player.

I type 'python player.py <url>' and I get '/bin/sh: syntax error: newline unexpected'

Any help?

Thanks (I`m trying to learn some basic linux commands, I`m a noob so bear with me)

Try to enclose the url with single quotes or double quotes, otherwise the shell tries to interpret the url as a command and this may be the source of your problem.

sophocha 2010-02-10 17:47

Re: How do I install 'hls-player' on N900
 
Quote:

Originally Posted by Marshall Banana (Post 519795)
Try to enclose the url with single quotes or double quotes, otherwise the shell tries to interpret the url as a command and this may be the source of your problem.

This is driving me nuts!

I`ve tried it with the quotes, now it says:

ImportError: No module named HLS
/home/user # hls-player
/bin/sh: hls-player: not found

Do I have to put any files in /bin/sh ???
I have the required .py files in /home/user

Thanks

sophocha 2010-02-10 17:55

Re: How do I install 'hls-player' on N900
 
This is what the author says about the hls-player.In the author`s tar file, there is no such a thing as 'hls-player'!Only python files (player.py, setup.py, bla bla)....Am I missing something here???The python player.py command doesn`t work because it needs the hls-player in /bin/sh???


http live streaming player
A simple HTTP Live Streaming player written in Python, using GStreamer.

Installation:

sudo python setup.py install
Play the sample clip from Apple:

hls-player http://devimages.apple.com/iphone/sa...bipbopall.m3u8
or RTVE:

hls-player http://iphonelive.rtve.es/stream1.m3u8 -r http://m.rtve.es/live/
And that is the command line help:

Usage: hls-player [options] url...

Options:
--version show program's version number and exit
-h, --help show this help message and exit
-v, --verbose print some debugging (default: False)
-b BITRATE, --bitrate=BITRATE
desired bitrate (default: 200000)
-k KEEP, --keep=KEEP number of segments ot keep (default: 3, -1: unlimited)
-r URL, --referer=URL
Sends the "Referer Page" information with URL
-D, --no-display display no video (default: False)
-s, --save save instead of watch (saves to /tmp/hls-player.ts)
-p PATH, --path=PATH download files to PATH
-n N, --number=N number of player to start (default: 1)

sophocha 2010-02-10 18:33

Re: How do I install 'hls-player' on N900
 
any help....i really learned so much the past month...linux is growing on me...ehehe

b666m 2010-02-10 18:38

Re: How do I install 'hls-player' on N900
 
what link/playlist are you trying to open?


All times are GMT. The time now is 09:50.

vBulletin® Version 3.8.8