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
  #61  
Old 04-05-2016, 05:16 AM
surya987 surya987 is offline
Senior Member
 
Join Date: May 2014
Location: India
Posts: 280
surya987 is on a distinguished road
Default

Re: Downloading from voot.com


the method is bit tricky but simple...

1st play video normally in your browser and copy the mpd link from network tab in devolper tool by pressing F12..

for example for this episode http://www.voot.com/shows/khatron-ke...-finale/389224

the mpd link is

Code:
http://video.voot.com/edash/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_,s70wvy0u,rq528j27,o8ql2x0l,/forceproxy/true/name/a.mp4.urlset/manifest.mpd
copy the last code in red only its 1080p and green is 720p

now change your browser useragent to ipad or iphone and play video and copy the m3u8 link from network tab of devolper tool

the m3u8 link for episode is

Code:
http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_bdfpvmpv/name/a.mp4/index.m3u8
now replace the blue code with red code (1080p) or to green (720p)

the link will look like this now for 1080p

Code:
http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_o8ql2x0l/name/a.mp4/index.m3u8
simple open the cmd as administrator and go to livestreamer directory using CD command and use the command

Code:
livestreamer "hls://http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_o8ql2x0l/name/a.mp4/index.m3u8" best -o "output.ts"
you are done Enjoy...

Reply With Quote
  #62  
Old 04-05-2016, 05:18 AM
pashok326 pashok326 is offline
Member
 
Join Date: Apr 2016
Posts: 33
pashok326 is on a distinguished road
Default

Re: Downloading from voot.com


Quote:
Originally Posted by biezom View Post
hi

two codes php and python

no need vpn it works without indian ip

Code:
<?php

$idcontent = substr($argv[1], -6);
$data = '{"initObj":{"Locale":{"LocaleLanguage":"","LocaleCountry":"","LocaleDevice":"","LocaleUserState":"Unknown"},"Platform":"Web","SiteGuid":"","DomainID":0,"UDID":"","ApiUser":"tvpapi_225","ApiPass":"11111"},"MediaID":"' . $idcontent . '","mediaType":0,"picSize":"full","withDynamic":false}';

$time_start = microtime(true);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://tvpapi-as.ott.kaltura.com/v3_4/gateways/jsonpostgw.aspx?m=GetMediaInfo');
curl_setopt($ch, CURLOPT_POST, 1);   
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json;charset=utf-8'));
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_REFERER, $argv[1]);
curl_setopt($ch, CURLOPT_ENCODING , "gzip");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux i686; rv:41.0) Gecko/20100101 Firefox/41.0 Iceweasel/41.0");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
$result = curl_exec($ch);
curl_close ($ch);

preg_match('/"Format":"dash Main".*?CoGuid":"(.*?)"/', $result, $ids);
preg_match('/"MediaName":"(.*?)"/', $result, $name);
$name= str_ireplace(' ', '-', $name[1]);

preg_match('/(.*?)_0_/', $ids[1], $entryId);
preg_match('/(.*?),/', $ids[1], $low);
preg_match('/0_.*?_(.*)/', $low[1], $lflavorId);
preg_match('/,(.*?),/', $ids[1], $medium);
preg_match('/0_.*?_(.*)/', $medium[1], $mflavorId);
preg_match('/.*?,.*?,(.*)/', $ids[1], $high);
preg_match('/0_.*?_(.*)/', $high[1], $hflavorId);

$link = 'http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/' . $entryId[1] . '/v/2/pv/1/flavorId/' . $hflavorId[1] . '/name/a.mp4/index.m3u8';

echo "$link\n\n";

echo "Starting  livestreamer...\n\n";
	echo shell_exec("livestreamer \"hls://$link\" best -o $name.ts&");
	echo "Done.\n";

?>


Code:
import requests
import re
import os
import sys

idcontent= sys.argv[1][-6:]
pageUrl2= 'http://tvpapi-as.ott.kaltura.com/v3_4/gateways/jsonpostgw.aspx?m=GetMediaInfo'
headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:41.0) Gecko/20100101 Firefox/41.0 Iceweasel/41.0.2', 'Referer': 'http://www.voot.com/', 'Content-Type': 'application/json;charset=utf-8'}
data= '{"initObj":{"Locale":{"LocaleLanguage":"","LocaleCountry":"","LocaleDevice":"","LocaleUserState":"Unknown"},"Platform":"Web","SiteGuid":"","DomainID":0,"UDID":"","ApiUser":"tvpapi_225","ApiPass":"11111"},"MediaID":"' + idcontent + '","mediaType":0,"picSize":"full","withDynamic":false}'

source = requests.post(pageUrl2, headers=headers, data=data)

name = re.findall('"MediaName":"(.*?)"', source.text)[0].replace(' ', '-')
ids=',' + re.findall('"Format":"dash Main".*?CoGuid":"(.*?)"', source.text)[0] + ','

quality = re.search(r',(.*?),(.*?),(.*?),', ids)

entryIdflavorId= re.search(r'(0_.*?)\_(0_.*)', quality.group(3))

link = 'http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/' + entryIdflavorId.group(1) + '/v/2/pv/1/flavorId/' + entryIdflavorId.group(2) + '/name/a.mp4/index.m3u8'

print link

command = 'livestreamer  "hls://' + link + '" best -o ' + name + '.ts'
os.system(command)


Code:
php voot.php "http://www.voot.com/shows/khatron-ke-khiladi-s08/8/368214/the-grand-finale/389224"
Code:
http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_o8ql2x0l/name/a.mp4/index.m3u8

Starting  livestreamer...

[download][..ason-08---Episode-20.ts] Written 6.5 MB (9s @ 708.4 KB/s)

Code:
python voot.py "http://www.voot.com/shows/khatron-ke-khiladi-s08/8/368214/the-grand-finale/389224"
Code:
http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_o8ql2x0l/name/a.mp4/index.m3u8
[cli][info] Found matching plugin stream for URL hls://http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_o8ql2x0l/name/a.mp4/index.m3u8
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (hls)
[download][..ason-08---Episode-20.ts] Written 9.8 MB (12s @ 798.5 KB/s)
maybe can you modify livestreamer for voot.com
like that was made for hotstar.com (hotstarlivestreamer) ?

I as many others on this forum not so familiar with php and python
Reply With Quote
  #63  
Old 04-05-2016, 05:25 AM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: Downloading from voot.com


Quote:
Originally Posted by pashok326 View Post
maybe can you modify livestreamer for voot.com
like that was made for hotstar.com (hotstarlivestreamer) ?

I as many others on this forum not so familiar with php and python

hotstarlivestreamer it's not a modification of livestreamer
it just uses two tools php and livestreamer
no time for the moment but you can use the php code in the php folder in tools of hotstarlivestreamer
you need also add
Code:
http://www.mediafire.com/file/73pmlxqeuwdwdep/PHP.ini
in php folder to enable phpcurl
Reply With Quote
  #64  
Old 04-05-2016, 05:27 AM
pashok326 pashok326 is offline
Member
 
Join Date: Apr 2016
Posts: 33
pashok326 is on a distinguished road
Default

Re: Downloading from voot.com


Quote:
Originally Posted by biezom View Post
hotstarlivestreamer it's not a modification of livestreamer
it just uses two tools php and livestreamer
no time for the moment but you can use the php code in the php folder in tools of hotstarlivestreamer
you need also add
Code:
http://www.mediafire.com/file/73pmlxqeuwdwdep/PHP.ini
in php folder to enable phpcurl
ohh! Thanks bro. I will use it!
Reply With Quote
  #65  
Old 04-05-2016, 05:49 AM
rad rad is offline
Junior Member
 
Join Date: Apr 2016
Posts: 29
rad is on a distinguished road
Default

Re: Downloading from voot.com


Quote:
Originally Posted by surya987 View Post
the method is bit tricky but simple...

1st play video normally in your browser and copy the mpd link from network tab in devolper tool by pressing F12..

for example for this episode http://www.voot.com/shows/khatron-ke...-finale/389224

the mpd link is

Code:
http://video.voot.com/edash/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_,s70wvy0u,rq528j27,o8ql2x0l,/forceproxy/true/name/a.mp4.urlset/manifest.mpd
copy the last code in red only its 1080p and green is 720p

now change your browser useragent to ipad or iphone and play video and copy the m3u8 link from network tab of devolper tool

the m3u8 link for episode is

Code:
http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_bdfpvmpv/name/a.mp4/index.m3u8
now replace the blue code with red code (1080p) or to green (720p)

the link will look like this now for 1080p

Code:
http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_o8ql2x0l/name/a.mp4/index.m3u8
simple open the cmd as administrator and go to livestreamer directory using CD command and use the command

Code:
livestreamer "hls://http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_o8ql2x0l/name/a.mp4/index.m3u8" best -o "output.ts"
you are done Enjoy...


Thank you for your reply. I did that but downloading stops in between
this is the error i get


[download][video.ts] Written 285.3 MB (37m44s @ 129.2 KB/s) [
cli][error] Error when reading from stream: Read timeout
[cli][info] Stream ended

C:\Users\user>
C:\Users\user>
C:\Users\user>

