Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 06-19-2015, 08:24 PM
joejones15 joejones15 is offline
Senior Member
 
Join Date: Mar 2015
Posts: 222
joejones15 is on a distinguished road
Default

help livestreamer


site (italy vpn):

Code:
http://sport.sky.it/sport/formula1/video/intervista_vettel_246238.html
i sniff these 2 lines, but how to combine in livestreamer?

Code:
http://video.sky.it/SkyItVideoportalUtility/getVODAccessToken.do?jsonp=_jqjsp&token=66b857ac081bfc74ba34a36679dc551f&url=http%3A%2F%2Fvideodemand-vh.akamaihd.net%2Fz%2Fsecure%2Fencoded%2F2015%2F06%2F19%2F1434703735892_gp_austria_vettel_fuori_nelle_libere_%2Cweb_low%2Cweb_med%2Cweb_high%2C.mp4.csmil%2Fmanifest.f4m&dec=0&_1434763393543=
Code:
http://videodemand-vh.akamaihd.net/z/secure/encoded/2015/06/19/1434703735892_gp_austria_vettel_fuori_nelle_libere_,web_low,web_med,web_high,.mp4.csmil/manifest.f4m?hdnea=st=1434763383~exp=1434763683~acl=/z/secure/encoded/2015/06/19/1434703735892_gp_austria_vettel_fuori_nelle_libere_*~hmac=32ce0523e765b09cf5e1a3fd55132ff987b25bd51ccd030630cd3b2662c5902b&hdcore=3.1.0
Reply With Quote
  #2  
Old 06-20-2015, 05:39 AM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: help livestreamer


Quote:
Originally Posted by joejones15 View Post
site (italy vpn):

Code:
http://sport.sky.it/sport/formula1/video/intervista_vettel_246238.html
i sniff these 2 lines, but how to combine in livestreamer?

Code:
http://video.sky.it/SkyItVideoportalUtility/getVODAccessToken.do?jsonp=_jqjsp&token=66b857ac081bfc74ba34a36679dc551f&url=http%3A%2F%2Fvideodemand-vh.akamaihd.net%2Fz%2Fsecure%2Fencoded%2F2015%2F06%2F19%2F1434703735892_gp_austria_vettel_fuori_nelle_libere_%2Cweb_low%2Cweb_med%2Cweb_high%2C.mp4.csmil%2Fmanifest.f4m&dec=0&_1434763393543=
Code:
http://videodemand-vh.akamaihd.net/z/secure/encoded/2015/06/19/1434703735892_gp_austria_vettel_fuori_nelle_libere_,web_low,web_med,web_high,.mp4.csmil/manifest.f4m?hdnea=st=1434763383~exp=1434763683~acl=/z/secure/encoded/2015/06/19/1434703735892_gp_austria_vettel_fuori_nelle_libere_*~hmac=32ce0523e765b09cf5e1a3fd55132ff987b25bd51ccd030630cd3b2662c5902b&hdcore=3.1.0
hi
first i change
Code:
http://video.sky.it/SkyItVideoportalUtility/getVODAccessToken.do?jsonp=_jqjsp&token=66b857ac081bfc74ba34a36679dc551f&url=http%3A%2F%2Fvideodemand-vh.akamaihd.net%2Fz%2Fsecure%2Fencoded%2F2015%2F06%2F19%2F1434703735892_gp_austria_vettel_fuori_nelle_libere_%2Cweb_low%2Cweb_med%2Cweb_high%2C.mp4.csmil%2Fmanifest.f4m&dec=0&_1434763393543=
i delete _jqjsp to have proper json

after you can use php script


Code:
<?php
$curl = curl_init('http://video.sky.it/SkyItVideoportalUtility/getVODAccessToken.do?jsonp=&token=66b857ac081bfc74ba34a36679dc551f&url=http%3A%2F%2Fvideodemand-vh.akamaihd.net%2Fz%2Fsecure%2Fencoded%2F2015%2F06%2F19%2F1434703735892_gp_austria_vettel_fuori_nelle_libere_%2Cweb_low%2Cweb_med%2Cweb_high%2C.mp4.csmil%2Fmanifest.f4m&dec=0&_1434763393543=');

curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

$return = curl_exec($curl);

curl_close($curl);

$Fnm = "curl.txt"; $inF = fopen($Fnm,"w"); fputs($inF,"$return");
fclose($inF);

$link="curl.txt";

$hds=json_decode(file_get_contents($link))->url;

$url=str_replace("http","hds",$hds)." pvswf=http://videoplatform.sky.it/player/swf/player_v2.swf";

echo "Starting livestreamer...\n\n";
	echo shell_exec("livestreamer  \"$url\"  best -o gp_austria_vettel_fuori_nelle_libere.flv &");
	echo "Done.\n";
?>
Reply With Quote
  #3  
Old 06-20-2015, 08:49 AM
joejones15 joejones15 is offline
Senior Member
 
Join Date: Mar 2015
Posts: 222
joejones15 is on a distinguished road
Default

Re: help livestreamer


wow, very advanced, will take me a while to understand, thank you Biezom!
Reply With Quote
  #4  
Old 06-20-2015, 10:02 AM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: help livestreamer


Quote:
Originally Posted by joejones15 View Post
wow, very advanced, will take me a while to understand, thank you Biezom!
maybe easer to understand

Code:
<?php
$json="http://video.sky.it/SkyItVideoportalUtility/getVODAccessToken.do?jsonp=&token=66b857ac081bfc74ba34a36679dc551f&url=http%3A%2F%2Fvideodemand-vh.akamaihd.net%2Fz%2Fsecure%2Fencoded%2F2015%2F06%2F19%2F1434703735892_gp_austria_vettel_fuori_nelle_libere_%2Cweb_low%2Cweb_med%2Cweb_high%2C.mp4.csmil%2Fmanifest.f4m&dec=0&_1434763393543=";

$hds=json_decode(file_get_contents($json))->url;

$url=str_replace("http","hds",$hds)." pvswf=http://videoplatform.sky.it/player/swf/player_v2.swf";

echo "Starting livestreamer...\n\n";
	echo shell_exec("livestreamer  \"$url\"  best -o gp_austria_vettel_fuori_nelle_libere.flv &");
	echo "Done.\n";
?>
Reply With Quote
  #5  
Old 06-20-2015, 01:05 PM
joejones15 joejones15 is offline
Senior Member
 
Join Date: Mar 2015
Posts: 222
joejones15 is on a distinguished road
Default

Re: help livestreamer


even easier, thanks Biezom!
Reply With Quote
  #6  
Old 06-20-2015, 01:41 PM
joejones15 joejones15 is offline
Senior Member
 
Join Date: Mar 2015
Posts: 222
joejones15 is on a distinguished road
Default

Re: help livestreamer


maybe im doing something wrong:

save proper code in "notepad" as "test.php" file

run this in my browser address line:

Code:
localhost/test.php
but no success for me...?

do i need special software?
Reply With Quote
  #7  
Old 06-21-2015, 07:57 AM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: help livestreamer


Quote:
Originally Posted by joejones15 View Post
even easier, thanks Biezom!
on windows i use this version of php

http://windows.php.net/downloads/rel...32-VC9-x86.zip

1) unzip in C:\php (for example)
2) open cmd.exe (command shell)
3) go to php's folder
Code:
cd C:\php
4) run php code
Code:
php test.php
Reply With Quote
  #8  
Old 06-24-2015, 06:58 PM
joejones15 joejones15 is offline
Senior Member
 
Join Date: Mar 2015
Posts: 222
joejones15 is on a distinguished road
Default

Re: help livestreamer


i think i am getting close:

i am getting this error when i run the php script:

"error: no plugin can handle URL: pvswf=http://videoplatform.sky.it/player/swf/player_v2.swf"

EDIT: it works now, i forgot to remove: "_jqjsp"

Last edited by joejones15 : 06-24-2015 at 08:41 PM.
Reply With Quote
Reply Post New Thread
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 06:37 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons