Giter VIP home page Giter VIP logo

yle-dl's Introduction

Download videos from Yle servers

Build status PyPI version

Copyright (C) 2010-2024 Antti Ajanki, [email protected]

License: GPL v3 or later

Homepage: https://aajanki.github.io/yle-dl/index-en.html

Source code: https://github.com/aajanki/yle-dl

yle-dl is a tool for downloading media files from the video streaming services of the Finnish national broadcasting company Yle: Yle Areena, Elävä Arkisto and Yle news.

Installation

Below are general installation instructions. See a separate page for specialized installation instructions for Debian, Ubuntu, Mac OS X, Windows and Android.

1. Install the dependencies

  • Python 3.7+
  • ffmpeg (subtitles fully supported only on ffmpeg 4.1 or later)

Optionally for few rare streams:

  • wget

2. Install yle-dl

  1. Install pipx
  2. Install yle-dl: pipx install yle-dl

Installing yle-dl with all optional dependencies (pipx install yle-dl[extra]) enables storing video metadata as extended file attributes and automatically detecting filesystems that require restricted character sets.

Alternatively, installing the source distribution in the editable mode: Download the sources and run the following in the source directory: pip3 install --user .

Usage

yle-dl [options] URL

or

yle-dl [options] -i filename

where URL is the address of the Areena or Elävä arkisto web page where you would normally watch the video in a browser.

yle-dl options:

  • -o filename Save stream to the named file

  • -i filename Read input URLs to process from the named file, one URL per line

  • --latestepisode Download the latest episodes

  • --showurl Print the URL of the stream, don't download

  • --showtitle Print stream title, don't download

  • --showmetadata Print stream metadata as JSON

  • --vfat Create Windows-compatible filenames

  • --sublang lang Disable subtitles if lang is "none"

  • --resolution res Maximum vertical resolution in pixels

  • --maxbitrate br Maximum bitrate stream to download, integer in kB/s or "best" or "worst". Not all streams support limited bitrates.

  • --postprocess cmd Execute a command cmd after a successful download. The command is called with the downloaded video file as the first parameter and subtitle files (if any) as the following parameters.

  • --proxy uri HTTP(S) proxy to use. Example: --proxy localhost:8118

  • --destdir dir Save files to dir

  • --pipe Dump stream to stdout for piping to media player. E.g. yle-dl --pipe URL | vlc -.

  • -V, --verbose Show verbose debug output

Type yle-dl --help to see the full list of options.

To download through a SOCKS5 proxy, use tsocks or a similar wrapper.

Using with libav instead of ffmpeg

yle-dl --ffmpeg avconv --ffprobe avprobe ...

Config file

Arguments that start with '--' can also be set in a config file. The default config file is ~/.yledl.conf (or alternatively ~/.config/yledl.conf) or one can be specified via --config. See yledl.conf.sample for an example configuration.

Config file syntax allows: key=value, flag=true. If an arg is specified in more than one place, then command line values override config file values which override defaults.

Contributed packages for various distros

A list of contributed packages

Integration tests

pytest-3

Some tests succeed only when run on a Finnish IP address because some Areena streams are available only in Finland. By default these tests are skipped. To run all tests, include the "--geoblocked" flag:

pytest-3 --geoblocked

Running only a single test file:

pytest-3 tests/integration/test_areena_radio_it.py

Examples

Yle Areena

Save an Areena stream to a file with an automatically generated name:

yle-dl https://areena.yle.fi/1-787136

Save a stream to a file called video.mkv:

yle-dl https://areena.yle.fi/1-787136 -o video.mkv

Playing in mpv (or in vlc or in any other video player) without downloading first:

yle-dl --pipe https://areena.yle.fi/1-787136 | mpv --slang=fi -

Executing a script to postprocess a downloaded video (see the example postprocessing script at scripts/muxmp4):

yle-dl --postprocess scripts/muxmp4 https://areena.yle.fi/1-787136

Areena live TV broadcasts

yle-dl https://areena.yle.fi/tv/suorat/yle-tv1

yle-dl https://areena.yle.fi/tv/suorat/yle-tv2

yle-dl https://areena.yle.fi/tv/suorat/yle-teema-fem

Record the broadcast shown an hour (3600 seconds) ago:

yle-dl --startposition -3600 https://areena.yle.fi/tv/suorat/yle-tv1

Elävä Arkisto

yle-dl https://yle.fi/aihe/artikkeli/2010/10/28/studio-julmahuvi-roudasta-rospuuttoon

Embedded videos on the yle.fi news articles

yle-dl https://yle.fi/a/74-20036911

Creating a new release

Release instructions

Known problems

Problem: Subtitles are visible only for the first five minutes.

Solution: Update your ffmpeg to version 4.1 or later.

Problem: Subtitles are missing on live stream

This is a known problem. Currently there are no fixes.

Problem: I get warnings about unsupported subtitles and dropping subtitles

Downloading produces a bunch of warnings such as "Can't support the subtitle" and "Dropping 114 duplicated subtitle events".

These warning messages are harmless and can be ignored. Subtitles should get downloaded correctly in most cases despite the warnings. The only exceptions are live streams.

Problem: I installed yle-dl but get an error message "command not found" when I try to run it

The installation location is not on shell's search path. Use the full path to run yle-dl: ~/.local/bin/yle-dl

Better yet, append the search path permanently by editing shell's config file. For example, on bash do the following:

echo "export PATH=\"\$HOME/.local/bin:\$PATH\"" >> ~/.bashrc && source ~/.bashrc

yle-dl's People

Contributors

6b6561 avatar aajanki avatar akx avatar arranna avatar artsa avatar arza-zara avatar codelingobot avatar deffi420 avatar emgalai avatar ernie77 avatar hekkup avatar hugovk avatar hvrauhal avatar iheartgaming avatar jackyf avatar jormangeud avatar juntuu avatar kallelampila avatar kankaristo avatar kiistala avatar kmosiejczuk avatar krisse7 avatar kynde avatar mikaela avatar mpartel avatar oturpe avatar pekkarr avatar pkorpine avatar tpikonen avatar yannjor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yle-dl's Issues

RTMP server sent error

Trying to download http://areena.yle.fi/tv/1701861 with yle-dl http://areena.yle.fi/tv/1701861 -n flashu.yle.fi.

Here's the output:

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close

and with -V (relevant excerpt). I can post more if you like.

DEBUG: RTMP_ClientPacket, received: invoke 185 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING: error>
DEBUG: Property: <Name:               code, STRING: NetConnection.Connect.Rejected>
DEBUG: Property: <Name:        description, STRING: [ Server.Reject ] : (_defaultRoot_, _defaultVHost_) : Application (ondemand) is not defined.>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_error>
ERROR: rtmp server sent error

Canceling download sometimes corrupts the target file

Any way to recover a corrupted target file? Canceling the download corrupts the target file sometimes, after which it's not possible to resume the download.
For some reason qyledl or yle-downloader-gui corrupt the file with more certainty than yle-dl itself.
How to duplicate: use qyledl or yle-downloader-gui to download the file, but cancel the download and resume it. It may require a few cancels and restarts to cause corruption. After the file is corrupted, it's not possible to continue downloading it with yle-dl --resume.
Related: hekkup/qyledl#1

Download fails due to alternative sizes

Yesterday's Uutisvuoto (8.3) fails to download, because it offers two alternative resolutions, and yle-dl is hardcoded to only accept one:

def rtmp_parameters_from_papi(self, papiurl, pageurl, islive):
...
if len(nodelist) != 1 or len(nodelist[0].childNodes) != 1:

XML debug:


380
65

false

rtmpe://cp157366.edgefcs.net/ondemand?auth=eb.bBd3bxaIc1cpchbnarckdJcmbNbgbga7crb8claQcHdCbgadcEb4cWb_coaMald3-bthcWe-c0-vga-vxoCtxAoqxoytpuwBlwp-mbl3lelfjblcnVlhk5m7mVm0&aifp=6&slist=areena/fi/27/275fc0075a9e0e0ffbd380272ed9b0c1_380928;areena/fi/27/275fc0075a9e0e0ffbd380272ed9b0c1_625664
mp4:areena/fi/27/275fc0075a9e0e0ffbd380272ed9b0c1_380928.mp4


625
131

false

rtmpe://cp157366.edgefcs.net/ondemand?auth=eb.axaobbaybEbccYabdVaUbYbybxatcHbKcLbWauardgcWcTbJcYduaid2cFbechbb-bthcWe-c0-vga-runCrxAnnwlymoszBjCn-ldlXkhmck8k8kUlfk5l4lSmT&aifp=6&slist=areena/fi/27/275fc0075a9e0e0ffbd380272ed9b0c1_380928;areena/fi/27/275fc0075a9e0e0ffbd380272ed9b0c1_625664
mp4:areena/fi/27/275fc0075a9e0e0ffbd380272ed9b0c1_625664.mp4


Eurovision Semifinal 1 downloaded with yle-dl is laggy.

I'm not sure if this is Windows issue as I didn't try to open the .flv with Ubuntu where I downloaded it, but when I opened it with VLC (latest version), the video was laggy. It first went some seconds and then it "snapped" both audio and video.

We are now watching it from YLE Areena directly.

Failed to execute php

When running:

yle-dl http://areena.yle.fi/tv/2193829

this error shows:

yle-dl 2.3.1: Download media files from ..................
......................
Failed to execute php /usr/local/bin/AdobeHDS.php --manifest http://areenahdfi-vh.akamaihd.net/z/fi/8b/8bf4f83ac43a24d4600e085766d0cd1b_,1008640,2607104,151552,656384,385024,.mp4.csmil/manifest.f4m?hdnea=st=1404481354~exp=1404481474~acl=/z/fi/8b/8bf4f83ac43a24d4600e085766d0cd1b_,1008640,2607104,151552,656384,385024,.mp4.csmil/*~hmac=d74099d4a0205714964a39487e407eb219dffd432137eea81f4e89771e253666&g=ABCDEFGHIJKL&hdcore=3.3.0&plugin=flowplayer-3.3.0.0 --delete --outfile Daaaaaaggggg (16)-2014-07-03Tyyyyyyyy21:30:00.flv
No such file or directory
Subtitles saved to .............
Subtitles saved to ..............
Output file: ..................flv
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close

I get this error when trying to download that specific show. All the other shows can be downloaded just fine!!

Connection refused

Platform: Ubuntu x86 on vmware player, network is proven to work properly..

someone@ubuntu:~$ yle-dl http://areena.yle.fi/radio/1994546
Output file: Parasta ennen! pe klo 20.00-2013-08-30T20:00:00.flv
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
ERROR: RTMP_Connect0, failed to connect socket. 111 (Connection refused)

unable to download from swedish language version of "Elävä arkisto"

this would not be a problem, if it were not for the fact that the same video/audio is not available on the finnish language version.

example: http://yle.fi/arkivet/artikkelit/tove_jansson_laser_trollvinter_i_sin_helhet_100781.html#media=100895

for yle areena the problem is the same. however, because the content is available for both language versions, it is "fixed" by simply changing http://arenan.yle.fi/... to http://areena.yle.fi...

PKGBUILD is complete crap

The PKGBUILD is the repository should be nuked. I propose replacing it with a link to "always" up-to-date PKGBUILD in the AUR yle-dl.

List of problems in the current PKGBUILD, that is in the repo:

  • It's out of date... ok easy to fix, but still
  • Pkgdesc should not contain the name of the application, worst of all doesn't even explain what the app does at all....
  • Per custom GPLv2 should be typed without the 'v' for it to be linked to the correct license file.
  • It depends on both python 3 and python 2.x why??? Only pyhton2 is needed. Also there is no package named pycrypto, only python-crypto and python2-crypto...
  • It clearly is a git package, but the name is missing -git suffix, it also uses deprecated git pkg standard and still lists the tarball in the sources array....
  • Depencies are listed again in checkdepends, for no reason....
  • Replaces should be used when the name of the package changes.

Arch linux

Can i share little modified version for Arch because there is problem in python version select and it makes this program broken (wont start).

Sorry like this but i did not find yours email. Please contact.

Download subtitles 1st

Currently the subtitles get download only after the video file itself
as been fully downloaded, in Linux this is not very efficient, as one
can start to whats the video as soon after the download has been
initialized, without having to wait for download to complete. At least
Mplayer(1/2) support opening in complete files. But because the
subtitles get downloaded only after the video, this makes it a bit
efficient for people, who use yle-dl mainly to go around flash and use
desktop app instead.

ERROR: Closing connection: NetStream.Play.Failed

I am getting this error when trying to download Eurovision 2012 semifinals (the Eurovision 2012 itself doesn't seem to be available yet).

% yle-dl http://areena.yle.fi/tv/1530187
Output file: Semifinaali 2-2012-05-24-22:00:00.flv
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: client signature does not match!
INFO: Connected...
ERROR: Closing connection: NetStream.Play.Failed

and

% yle-dl http://areena.yle.fi/tv/1530187
Output file: Semifinaali 2-2012-05-24-22:00:00.flv
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: client signature does not match!
INFO: Connected...
ERROR: Closing connection: NetStream.Play.Failed

Everything gets saved in unusable fragments

Since Yle started to serve most of their material at HD resolutions, my yle-dl saves videos in small fragments that are unwatchable. I get files named

*flv.part
*flv.part-Seg1-Frag1
*flv.part-Seg1-Frag2
*flv.part-Seg1-Frag2
...

The first one contains a couple of seconds of video, the rest are apparently garbage, or too small to be playable with e.g. mplayer. The --maxbitrate option seems to have no effect (I tried to force yle-dl to download a low-res file instead of hd). I'm using 2.5.1 and

rtmpdump-2.4-3.20131205.gitdc76f0a.fc21.x86_64
librtmp-2.4-3.20131205.gitdc76f0a.fc21.x86_64

on Fedora 21.

feature / help request : replace cc with gcc on plugins/Makefile

Hi,

Thanks for exellent app. I'm trying to compile it to my QNAP-219 and I managed to install needed libraries to my NAS using ipkg. only thing what is missing is cc compiler. It seems that it is needed only in plugins/Makefile. Would it be possible to support gcc also in that makefile?
When I add line "CC=gcc" in that makefile then I can run make successfully but the outcome is only "yle.so.0" e.g. no "yle-dl" at all.

This may be quite trivial issue and perhaps it just requires some additional option for compiler but I'm not too familiar with makefiles etc. so if you could help it would be really excellent.

Thanks in advance.
-Mika


noticed that I should not delete yle-dl which comes from git repo :)

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4'

Hei. Suurkiitos hienosta työkalusta :-)

Then a bug report: Looks like accented characters in Areena filenames are an issue. For example "Ryhmä Hau" http://areena.yle.fi/1-2213828 (the 'ä') gives an error when trying to save the file.

osmc@osmc:/media/Tikku/Areena/Ryhma Hau$ yle-dl --protocol hds:youtubedl http://areena.yle.fi/1-2213828
yle-dl 2.7.0: Download media files from Yle Areena and El\xe4v\xe4 Arkisto
Copyright (C) 2009-2015 Antti Ajanki <[email protected]>, license: GPLv2
Subtitles saved to Ryhm\xe4 Hau: Lunta ja j\xe4\xe4t\xe4-2015-04-30T07:55:59+03:00.fin.srt
Output file: Ryhm\xe4 Hau: Lunta ja j\xe4\xe4t\xe4-2015-04-30T07:55:59+03:00.flv
[download] Downloading f4m manifest
[download] Destination: Ryhm Hau: Lunta ja jt-2015-04-30T07:55:59+03:00.flv
[download]   0.4% of 325.97MiB at     ---b/s ETA 00:00Traceback (most recent call last):
  File "/home/osmc/bin/yle-dl", line 2010, in <module>
    main()
  File "/home/osmc/bin/yle-dl", line 2006, in main
    sys.exit(dl.download_episodes(url, sfilt, rtmpdumpargs, destdir))
  File "/home/osmc/bin/yle-dl", line 1603, in download_episodes
    return self._retry_call('download_episodes', *args, **kwargs)
  File "/home/osmc/bin/yle-dl", line 1590, in _retry_call
    res = method(*args, **kwargs)
  File "/home/osmc/bin/yle-dl", line 1037, in download_episodes
    return self.process(download_clip, url, filters)
  File "/home/osmc/bin/yle-dl", line 1070, in process
    res = self.process_single_episode(clipfunc, clipurl, filters)
  File "/home/osmc/bin/yle-dl", line 1106, in process_single_episode
    return clipfunc(clip)
  File "/home/osmc/bin/yle-dl", line 1035, in download_clip
    return downloader.save_stream()
  File "/home/osmc/bin/yle-dl", line 1862, in save_stream
    if not f4mdl.download(outputfile, info):
  File "/usr/lib/python2.7/dist-packages/youtube_dl/downloader/common.py", line 291, in download
    return self.real_download(filename, info_dict)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/downloader/f4m.py", line 297, in real_download
    with open(frag_filename, 'rb') as down:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 4: ordinal not in range(128)
osmc@osmc:/media/Tikku/Areena/Ryhma Hau$ 

This is OSMC media center distribution that is the Kodi mediacenter on top of Debian Lenny (Raspbuan) on a RaspberryPi. Filenames with non-accented characters work ok. Filesystem is EXT4.

Convert the readme to markdown

I see that you have already done it but you have not deleted the old readme. Just copy the contents of the current readme and paste them into readme.md and delete all other readmes. If you want me to do this I can do it.

downloading multiple files fails on calling AdobeHDS Script

When downloading more than one file, calling AdobeHDS.php fails (first one is ok):

./yle-dl "http://areena.yle.fi/tv/lapset/kaikki?jarjestys=suosituimmat-viikko"
Processing manifest info....
Quality Selection:
Available: 1103 763 393 208
Selected : 1103
Fragments Total: 126, First: 1, Start: 1, Parallel: 8
Downloading 126/126 fragments
Found 126 fragments
Finished
....
KSV Adobe HDS Downloader

'manifest' switch can't occur more than once
http://areena.yle.fi/tv/24152

RTMPDump fails to load from YLE

Example:

$ yle-dl http://areena.yle.fi/tv/2054869
RTMPDump v2.4
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
Starting download at: 0.000 kB
...
ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 2550187

And then the download freezes at starting point.

Cannot download streams with the drm used in new Downton Abbey videos

Fails with the following output:

$ yle-dl http://areena.yle.fi/tv/2061644
Traceback (most recent call last):
File "/usr/local/bin/yle-dl", line 1109, in
main()
File "/usr/local/bin/yle-dl", line 1105, in main
sys.exit(dl.download_episodes(url, rtmpdumpargs, latest_episode, sublang, destdir))
File "/usr/local/bin/yle-dl", line 443, in download_episodes
return self.process_episodes(url, parameters, latest_episode, sublang, destdir, False)
File "/usr/local/bin/yle-dl", line 468, in process_episodes
sublang, destdir, print_url)
File "/usr/local/bin/yle-dl", line 477, in process_single_episode
rtmpparams = self.get_rtmp_parameters(clip, pageurl)
File "/usr/local/bin/yle-dl", line 546, in get_rtmp_parameters
return self.get_tv_rtmp_parameters(clip, pageurl)
File "/usr/local/bin/yle-dl", line 565, in get_tv_rtmp_parameters
papiurl = 'http://papi.yle.fi/ng/mod/rtmp/' + media['id']
TypeError: cannot concatenate 'str' and 'NoneType' objects

Apparently "media" object has a new structure and looks like this:

{u'mediaUrl': u'http://areena-pdl-finland.edgesuite.net/drm/downton_01_fi_20131023.flv', u'contentId': u'downton_01_fi_20131023.flv', u'downloadUrl': u'', u'protection': 2, u'duration': 0, u'audioLang': u'eng', u'type': u'video', u'id': None}

This probably does not even use RTMP protocol as the mediaUrl is downloadable with wget (but contains AES-CBC encrypted sections).

--latestepisode broken

--latestepisode does not get the latest episode. Example:

$ yle-dl --resume --latestepisode http://areena.yle.fi/?q=avara+luonto
Output file: Kanahaukan aamupala-2011-03-18T12:53:00.flv

...which is the oldest episode.

Using yle-dl 2.0.0 on OS X 10.6.8.

Windows doesn't like the default file names.

I downloaded Eurovision Semifinal1 and two other Eurovisions and copied them to Windows partition and Windows was unable to do anything with them until I renamed them from Ubuntu.

Streaming is not working with mplayer/mpv, Version 2.6.0

Output filename not working

$ yle-dl http://areena.yle.fi/1-2687602 -o video.flv
yle-dl 2.7.1: Download media files from Yle Areena and Elävä Arkisto
Copyright (C) 2009-2015 Antti Ajanki [email protected], license: GPLv2
Warning: Resume not supported on this stream
Subtitles saved to Skandinavia Hitlerin otteessa-2015-05-08T18:30:00+03:00.swe.srt
Subtitles saved to Skandinavia Hitlerin otteessa-2015-05-08T18:30:00+03:00.fin.srt
Output file: Skandinavia Hitlerin otteessa-2015-05-08T18:30:00+03:00.flv

                        KSV Adobe HDS Downloader

Processing manifest info....
Quality Selection:
Available: 2766 1078 771 437 204
Selected : 2766
Fragments Total: 285, First: 1, Start: 1, Parallel: 8
Downloading 285/285 fragments
Found 285 fragments
Finished
Stream saved to Skandinavia Hitlerin otteessa-2015-05-08T18:30:00+03:00.flv

Eurovision final fails to download (NetStream.Play.StreamNotFound)

Using git yle-dl and rtmpdump, the Eurovision final fails to download.

yle-dl -V -o eurovision http://areena.yle.fi/tv/2176212

'''yle-dl 2.2.1: Download media files from Yle Areena and Elävä Arkisto
Copyright (C) 2009-2014 Antti Ajanki [email protected], license: GPLv2
http://areena.yle.fi/tv/2176212.json
{ "prodNumber": "93113904000", "playCount": 25516, "links": [ ], "reportCategory": "musiikki", "naviCategory": "tv_viihde-ja-kulttuuri", "pageTitle": "Eurovision Song Contest 2014: Finaali", "pageDesc": "Vuoden suurin musiikkishow. Kommentaattoreina Sanna Pirkkalainen ja Jorma Hietam\u00e4ki. Valittavissa my\u00f6s ruotsinkielinen selostus. \u00c4\u00e4nest\u00e4 ja osallistu yle.fi/euroviisut ja #euroviisut, #eurovision. Esitetty La 10.05.2014 22.00, Yle TV2", "series": { "hasPodcast": false, "type": "video", "desc": null, "headLineText": null, "statusText": null, "expiredEpisodes": [ { "images": { "orig": "http://areena.yle.fi/static/mk/images/previews/bc/bc667956ee14431db1174d1d7f127f44/bc667956ee14431db1174d1d7f127f44_1399022992833.jpg", "XS": "http://areena.yle.fi/static/mk/images/previews/bc/bc667956ee14431db1174d1d7f127f44/bc667956ee14431db1174d1d7f127f44_1399022992833_65.jpg", "S": "http://areena.yle.fi/static/mk/images/previews/bc/bc667956ee14431db1174d1d7f127f44/bc667956ee14431db1174d1d7f127f44_1399022992833_160.jpg", "M": "http://areena.yle.fi/static/mk/images/previews/bc/bc667956ee14431db1174d1d7f127f44/bc667956ee14431db1174d1d7f127f44_1399022992833_220.jpg", "L": "http://areena.yle.fi/static/mk/images/previews/bc/bc667956ee14431db1174d1d7f127f44/bc667956ee14431db1174d1d7f127f44_1399022992833_620.jpg", "XL": "http://areena.yle.fi/static/mk/images/previews/bc/bc667956ee14431db1174d1d7f127f44/bc667956ee14431db1174d1d7f127f44_1399022992833_720.jpg" }, "directlyPlayable": false, "published": "2014-05-03T20:00:00", "expires": "2014-05-10T23:59:00", "classifications": { "main": [ { "children": [ { "key": "viihde", "keyPath": "tv/viihde-ja-kulttuuri/viihde", "name": "Viihde", "id": "140" }, { "key": "pop-rock-jazz", "keyPath": "tv/viihde-ja-kulttuuri/pop-rock-jazz", "name": "Pop, rock & jazz", "id": "144" }, { "key": "konsertit-ja-tapahtumat", "keyPath": "tv/viihde-ja-kulttuuri/konsertit-ja-tapahtumat", "name": "Konsertit ja tapahtumat", "id": "147" }, { "key": "musiikki", "keyPath": "tv/viihde-ja-kulttuuri/musiikki", "name": "Musiikki", "id": "143" } ], "key": "viihde-ja-kulttuuri", "keyPath": "tv/viihde-ja-kulttuuri", "name": "Viihde ja kulttuuri", "id": "139" } ] }, "id": "2176205", "contentType": "EPISODE", "type": "video", "title": "Esikatselumaraton", "desc": "Armottoman raadin k\u00e4sittelyss\u00e4 kaikki vuoden euroviisukappaleet. Krista Siegfrids, Ali Jahangiri, Jannika B ja Cristal Snow runttaavat euroviisukappaleet j\u00e4rjestykseen. Juontajana Marja Hintikka. yle.fi/euroviisut", "headLine": "Euroviisujen esikatselumaraton", "headLineText": null, "duration": 242, "durationSec": 14520, "restrictions": [ ], "international": false, "broadcasted": { "channel": "Yle TV2", "date": "2014-05-03T20:00:00" }, "daysSincePublish": 8, "latestPublicationUiChannelName": "Yle TV2", "episodeNumber": 1 } ], "upcomingEpisodes": [ ], "availableEpisodes": { "video": [ { "images": { "orig": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161.jpg", "XS": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_65.jpg", "S": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_160.jpg", "M": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_220.jpg", "L": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_620.jpg", "XL": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_720.jpg" }, "directlyPlayable": true, "published": "2014-05-10T22:00:00", "expires": "2014-05-17T23:59:00", "classifications": { "main": [ { "children": [ { "key": "viihde", "keyPath": "tv/viihde-ja-kulttuuri/viihde", "name": "Viihde", "id": "140" }, { "key": "pop-rock-jazz", "keyPath": "tv/viihde-ja-kulttuuri/pop-rock-jazz", "name": "Pop, rock & jazz", "id": "144" }, { "key": "konsertit-ja-tapahtumat", "keyPath": "tv/viihde-ja-kulttuuri/konsertit-ja-tapahtumat", "name": "Konsertit ja tapahtumat", "id": "147" }, { "key": "musiikki", "keyPath": "tv/viihde-ja-kulttuuri/musiikki", "name": "Musiikki", "id": "143" } ], "key": "viihde-ja-kulttuuri", "keyPath": "tv/viihde-ja-kulttuuri", "name": "Viihde ja kulttuuri", "id": "139" } ] }, "id": "2176212", "contentType": "EPISODE", "type": "video", "title": "Finaali", "desc": "Vuoden suurin musiikkishow. Kommentaattoreina Sanna Pirkkalainen ja Jorma Hietam\u00e4ki. Valittavissa my\u00f6s ruotsinkielinen selostus. \u00c4\u00e4nest\u00e4 ja osallistu yle.fi/euroviisut ja #euroviisut, #eurovision.", "headLine": "Euroviisufinaalissa my\u00f6s Suomen Softengine!", "headLineText": null, "duration": 215, "durationSec": 12900, "restrictions": [ ], "international": true, "broadcasted": { "channel": "Yle TV2", "date": "2014-05-10T22:00:01" }, "daysSincePublish": 1, "latestPublicationUiChannelName": "Yle TV2", "episodeNumber": 4 }, { "images": { "orig": "http://areena.yle.fi/static/mk/images/previews/8d/8dcb9bda9ca84e5a89a53b0a46c6809c/8dcb9bda9ca84e5a89a53b0a46c6809c_1399541891141.jpg", "XS": "http://areena.yle.fi/static/mk/images/previews/8d/8dcb9bda9ca84e5a89a53b0a46c6809c/8dcb9bda9ca84e5a89a53b0a46c6809c_1399541891141_65.jpg", "S": "http://areena.yle.fi/static/mk/images/previews/8d/8dcb9bda9ca84e5a89a53b0a46c6809c/8dcb9bda9ca84e5a89a53b0a46c6809c_1399541891141_160.jpg", "M": "http://areena.yle.fi/static/mk/images/previews/8d/8dcb9bda9ca84e5a89a53b0a46c6809c/8dcb9bda9ca84e5a89a53b0a46c6809c_1399541891141_220.jpg", "L": "http://areena.yle.fi/static/mk/images/previews/8d/8dcb9bda9ca84e5a89a53b0a46c6809c/8dcb9bda9ca84e5a89a53b0a46c6809c_1399541891141_620.jpg", "XL": "http://areena.yle.fi/static/mk/images/previews/8d/8dcb9bda9ca84e5a89a53b0a46c6809c/8dcb9bda9ca84e5a89a53b0a46c6809c_1399541891141_720.jpg" }, "directlyPlayable": true, "published": "2014-05-08T22:00:00", "expires": "2014-05-15T23:59:00", "classifications": { "main": [ { "children": [ { "key": "viihde", "keyPath": "tv/viihde-ja-kulttuuri/viihde", "name": "Viihde", "id": "140" }, { "key": "pop-rock-jazz", "keyPath": "tv/viihde-ja-kulttuuri/pop-rock-jazz", "name": "Pop, rock & jazz", "id": "144" }, { "key": "konsertit-ja-tapahtumat", "keyPath": "tv/viihde-ja-kulttuuri/konsertit-ja-tapahtumat", "name": "Konsertit ja tapahtumat", "id": "147" }, { "key": "musiikki", "keyPath": "tv/viihde-ja-kulttuuri/musiikki", "name": "Musiikki", "id": "143" } ], "key": "viihde-ja-kulttuuri", "keyPath": "tv/viihde-ja-kulttuuri", "name": "Viihde ja kulttuuri", "id": "139" } ] }, "id": "2176211", "contentType": "EPISODE", "type": "video", "title": "Semifinaali 2", "desc": "Suomen edustaja Softengine kilpailee finaalipaikasta. Kommentaattoreina Sanna Pirkkalainen ja Jorma Hietam\u00e4ki. \u00c4\u00e4nest\u00e4 ja osallistu yle.fi/euroviisut ja #euroviisut, #eurovision.", "headLine": "Suomen Softengine rynt\u00e4si finaaliin!", "headLineText": null, "duration": 125, "durationSec": 7500, "restrictions": [ ], "international": true, "broadcasted": { "channel": "Yle TV2", "date": "2014-05-08T22:00:00" }, "daysSincePublish": 3, "latestPublicationUiChannelName": "Yle TV2", "episodeNumber": 3 }, { "images": { "orig": "http://areena.yle.fi/static/mk/images/previews/78/78f7081c54ee4f4bb4d2a25169cc6f60/78f7081c54ee4f4bb4d2a25169cc6f60_1399377161682.jpg", "XS": "http://areena.yle.fi/static/mk/images/previews/78/78f7081c54ee4f4bb4d2a25169cc6f60/78f7081c54ee4f4bb4d2a25169cc6f60_1399377161682_65.jpg", "S": "http://areena.yle.fi/static/mk/images/previews/78/78f7081c54ee4f4bb4d2a25169cc6f60/78f7081c54ee4f4bb4d2a25169cc6f60_1399377161682_160.jpg", "M": "http://areena.yle.fi/static/mk/images/previews/78/78f7081c54ee4f4bb4d2a25169cc6f60/78f7081c54ee4f4bb4d2a25169cc6f60_1399377161682_220.jpg", "L": "http://areena.yle.fi/static/mk/images/previews/78/78f7081c54ee4f4bb4d2a25169cc6f60/78f7081c54ee4f4bb4d2a25169cc6f60_1399377161682_620.jpg", "XL": "http://areena.yle.fi/static/mk/images/previews/78/78f7081c54ee4f4bb4d2a25169cc6f60/78f7081c54ee4f4bb4d2a25169cc6f60_1399377161682_720.jpg" }, "directlyPlayable": true, "published": "2014-05-06T22:00:00", "expires": "2014-05-13T23:59:00", "classifications": { "main": [ { "children": [ { "key": "viihde", "keyPath": "tv/viihde-ja-kulttuuri/viihde", "name": "Viihde", "id": "140" }, { "key": "pop-rock-jazz", "keyPath": "tv/viihde-ja-kulttuuri/pop-rock-jazz", "name": "Pop, rock & jazz", "id": "144" }, { "key": "konsertit-ja-tapahtumat", "keyPath": "tv/viihde-ja-kulttuuri/konsertit-ja-tapahtumat", "name": "Konsertit ja tapahtumat", "id": "147" }, { "key": "musiikki", "keyPath": "tv/viihde-ja-kulttuuri/musiikki", "name": "Musiikki", "id": "143" } ], "key": "viihde-ja-kulttuuri", "keyPath": "tv/viihde-ja-kulttuuri", "name": "Viihde ja kulttuuri", "id": "139" } ] }, "id": "2176210", "contentType": "EPISODE", "type": "video", "title": "Semifinaali 1", "desc": "Kommentaattoreina Sanna Pirkkalainen ja Jorma Hietam\u00e4ki. Suomesta ei voi \u00e4\u00e4nest\u00e4\u00e4. Valittavissa my\u00f6s ruotsinkielinen selostus. Osallistu yle.fi/euroviisut ja #euroviisut, #eurovision.", "headLine": "Euroviisutaisto alkaa - 1. semifinaali", "headLineText": null, "duration": 121, "durationSec": 7260, "restrictions": [ ], "international": true, "broadcasted": { "channel": "Yle TV2", "date": "2014-05-06T22:00:00" }, "daysSincePublish": 5, "latestPublicationUiChannelName": "Yle TV2", "episodeNumber": 2 } ], "audio": [ ], "countAudio": 0, "countVideo": 3 }, "availableClips": { "video": [ { "images": { "orig": "http://areena.yle.fi/static/mk/images/previews/4a/4a877c9bb298424d991c4a67ac253b13/4a877c9bb298424d991c4a67ac253b13_1399283188711_720.jpg", "XS": "http://areena.yle.fi/static/mk/images/previews/4a/4a877c9bb298424d991c4a67ac253b13/4a877c9bb298424d991c4a67ac253b13_1399283188711_65.jpg", "S": "http://areena.yle.fi/static/mk/images/previews/4a/4a877c9bb298424d991c4a67ac253b13/4a877c9bb298424d991c4a67ac253b13_1399283188711_160.jpg", "M": "http://areena.yle.fi/static/mk/images/previews/4a/4a877c9bb298424d991c4a67ac253b13/4a877c9bb298424d991c4a67ac253b13_1399283188711_220.jpg", "L": "http://areena.yle.fi/static/mk/images/previews/4a/4a877c9bb298424d991c4a67ac253b13/4a877c9bb298424d991c4a67ac253b13_1399283188711_620.jpg", "XL": "http://areena.yle.fi/static/mk/images/previews/4a/4a877c9bb298424d991c4a67ac253b13/4a877c9bb298424d991c4a67ac253b13_1399283188711_720.jpg" }, "directlyPlayable": true, "published": "2014-05-05T12:30:00", "expires": null, "classifications": { "main": [ { "children": [ { "key": "musiikki", "keyPath": "tv/viihde-ja-kulttuuri/musiikki", "name": "Musiikki", "id": "143" } ], "key": "viihde-ja-kulttuuri", "keyPath": "tv/viihde-ja-kulttuuri", "name": "Viihde ja kulttuuri", "id": "139" } ] }, "id": "2266715", "contentType": "CLIP", "type": "video", "title": "N\u00e4in Euroviisujen \u00e4\u00e4nestys toimii", "desc": "Suomen euroviisujurylt\u00e4 tulee 50 prosentin osuus Suomen virallisesta pistejaosta. Toinen puolisko koostuu tv-katsojien \u00e4\u00e4nist\u00e4.", "headLine": null, "headLineText": null, "duration": 3, "durationSec": 202, "restrictions": [ ], "international": false, "broadcasted": null, "daysSincePublish": 7, "latestPublicationUiChannelName": "Areena" } ], "audio": [ ], "countAudio": 0, "countVideo": 1 }, "links": [ { "url": "http://yle.fi/aihe/euroviisut", "label": "yle.fi/euroviisut" } ], "lists": [ ], "id": "2176206", "rootId": "2176206", "episodeCountViewable": 3, "clipCountViewable": 1, "episodeCountTotal": 4, "name": "Eurovision Song Contest 2014", "shortDesc": null, "headLine": null, "img": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_720.jpg", "uiMegaImg": "http://areena.yle.fi/static/mk/images/areena/series/35349880_586_sarja_euroviisut.jpg", "images": { "orig": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_720.jpg", "XS": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_65.jpg", "S": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_160.jpg", "M": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_220.jpg", "L": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_620.jpg", "XL": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_720.jpg" } }, "availableClips": [ ], "media": { "id": "a8415a5ac2fb4291964312ab16d45f73", "protection": 0, "contentId": null, "type": "video", "audioLang": "fin", "duration": 12900, "subtitles": [ ], "downloadUrl": "" }, "downloadableMedias": [ ], "daysSincePublish": 1, "reportingTitle": "Eurovision Song Contest 2014", "reportingAudio": "fi", "images": { "orig": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161.jpg", "XS": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_65.jpg", "S": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_160.jpg", "M": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_220.jpg", "L": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_620.jpg", "XL": "http://areena.yle.fi/static/mk/images/previews/a8/a8415a5ac2fb4291964312ab16d45f73/a8415a5ac2fb4291964312ab16d45f73_1399698757161_720.jpg" }, "directlyPlayable": true, "published": "2014-05-10T22:00:00", "expires": "2014-05-17T23:59:00", "classifications": { "main": [ { "children": [ { "key": "viihde", "keyPath": "tv/viihde-ja-kulttuuri/viihde", "name": "Viihde", "id": "140" }, { "key": "pop-rock-jazz", "keyPath": "tv/viihde-ja-kulttuuri/pop-rock-jazz", "name": "Pop, rock & jazz", "id": "144" }, { "key": "konsertit-ja-tapahtumat", "keyPath": "tv/viihde-ja-kulttuuri/konsertit-ja-tapahtumat", "name": "Konsertit ja tapahtumat", "id": "147" }, { "key": "musiikki", "keyPath": "tv/viihde-ja-kulttuuri/musiikki", "name": "Musiikki", "id": "143" } ], "key": "viihde-ja-kulttuuri", "keyPath": "tv/viihde-ja-kulttuuri", "name": "Viihde ja kulttuuri", "id": "139" } ] }, "id": "2176212", "contentType": "EPISODE", "type": "video", "title": "Finaali", "desc": "Vuoden suurin musiikkishow. Kommentaattoreina Sanna Pirkkalainen ja Jorma Hietam\u00e4ki. Valittavissa my\u00f6s ruotsinkielinen selostus. \u00c4\u00e4nest\u00e4 ja osallistu yle.fi/euroviisut ja #euroviisut, #eurovision.", "headLine": "Euroviisufinaalissa my\u00f6s Suomen Softengine!", "headLineText": null, "duration": 215, "durationSec": 12900, "restrictions": [ ], "international": true, "broadcasted": { "channel": "Yle TV2", "date": "2014-05-10T22:00:01" }, "latestPublicationUiChannelName": "Yle TV2", "episodeNumber": 4 }


970
131

false

rtmpe://cp157365.edgefcs.net/ondemand?auth=eb.dVdVcodKdndoaidFcLdIbnb5dFb0acaDc5b8apcRdebsaZaIcgbSdqd8bDcMd3bc-btCptc-c0-vga-vxqDuACpqynwuIyCBp-lcl1n9lbj4kenXnlm5nanTnX&aifp=6&slist=areena/world/f1/f151c8d91fbffc784853f113cb58991b_970752;areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680;areena/world/f1/f151c8d91fbffc784853f113cb58991b_153600;areena/world/f1/f151c8d91fbffc784853f113cb58991b_631808
mp4:areena/world/f1/f151c8d91fbffc784853f113cb58991b_970752.mp4


2759
131

false

rtmpe://cp157365.edgefcs.net/ondemand?auth=eb.cTcGbRaicncJcgbGardAbXcaaucgdJdRbxcgb5a3dWaTbZbmcIbXbQcKcOcJdub5-btCptc-c0-vga-twlCtxEoqxoysGzABp-limUk8mfm7n8mVmgl4kcmTmY&aifp=6&slist=areena/world/f1/f151c8d91fbffc784853f113cb58991b_970752;areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680;areena/world/f1/f151c8d91fbffc784853f113cb58991b_153600;areena/world/f1/f151c8d91fbffc784853f113cb58991b_631808
mp4:areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680.mp4


153
43

false

rtmpe://cp157365.edgefcs.net/ondemand?auth=eb.dTdodNcZa.b0dsazbEdia8bLamdsc7cBddabdCdsd4bsaEbldWbcbvahbKc3bsda-btCptc-c0-vga-txnEzzxmpwlzuFCBup-k9l1kanhlbmcnVninam5kSlV&aifp=6&slist=areena/world/f1/f151c8d91fbffc784853f113cb58991b_970752;areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680;areena/world/f1/f151c8d91fbffc784853f113cb58991b_153600;areena/world/f1/f151c8d91fbffc784853f113cb58991b_631808
mp4:areena/world/f1/f151c8d91fbffc784853f113cb58991b_153600.mp4


631
131

false

rtmpe://cp157365.edgefcs.net/ondemand?auth=eb.dsc5cXcwdidraVbfbqbebgdIaNdoaUcRc3cob7cYbWahbbdecrc8cRcQdFcvcDd_-btCptc-c0-vga-wwqDzzypvyqwtGCBAn-lfnYkhndj8m8nYmlmam6nYn0&aifp=6&slist=areena/world/f1/f151c8d91fbffc784853f113cb58991b_970752;areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680;areena/world/f1/f151c8d91fbffc784853f113cb58991b_153600;areena/world/f1/f151c8d91fbffc784853f113cb58991b_631808
mp4:areena/world/f1/f151c8d91fbffc784853f113cb58991b_631808.mp4



Selected stream
{"videoBitrate": 2759, "audioBitrate": 131, "connect": "rtmpe://cp157365.edgefcs.net/ondemand?auth=eb.cTcGbRaicncJcgbGardAbXcaaucgdJdRbxcgb5a3dWaTbZbmcIbXbQcKcOcJdub5-btCptc-c0-vga-twlCtxEoqxoysGzABp-limUk8mfm7n8mVmgl4kcmTmY&aifp=6&slist=areena/world/f1/f151c8d91fbffc784853f113cb58991b_970752;areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680;areena/world/f1/f151c8d91fbffc784853f113cb58991b_153600;areena/world/f1/f151c8d91fbffc784853f113cb58991b_631808", "stream": "mp4:areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680.mp4", "hardSubtitles": ""}

80.239.254.213
Output file: eurovision
Executing:
/usr/bin/rtmpdump --playpath=mp4:areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680.mp4 --swfUrl=http://areena.yle.fi/static/player/1.2.8/flowplayer/flowplayer.commercial-3.2.7-encrypted.swf --app=ondemand?_fcs_vhost=cp157365.edgefcs.net&auth=eb.cTcGbRaicncJcgbGardAbXcaaucgdJdRbxcgb5a3dWaTbZbmcIbXbQcKcOcJdub5-btCptc-c0-vga-twlCtxEoqxoysGzABp-limUk8mfm7n8mVmgl4kcmTmY&aifp=6&slist=areena/world/f1/f151c8d91fbffc784853f113cb58991b_970752;areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680;areena/world/f1/f151c8d91fbffc784853f113cb58991b_153600;areena/world/f1/f151c8d91fbffc784853f113cb58991b_631808 --pageUrl=http://areena.yle.fi/tv/2176212 --rtmp=rtmpe://cp157365.edgefcs.net/ondemand --tcUrl=rtmpe://80.239.254.213/ondemand?_fcs_vhost=cp157365.edgefcs.net&auth=eb.cTcGbRaicncJcgbGardAbXcaaucgdJdRbxcgb5a3dWaTbZbmcIbXbQcKcOcJdub5-btCptc-c0-vga-twlCtxEoqxoysGzABp-limUk8mfm7n8mVmgl4kcmTmY&aifp=6&slist=areena/world/f1/f151c8d91fbffc784853f113cb58991b_970752;areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680;areena/world/f1/f151c8d91fbffc784853f113cb58991b_153600;areena/world/f1/f151c8d91fbffc784853f113cb58991b_631808 -V -o eurovision
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Protocol : RTMPE
DEBUG: Hostname : cp157365.edgefcs.net
DEBUG: Port : 1935
DEBUG: Playpath : mp4:areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680.mp4
DEBUG: tcUrl : rtmpe://80.239.254.213/ondemand?_fcs_vhost=cp157365.edgefcs.net&auth=eb.cTcGbRaicncJcgbGardAbXcaaucgdJdRbxcgb5a3dWaTbZbmcIbXbQcKcOcJdub5-btCptc-c0-vga-twlCtxEoqxoysGzABp-limUk8mfm7n8mVmgl4kcmTmY&aifp=6&slist=areena/world/f1/f151c8d91fbffc784853f113cb58991b_970752;areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680;areena/world/f1/f151c8d91fbffc784853f113cb58991b_153600;areena/world/f1/f151c8d91fbffc784853f113cb58991b_631808
DEBUG: swfUrl : http://areena.yle.fi/static/player/1.2.8/flowplayer/flowplayer.commercial-3.2.7-encrypted.swf
DEBUG: pageUrl : http://areena.yle.fi/tv/2176212
DEBUG: app : ondemand?_fcs_vhost=cp157365.edgefcs.net&auth=eb.cTcGbRaicncJcgbGardAbXcaaucgdJdRbxcgb5a3dWaTbZbmcIbXbQcKcOcJdub5-btCptc-c0-vga-twlCtxEoqxoysGzABp-limUk8mfm7n8mVmgl4kcmTmY&aifp=6&slist=areena/world/f1/f151c8d91fbffc784853f113cb58991b_970752;areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680;areena/world/f1/f151c8d91fbffc784853f113cb58991b_153600;areena/world/f1/f151c8d91fbffc784853f113cb58991b_631808
DEBUG: live : no
DEBUG: timeout : 30 sec
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Client type: 06
DEBUG: HandShake: DH pubkey position: 472
DEBUG: HandShake: Client digest offset: 1383
DEBUG: HandShake: Initial client digest:
DEBUG: 71 74 61 4b 6a 09 61 29 92 dc a6 dc f8 b2 3d eb
DEBUG: 43 24 6d ff 59 d0 3b 42 b7 8a de 00 aa 95 0f 3d
DEBUG: HandShake: Type Answer : 09
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
DEBUG: HandShake: Server Uptime : 867308586
DEBUG: HandShake: FMS Version : 4.5.2.1
DEBUG: HandShake: Server DH public key offset: 541
DEBUG: HandShake: Secret key:
DEBUG: 3f d4 3e ee 50 cd 17 27 92 cb b4 e6 91 90 aa fa
DEBUG: 95 b3 29 a6 f5 38 fa c2 90 93 c1 d9 30 8a dc 5e
DEBUG: 71 3b 9a a0 5f 29 97 b4 ed 3b b6 03 d2 91 0b 71
DEBUG: 02 99 c2 52 6f 24 90 88 bb cf 65 26 0e d7 b6 4e
DEBUG: 08 19 2e a7 86 40 0c 1f 18 c3 aa 66 82 c9 49 a7
DEBUG: 6d 94 e6 7b 02 c8 ea 0b af 31 84 92 f2 4a ca d9
DEBUG: ed 7b 1e dc 92 b5 6c 64 ce f8 cd f3 99 16 42 7c
DEBUG: c7 91 26 04 c0 9c 49 30 c5 88 a5 e8 1f 00 7d 0b
DEBUG: RC4 Out Key:
DEBUG: 3c 8d a6 42 4f 09 a5 18 40 da 9a 36 64 72 75 d2
DEBUG: RC4 In Key:
DEBUG: 06 1d df 6a 23 21 9d 46 3b 26 2f f6 55 b6 5b f7
DEBUG: HandShake: Calculated digest key from secure key and server digest:
DEBUG: a3 8f 04 e8 90 87 2d ce ae 71 07 0b c2 8f 17 1e
DEBUG: 80 3f f9 cf b6 d3 4b 9c cb df 3f 7d 8c ef 65 3d
DEBUG: HandShake: Client signature calculated:
DEBUG: 98 74 f3 e6 c8 83 15 97 96 b3 88 46 f9 4f 8b 4f
DEBUG: 33 14 aa d5 64 e9 ca 32 19 06 66 a0 25 1a b4 3b
DEBUG: HandShake: Server sent signature:
DEBUG: c5 3c f9 a1 6e b6 c5 b6 e2 17 46 2b 86 b8 6f 52
DEBUG: e6 6d 2c 51 b5 36 d1 7f 69 66 a7 91 7a 70 75 fc
DEBUG: HandShake: Digest key:
DEBUG: 8f 39 28 82 48 6f 4f 60 40 4e 84 1a c4 d3 78 3a
DEBUG: cc a8 17 79 9e ae f7 f3 32 b1 8f f8 aa 22 43 ec
DEBUG: HandShake: Signature calculated:
DEBUG: c5 3c f9 a1 6e b6 c5 b6 e2 17 46 2b 86 b8 6f 52
DEBUG: e6 6d 2c 51 b5 36 d1 7f 69 66 a7 91 7a 70 75 fc
DEBUG: HandShake: Genuine Adobe Flash Media Server
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG: Invoking connect
INFO: Connected...
DEBUG: HandleServerBW: server BW = 1250000
DEBUG: HandleClientBW: client BW = 1250000 2
DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG: RTMP_ClientPacket, received: invoke 240 bytes
DEBUG: (object begin)
DEBUG: (object begin)
DEBUG: Property: <Name: fmsVer, STRING: FMS/4,5,2,524>
DEBUG: Property: <Name: capabilities, NUMBER: 127.00>
DEBUG: Property: <Name: mode, NUMBER: 1.00>
DEBUG: (object end)
DEBUG: (object begin)
DEBUG: Property: <Name: level, STRING: status>
DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Success>
DEBUG: Property: <Name: description, STRING: Connection succeeded.>
DEBUG: Property: <Name: objectEncoding, NUMBER: 0.00>
DEBUG: Property: <Name: data, ECMA_ARRAY>
DEBUG: (object begin)
DEBUG: Property: <Name: version, STRING: 4,5,2,524>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call
DEBUG: sending ctrl. type: 0x0003
DEBUG: Invoking createStream
DEBUG: RTMP_ClientPacket, received: invoke 21 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking
DEBUG: Invoking _checkbw
DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call
DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: mp4:areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680.mp4
DEBUG: Invoking play
DEBUG: sending ctrl. type: 0x0003
DEBUG: RTMP_ClientPacket, received: invoke 10275 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_onbwcheck>
DEBUG: Invoking _result
DEBUG: RTMP_ClientPacket, received: invoke 40 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_onbwdone>
DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG: RTMP_ClientPacket, received: invoke 281 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object begin)
DEBUG: Property: <Name: level, STRING: error>
DEBUG: Property: <Name: code, STRING: NetStream.Play.StreamNotFound>
DEBUG: Property: <Name: description, STRING: Failed to play areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680.mp4; stream not found.>
DEBUG: Property: <Name: details, STRING: areena/world/f1/f151c8d91fbffc784853f113cb58991b_2759680.mp4>
DEBUG: Property: <Name: clientid, STRING: oAArA5AA>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking
DEBUG: HandleInvoke, onStatus: NetStream.Play.StreamNotFound
ERROR: Closing connection: NetStream.Play.StreamNotFound
DEBUG: Closing connection.'''

No module named Crypto.Cipher

Hi,
I have installed everything as explained. The latest yle-dl and pycrypto. However, I get this error when trying to download an episode.

Efims-MacBook-Pro:UP_Videos fimkap$ yle-dl http://areena.yle.fi/tv/1226627 -o up106.flv
Traceback (most recent call last):
File "/usr/local/bin/yle-dl", line 31, in
from Crypto.Cipher import AES
ImportError: No module named Crypto.Cipher

What can be done about this?
Thanks

Subtitles only downloaded when downloading one-by-one

When downloading an individual episode, subtitles are also included:
yle-dl http://areena.yle.fi/tv/1914197

When downloading all episodes, subtitles are not included:
yle-dl http://areena.yle.fi/tv/1929323

Subtitles are omitted even if using the --sublang switch:
yle-dl --sublang fin http://areena.yle.fi/tv/1929323

Subtitles should be included when downloading all episodes, just as they are for individuals.

Yle-dl crashes if the output filename contains umlauts.

yle-dl -o läskit.flv http://areena.yle.fi/tv/1552699

Traceback (most recent call last):
File "/usr/bin/yle-dl", line 931, in
main()
File "/usr/bin/yle-dl", line 927, in main
sys.exit(dl.download_episodes(url, rtmpdumpargs, latest_episode, sublang, destdir))
File "/usr/bin/yle-dl", line 294, in download_episodes
return self.process_episodes(url, parameters, latest_episode, sublang, destdir, False)
File "/usr/bin/yle-dl", line 308, in process_episodes
sublang, destdir, print_url)
File "/usr/bin/yle-dl", line 341, in process_single_episode
self.download_subtitles(media['subtitles'], sublang, outputfile)
File "/usr/bin/yle-dl", line 605, in download_subtitles
subtitlefile = basename + '.' + lang + '.srt'
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)

UnicodeDecodeError

Moro

Osaako joku kertoa miksi lataus epäonnistuu seuraavalla tavalla:

(asennus toimii muuten ja muiden kohteiden lataus onnistuu - MacOS kyseessä)


yle-dl http://areena.yle.fi/tv/1826507
.......
File "/usr/local/bin/yle-dl", line 1997, in
main()
File "/usr/local/bin/yle-dl", line 1993, in main
sys.exit(dl.download_episodes(url, sfilt, rtmpdumpargs, destdir))
File "/usr/local/bin/yle-dl", line 1681, in download_episodes
return self._retry_call('download_episodes', _args, *_kwargs)
File "/usr/local/bin/yle-dl", line 1668, in _retry_call
res = method(_args, *_kwargs)
File "/usr/local/bin/yle-dl", line 370, in download_episodes
self.OP_DOWNLOAD)
File "/usr/local/bin/yle-dl", line 412, in process_episodes
rtmpdumpargs, destdir, optype)
File "/usr/local/bin/yle-dl", line 445, in process_single_episode
self.download_subtitles(self.clip_subtitles(clip), filters, outputfile)
File "/usr/local/bin/yle-dl", line 316, in download_subtitles
self.add_BOM(subtitlefile)
File "/usr/local/bin/yle-dl", line 329, in add_BOM
encoded_filename = filename.encode(enc, 'replace')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 16: ordinal not in range(128)
.......

Feature requeste,New parameter for preventing download same episode again

Feature requeste
New parameter for preventing download same episode again.
I have used --latestepisode option for checking is there new episodes. Git version of yle-dl is downloading same episode again, it only gives it a new name.

Example:
$yle-dl -q --latestepisode http://areena.yle.fi/?q=villi+tulevaisuus
Villi tulevaisuus-2012-05-20-09:35:00.flv exists, trying an alternative name
Output file: Villi tulevaisuus-2012-05-20-09:35:00-1.flv

I wish that you introduce new parameter were user can select is episode downloaded if filename exists already.

Example:
$yle-dl -q --newparameter --latestepisode http://areena.yle.fi/?q=villi+tulevaisuus
Villi tulevaisuus-2012-05-20-09:35:00.flv exists, "New parameter used, no need to download"

ERROR: rtmp server sent error

All videos now give the following error. Apparently YLE changed something :(

$ yle-dl http://areena.yle.fi/tv/1282264
Aamutohtori: Pidä aivoistasi kesällä huolta-2010-06-09-09:24:00.flv exists, trying an alternative name
Aamutohtori: Pidä aivoistasi kesällä huolta-2010-06-09-09:24:00-1.flv exists, trying an alternative name
Output file: Aamutohtori: Pidä aivoistasi kesällä huolta-2010-06-09-09:24:00-2.flv
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close

"Failed to download papi" -error

Getting the following errors:

yle-dl http://areena.yle.fi/tv/2078114
yle-dl 2.5.0: Download media files from Yle Areena and Elävä Arkisto
Copyright (C) 2009-2015 Antti Ajanki [email protected], license: GPLv2
Can't read http://papi.yle.fi/ng/mod/hds/8f993690557545baa24aae56fb3dcbb6: HTTP Error 404: Not Found
Failed to download papi
Unsupported stream at http://areena.yle.fi/tv/2078114: HDS stream not found
Can't read http://papi.yle.fi/ng/mod/hds/8f993690557545baa24aae56fb3dcbb6: HTTP Error 404: Not Found
Failed to download papi
Unsupported stream at http://areena.yle.fi/tv/2078114: HDS stream not found
Can't read http://papi.yle.fi/ng/mod/rtmp/8f993690557545baa24aae56fb3dcbb6: HTTP Error 404: Not Found
Failed to download papi
Unsupported stream at http://areena.yle.fi/tv/2078114: Stream not valid

Can't download radio programs from Areena

I can't download radio programs from Areena. No issues with tv programs or material from Elävä Arkisto. The following log concerns this: http://areena.yle.fi/radio/2540958


yle-dl 2.5.0: Download media files from Yle Areena and Elävä Arkisto
Copyright (C) 2009-2015 Antti Ajanki [email protected], license: GPLv2
Warning: Resume not supported on this stream

                        KSV Adobe HDS Downloader

Processing manifest info....
Unable to download the manifest
Warning: Resume not supported on this stream
Output file: Työttömyysturva remonttiin-2015-01-29T08:10:00.flv
[download] Downloading f4m manifest
Traceback (most recent call last):
File "/usr/bin/yle-dl", line 2022, in
main()
File "/usr/bin/yle-dl", line 2018, in main
sys.exit(dl.download_episodes(url, sfilt, rtmpdumpargs, destdir))
File "/usr/bin/yle-dl", line 1632, in download_episodes
return self._retry_call('download_episodes', _args, *_kwargs)
File "/usr/bin/yle-dl", line 1621, in _retry_call
return self._retry_call(method_name, _args, *_kwargs)
File "/usr/bin/yle-dl", line 1619, in _retry_call
res = method(_args, *_kwargs)
File "/usr/bin/yle-dl", line 376, in download_episodes
self.OP_DOWNLOAD)
File "/usr/bin/yle-dl", line 418, in process_episodes
rtmpdumpargs, destdir, optype)
File "/usr/bin/yle-dl", line 452, in process_single_episode
return downloader.save_stream()
File "/usr/bin/yle-dl", line 1877, in save_stream
if not f4mdl.download(outputfile, info):
File "/usr/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 314, in download
return self.real_download(filename, info_dict)
File "/usr/lib/python2.7/site-packages/youtube_dl/downloader/f4m.py", line 237, in real_download
manifest = self.ydl.urlopen(man_url).read()
File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1485, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 475, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

Download may be incomplete?

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
ERROR: rtmp server sent error
Starting Live Stream
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
0.000 kB / 0.00 sec
Download may be incomplete (downloaded about 0.00%), try resuming

This happens only when i try:
yle-dl -vfat -sublang fin "http://areena.yle.fi/tv/2059367"

it thinks it is Live stream and it is not...

but
yle-dl "http://areena.yle.fi/tv/2059367"

Works fine

Bug or my error? ---- My error. Sorry :)

Handle termination signals better (Unix)

yle-dl only handles Ctrl+C or SIGINT signal to terminate cleanly. SIGINT works because Python converts SIGINT into KeyboardInterrupt (kind of funny). If some other signal is sent (SIGTERM, SIGKILL), yle-dl quits but leaves rtmpdump running!

WARNING: HandShake: Type mismatch: client sent 6, server answered 9

Lataus päättyy seuraavanlaisella virheilmoituksella:

$ yle-dl http://areena.yle.fi/tv/2177973
yle-dl 2.2.1: Download media files from Yle Areena and Elävä Arkisto
Copyright (C) 2009-2014 Antti Ajanki [email protected], license: GPLv2
Subtitles saved to Luontoretkellä: Suden jäljillä Oslossa-2014-06-02T14:25:22.swe.srt
Subtitles saved to Luontoretkellä: Suden jäljillä Oslossa-2014-06-02T14:25:22.fin.srt
Output file: Luontoretkellä: Suden jäljillä Oslossa-2014-06-02T14:25:22.flv
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close

YLE has reorganized their web site, yle-dl seems not to accept new URLs

The old Areena is still there, but the URLs are not accepted by yle-dl.

yle-dl http://areena-v3.yle.fi/tv/2449805
yle-dl 2.3.1: Download media files from Yle Areena and Elävä Arkisto
Copyright (C) 2009-2014 Antti Ajanki [email protected], license: GPLv2
Unsupported URL http://areena-v3.yle.fi/tv/2449805.
Is this really a Yle video page?

The new Areena has new type of URLs. yle-dl is happy with the URL, but does not find a file behind it.

yle-dl http://areena.yle.fi/1-2449804
yle-dl 2.3.1: Download media files from Yle Areena and Elävä Arkisto
Copyright (C) 2009-2014 Antti Ajanki [email protected], license: GPLv2
Can't read http://areena.yle.fi/1-2449804.json: HTTP Error 404: Not Found
Can't read http://areena.yle.fi/1-2449804.json: HTTP Error 404: Not Found

Is this a yle-dl issue that can be fixed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.