What should i do?
Reply With Quote
  #66  
Old 04-05-2016, 06:03 AM
pashok326 pashok326 is offline
Member
 
Join Date: Apr 2016
Posts: 33
pashok326 is on a distinguished road
Default

Re: Downloading from voot.com


Quote:
Originally Posted by biezom View Post
Code:
<?php

$idcontent = substr($argv[1], -6);
$data = '{"initObj":{"Locale":{"LocaleLanguage":"","LocaleCountry":"","LocaleDevice":"","LocaleUserState":"Unknown"},"Platform":"Web","SiteGuid":"","DomainID":0,"UDID":"","ApiUser":"tvpapi_225","ApiPass":"11111"},"MediaID":"' . $idcontent . '","mediaType":0,"picSize":"full","withDynamic":false}';

$time_start = microtime(true);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://tvpapi-as.ott.kaltura.com/v3_4/gateways/jsonpostgw.aspx?m=GetMediaInfo');
curl_setopt($ch, CURLOPT_POST, 1);   
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json;charset=utf-8'));
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_REFERER, $argv[1]);
curl_setopt($ch, CURLOPT_ENCODING , "gzip");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux i686; rv:41.0) Gecko/20100101 Firefox/41.0 Iceweasel/41.0");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
$result = curl_exec($ch);
curl_close ($ch);

preg_match('/"Format":"dash Main".*?CoGuid":"(.*?)"/', $result, $ids);
preg_match('/"MediaName":"(.*?)"/', $result, $name);
$name= str_ireplace(' ', '-', $name[1]);

preg_match('/(.*?)_0_/', $ids[1], $entryId);
preg_match('/(.*?),/', $ids[1], $low);
preg_match('/0_.*?_(.*)/', $low[1], $lflavorId);
preg_match('/,(.*?),/', $ids[1], $medium);
preg_match('/0_.*?_(.*)/', $medium[1], $mflavorId);
preg_match('/.*?,.*?,(.*)/', $ids[1], $high);
preg_match('/0_.*?_(.*)/', $high[1], $hflavorId);

$link = 'http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/' . $entryId[1] . '/v/2/pv/1/flavorId/' . $hflavorId[1] . '/name/a.mp4/index.m3u8';

echo "$link\n\n";

echo "Starting  livestreamer...\n\n";
	echo shell_exec("livestreamer \"hls://$link\" best -o $name.ts&");
	echo "Done.\n";

?>
Code:
php voot.php "http://www.voot.com/shows/khatron-ke-khiladi-s08/8/368214/the-grand-finale/389224"
Code:
http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_o8ql2x0l/name/a.mp4/index.m3u8

Starting  livestreamer...

[download][..ason-08---Episode-20.ts] Written 6.5 MB (9s @ 708.4 KB/s)


I tried your php. What could be the problem?
Reply With Quote
  #67  
Old 04-05-2016, 06:10 AM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: Downloading from voot.com


Quote:
Originally Posted by pashok326 View Post


I tried your php. What could be the problem?
place voot.php in php folder

and go in command prompt in php folder

Code:
cd C:\hotstarsportslivestreamer\tools\php5.4
Reply With Quote
  #68  
Old 04-05-2016, 06:16 AM
pashok326 pashok326 is offline
Member
 
Join Date: Apr 2016
Posts: 33
pashok326 is on a distinguished road
Default

Re: Downloading from voot.com


Quote:
Originally Posted by biezom View Post
place voot.php in php folder

and go in command prompt in php folder

Code:
cd C:\hotstarsportslivestreamer\tools\php5.4
alright... and what next?
please step by step, sorry
Reply With Quote
  #69  
Old 04-05-2016, 06:17 AM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: Downloading from voot.com


Quote:
Originally Posted by pashok326 View Post
alright... and what next?
please step by step, sorry
Code:
php voot.php "http://www.voot.com/shows/khatron-ke-khiladi-s08/8/368214/the-grand-finale/389224"
Reply With Quote
  #70  
Old 04-05-2016, 06:18 AM
rad rad is offline
Junior Member
 
Join Date: Apr 2016
Posts: 29
rad is on a distinguished road
Default

Re: Downloading from voot.com


Quote:
Originally Posted by biezom View Post
hi

two codes php and python

no need vpn it works without indian ip

Code:
<?php

$idcontent = substr($argv[1], -6);
$data = '{"initObj":{"Locale":{"LocaleLanguage":"","LocaleCountry":"","LocaleDevice":"","LocaleUserState":"Unknown"},"Platform":"Web","SiteGuid":"","DomainID":0,"UDID":"","ApiUser":"tvpapi_225","ApiPass":"11111"},"MediaID":"' . $idcontent . '","mediaType":0,"picSize":"full","withDynamic":false}';

$time_start = microtime(true);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://tvpapi-as.ott.kaltura.com/v3_4/gateways/jsonpostgw.aspx?m=GetMediaInfo');
curl_setopt($ch, CURLOPT_POST, 1);   
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json;charset=utf-8'));
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_REFERER, $argv[1]);
curl_setopt($ch, CURLOPT_ENCODING , "gzip");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux i686; rv:41.0) Gecko/20100101 Firefox/41.0 Iceweasel/41.0");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
$result = curl_exec($ch);
curl_close ($ch);

preg_match('/"Format":"dash Main".*?CoGuid":"(.*?)"/', $result, $ids);
preg_match('/"MediaName":"(.*?)"/', $result, $name);
$name= str_ireplace(' ', '-', $name[1]);

preg_match('/(.*?)_0_/', $ids[1], $entryId);
preg_match('/(.*?),/', $ids[1], $low);
preg_match('/0_.*?_(.*)/', $low[1], $lflavorId);
preg_match('/,(.*?),/', $ids[1], $medium);
preg_match('/0_.*?_(.*)/', $medium[1], $mflavorId);
preg_match('/.*?,.*?,(.*)/', $ids[1], $high);
preg_match('/0_.*?_(.*)/', $high[1], $hflavorId);

$link = 'http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/' . $entryId[1] . '/v/2/pv/1/flavorId/' . $hflavorId[1] . '/name/a.mp4/index.m3u8';

echo "$link\n\n";

echo "Starting  livestreamer...\n\n";
	echo shell_exec("livestreamer \"hls://$link\" best -o $name.ts&");
	echo "Done.\n";

?>


Code:
import requests
import re
import os
import sys

idcontent= sys.argv[1][-6:]
pageUrl2= 'http://tvpapi-as.ott.kaltura.com/v3_4/gateways/jsonpostgw.aspx?m=GetMediaInfo'
headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:41.0) Gecko/20100101 Firefox/41.0 Iceweasel/41.0.2', 'Referer': 'http://www.voot.com/', 'Content-Type': 'application/json;charset=utf-8'}
data= '{"initObj":{"Locale":{"LocaleLanguage":"","LocaleCountry":"","LocaleDevice":"","LocaleUserState":"Unknown"},"Platform":"Web","SiteGuid":"","DomainID":0,"UDID":"","ApiUser":"tvpapi_225","ApiPass":"11111"},"MediaID":"' + idcontent + '","mediaType":0,"picSize":"full","withDynamic":false}'

source = requests.post(pageUrl2, headers=headers, data=data)

name = re.findall('"MediaName":"(.*?)"', source.text)[0].replace(' ', '-')
ids=',' + re.findall('"Format":"dash Main".*?CoGuid":"(.*?)"', source.text)[0] + ','

quality = re.search(r',(.*?),(.*?),(.*?),', ids)

entryIdflavorId= re.search(r'(0_.*?)\_(0_.*)', quality.group(3))

link = 'http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/' + entryIdflavorId.group(1) + '/v/2/pv/1/flavorId/' + entryIdflavorId.group(2) + '/name/a.mp4/index.m3u8'

print link

command = 'livestreamer  "hls://' + link + '" best -o ' + name + '.ts'
os.system(command)


Code:
php voot.php "http://www.voot.com/shows/khatron-ke-khiladi-s08/8/368214/the-grand-finale/389224"
Code:
http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_o8ql2x0l/name/a.mp4/index.m3u8

Starting  livestreamer...

[download][..ason-08---Episode-20.ts] Written 6.5 MB (9s @ 708.4 KB/s)

Code:
python voot.py "http://www.voot.com/shows/khatron-ke-khiladi-s08/8/368214/the-grand-finale/389224"
Code:
http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_o8ql2x0l/name/a.mp4/index.m3u8
[cli][info] Found matching plugin stream for URL hls://http://video.voot.com/enc/fhls/p/1982551/sp/198255100/serveFlavor/entryId/0_vv9bzx3d/v/2/pv/1/flavorId/0_o8ql2x0l/name/a.mp4/index.m3u8
[cli][info] Available streams: live (worst, best)
[cli][info] Opening stream: live (hls)
[download][..ason-08---Episode-20.ts] Written 9.8 MB (12s @ 798.5 KB/s)
thank you very much for the reply but i am not familiar with php and python. should i just paste your codes in CMD or will i have to install something for php and python. i tried it with livestreamer but the download stops in between. it gives read timeout error.
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 01:57 AM.


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