PDA

View Full Version : Capture from tv.nrk.no


komocka
05-03-2012, 09:57 PM
More and more channels are using HTTP Dynamic Streaming, the Norwegian http://tv.nrk.no/ has also gone for that, any suggestion how to capture these streams?

E.g. http://tv.nrk.no/serie/distriktsnyheter-moere-og-romsdal

svnpenn
05-23-2012, 11:44 PM
Download parts with DownThemAll!

http://nordond11c-f.akamaihd.net/z/wo/open/d2/d2c345f757010d561f61006ed04da1547ad70279/d2c345f757010d561f61006ed04da1547ad70279_,141,316, 563,1266,2250,.mp4.csmil/4_1ccddad57efe0103_Seg1-Frag[1:216]

Join parts with AdobeHDS.php

$ php AdobeHDS.php 4_1ccddad57efe0103_Seg1-Frag

KSV Adobe HDS Downloader

Found 216 fragments
Joined 216 fragments in 1.84 seconds
Finished

chap
05-24-2012, 12:30 AM
alternative(use ffmpeg)
http://nordond11c-f.akamaihd.net/i/wo/open/d2/d2c345f757010d561f61006ed04da1547ad70279/d2c345f757010d561f61006ed04da1547ad70279_,141,316, 563,1266,2250,.mp4.csmil/master.m3u8

svnpenn
05-24-2012, 12:01 PM
I think what chap meant with his curtness was

ffmpeg \
-i http://nordond11c-f.akamaihd.net/i/wo/open/d2/d2c345f757010d561f61006ed04da1547ad70279/d2c345f757010d561f61006ed04da1547ad70279_,141,316, 563,1266,2250,.mp4.csmil/master.m3u8 \
-c copy \
out.ts

komocka
05-25-2012, 08:01 AM
Thank you, it definitely seem possible to capture it.

How can find the link to the .m3u8 file? In the source of the page I find the link to the .f4m file

http://nordond37c-f.akamaihd.net/z/wo/open/31/3180dd16fa3aed10510fd39d4d6932f7af392a48/3180dd16fa3aed10510fd39d4d6932f7af392a48_,141,316, 563,1266,2250,.mp4.csmil/manifest.f4m

svnpenn
05-25-2012, 07:27 PM
How can find the link to the .m3u8 file?

There is a nice thread here explaining it

nrkbeta.no/2012/04/23/test-nrks-splitter-nye-nett-tv

Basically they only deliver m3u8 to mobile devices, so you can trick it into doing that

$ wget -qO- -U iPad tv.nrk.no/serie/distriktsnyheter-moere-og-romsdal | grep -m1 m3u8
data-media="http://nordond30b-f.akamaihd.net/i/wo/open/63/634b94ab86372bc521fe2b3dd4bf65b3ef49af0c/634b94ab86372bc521fe2b3dd4bf65b3ef49af0c_,141,316, 563,1266,2250,.mp4.csmil/master.m3u8"​

komocka
05-27-2012, 02:36 AM
ffmpeg downloads it, but sound and image are not synchronized.

AdobeHDS.php seems to do a better job, on the example above, but when I try to download any other program from that channel I can find the link to all the individual .ts files (from the .m3u8 file) and download all of them, but when I try to merge them with AdobeHDS.php I only get a 13 byte file - it just contains the FLV header.

I seem to miss where to find the link to *Seg1-Frag[1:216]?

svnpenn
05-27-2012, 02:40 AM
I seem to miss where to find the link to *Seg1-Frag[1:216]?

Use DownThemAll!

For christ sake learn how to read.

komocka
05-27-2012, 10:08 PM
Use DownThemAll!

For christ sake learn how to read.

I can very well understand that I can download the fragments with e.g. DownThemAll. But to do that I first need to find the link to the fragments!

svnpenn
05-27-2012, 10:26 PM
I first need to find the link to the fragments!

Actually I used

Firebug, Net tab

komocka
05-28-2012, 06:11 AM
Thank you, Fiddler2 also worked.

And that gives the links to the segments of the default stream, hmm I have to test if I also, somehow, can choose any of the other resolutions also.

KSV
05-28-2012, 11:51 PM
Thank you, Fiddler2 also worked.

And that gives the links to the segments of the default stream, hmm I have to test if I also, somehow, can choose any of the other resolutions also.

if you are using AdobeHDS.php then why don't you take a look at it's available options like --manifest and --quality. you can grab the latest script here (https://github.com/K-S-V/Scripts).

komocka
05-29-2012, 03:34 AM
I tried to use AdobeHDS.php --manifest

But I'm not allowed to download the manifest.f4m file

"Access Denied! Unable to download manifest."

Otherwise that would be MUCH easier! And I don't understand how my web browser can read the manifest.f4m file, while AdobeHDS.php is not allowed to?

KSV
05-29-2012, 03:44 AM
just use the proper url.

AdobeHDS.php --manifest "http://nordond30b-f.akamaihd.net/z/wo/open/63/634b94ab86372bc521fe2b3dd4bf65b3ef49af0c/634b94ab86372bc521fe2b3dd4bf65b3ef49af0c_,141,316, 563,1266,2250,.mp4.csmil/manifest.f4m?hdcore=2.6.8&g=DSBJXRNWKQOP" --delete

komocka
05-29-2012, 04:07 AM
Thank you,

I thought that I could download the manifest.f4m file from the address in the source page, but now I realized that I can get the correct manifest.f4m address from the web debugger, and that seems to work very nice!

k1601
01-03-2013, 01:54 PM
Hello,

I'm using AdobeHDS.php and HDS Link Detector. When I try do download video from nrk.no I get error:
Processing manifest info....
Quality Selection:
Available: 2400 1417 715 388 213
Selected : 2400
Access Denied! Unable to download fragments.

Link to the video (for example):
http://tv.nrk.no/serie/tour-de-ski/mspo40010413/29-12-2012

Command for AdobeHDS.php:
php AdobeHDS.php --proxy 62.97.212.167:80 --quality high --manifest "http://nordond9b-f.akamaihd.net/z/no/open/52/527813242f8d41445cd7292415e8ddf192f97f32/527813242f8d41445cd7292415e8ddf192f97f32_,141,316, 563,1266,2250,.mp4.csmil/manifest.f4m?hdcore=2.11.3&g=STERXVUJWBSY" --delete --auth "als=0,0.1,0,3,0,NaN,0,0,0,27,f,0,3720.21,f,s,STERX VUJWBSY,2.11.3,27&hdcore=2.11.3" --useragent "Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20100101 Firefox/17.0"

What I do wrong? Help, please!

Thanks in advance.

UPD:
Sorry, I did't see option "fproxy" for fragments, it maybe help. But another error now (try to record live video from http://tv.nrk.no/direkte/nrk1):
Processing manifest info....
Failed to get bootstrap info

marlar
12-04-2015, 10:20 AM
You can record from tv.nrk.no with my Chrome app, TV4ever (https://chrome.google.com/webstore/detail/tv4ever/hakgeikmiemocehnfkjdahojanjpjcch)

It can also (soon!) display the correct command lines to capture with AdobeHDS etc. Currently that is only for dr.dk/tv but will be available for nrk within a few days.

Hope you will enjoy the app :)

heenleen
11-04-2016, 03:40 AM
You may try use Allavsoft to download NRK TV Video or Radio to MP4, WMV, AVI, MP3, AAC.