View Single Post
Posts: 230 | Thanked: 302 times | Joined on Oct 2009 @ Helsinki, Suomi (Finland)
#1
This is mainly for Finns out there.

yle-dl is an rtmpdump frontend for downloading videos from Finnish national broadcaster Yle: Yle Areena, and Elävä Arkisto. yle-dl is created by Antti Ajanki.

Install these rtmpdump packages first:
librtmp0_2.4-2_armel.deb
rtmpdump_2.4-2_armel.deb

Then download yle-dl archive (modified interpreter directive from python2 to python, otherwise same as original):
yle-dl_2.2.1.tar.bz2

Extract it and copy resulting yle-dl script into a directory in your $PATH. (I use ~/bin, but /usr/local/bin is ok too)

To download videos open the terminal application (f.e. meego-terminal) and run yle-dl with --vfat flag and use areena page as argument.
For example:
Code:
$ cd MyDocs/Movies
$ yle-dl --vfat http://areena.yle.fi/tv/1610991

As a bonus here's a nice little script to use as command line UI for watching Yle channels live. (needs mplayer, the package from openrepos should work):
Code:
#!/bin/sh
#################
# select stream #
#################
chname1="YLE TV1"
chstrm1="http://areena.yle.fi/tv/suora/tv1"
chname2="YLE TV2"
chstrm2="http://areena.yle.fi/tv/suora/tv2"
chname3="YLE Fem"
chstrm3="http://areena.yle.fi/tv/suora/fem"
chname4="YLE Teema"
chstrm4="http://areena.yle.fi/tv/suora/teema"

channel=1
while [ "$channel" != q ] 
do
	clear
	trap - INT
	echo ""
	echo -e "1. $chname1\n2. $chname2\n3. $chname3\
	\n4. $chname4"
	echo ""
	echo -n -e "Select channel nr. (Ctrl+c to quit): "
	read -n1 channel
	echo ""
	trap '' INT

	if [ $channel = 1 ]
	then
		echo -e "\nPreparing to stream $chname1"...
		yle-dl --live $chstrm1 -o - | mplayer -fs -
    	fi

	if [ $channel = 2 ]
	then
		echo -e "\nPreparing to stream $chname2"...
		yle-dl --live $chstrm2 -o - | mplayer -fs -
	fi

	if [ $channel = 3 ]
	then
		echo -e "\nPreparing to stream $chname3"...
		yle-dl --live $chstrm3 -o - | mplayer -fs -
	fi

	if [ $channel = 4 ]
	then
		echo -e "\nPreparing to stream $chname4"...
		yle-dl --live $chstrm4 -o - | mplayer -fs -
	fi
done
Create a new file named strsel.sh and paste above code into it. Make the file executable with chmod 755 strsel.sh and put it into a directory in your $PATH.

When you run strsel.sh you can select Yle channels with the on screen keyboard and the selected channel will start playing fullscreen. To stop playback simply swipe down and you'll be back in the channel selection menu. Sound lags in the beginning, but will usually sync later on.

Making apps view shortcut is left as user exercise.

Last edited by ladoga; 2014-11-22 at 19:44.
 

The Following 12 Users Say Thank You to ladoga For This Useful Post: