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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-26-2017, 09:31 PM
apumic apumic is offline
Junior Member
 
Join Date: Jan 2017
Posts: 2
apumic is on a distinguished road
Default

jwplayer video to VLC via Livestreamer?


Hi,

I am new here but learning quickly. I have been stuck trying to get a file downloaded via livestreamer from a site but unable to do so due to a 403 (forbidden) error. The link is not expired and I think I am properly declaring the query parameters.

Here is the code from the site:

Most pertinent code (I believe) -- line breaks added to make it easier to read:

Code:
	site_1709_media.addSource('
https://doc2ek4lqkwh5.cloudfront.net/media/lecture-video-segment/1280/1709.mp4?
Expires\x3d1485573729\x26
Signature\x3dWf6iNYjjQ5nZ1vz8AbHM9bQweYvlFUMPGrbgDIBQRTZ6JhSopQun7Z6x80OV7GdTg7c2UIBtk39VnuQJoXJncxWMk4biCL-NeGruEZTw~pYoZ1fBeqM2v4HTF3mIMbCAvtq4smEdxLQSfvYkvhda9w3SuPw-xdjlNDNg1fG3syA_\
x26Key-Pair-Id\x3dAPKAIEZNLVCXFB4QVX2A', 
1280, '720p');
Full call:

Code:
//<![CDATA[
jwplayer.key = 'deUBhuaDww5Wl/YgUSz2yaFXI25yqMl3u1pt7Q\x3d\x3d';
//]]>
</script><div class="video-player-container"><div class="video-player" id="media_display_1709"><div id="media_display_container_1709"></div></div></div><script type="text/javascript">
//<![CDATA[
	var site_1709_media = new SiteJwPlayerMediaDisplay(1709);
	site_1709_media.duration = 1607;
	site_1709_media.aspect_ratio = [73, 41];
	site_1709_media.addSource('smil/1709.smil');
	site_1709_media.swf_uri = 'packages/site/javascript/jwplayer.flash.swf';
	site_1709_media.addSource('https://doc2ek4lqkwh5.cloudfront.net/media/lecture-video-segment/1280/1709.mp4?Expires\x3d1485573729\x26Signature\x3dWf6iNYjjQ5nZ1vz8AbHM9bQweYvlFUMPGrbgDIBQRTZ6JhSopQun7Z6x80OV7GdTg7c2UIBtk39VnuQJoXJncxWMk4biCL-NeGruEZTw~pYoZ1fBeqM2v4HTF3mIMbCAvtq4smEdxLQSfvYkvhda9w3SuPw-xdjlNDNg1fG3syA_\x26Key-Pair-Id\x3dAPKAIEZNLVCXFB4QVX2A', 1280, '720p');
	site_1709_media.addSource('https://doc2ek4lqkwh5.cloudfront.net/media/lecture-video-segment/1080/1709.mp4?Expires\x3d1485573729\x26Signature\x3dG21L1FpkqnQNpOgo~RQTngBiYjaaQ6DO71X~Pkw5SoJf6Ln7ljuWInQdBU7c6oMCtLU0diJaQwaPu-DOBqRSZkkcUOhTcHGs-AAuVaLH0YDfKY-fQTiqGK4M5KGiyYq7v3Vymr1HRirTwjYJkD8lXyX4~iyADYW-RilTsq~rolw_\x26Key-Pair-Id\x3dAPKAIEZNLVCXFB4QVX2A', 1080, '608p');
	site_1709_media.addSource('https://doc2ek4lqkwh5.cloudfront.net/media/lecture-video-segment/920/1709.mp4?Expires\x3d1485573729\x26Signature\x3dXKbCgef3eP5OJFdvQNpQUs97~rFJhuQoS2VtrVVqFoIAunLJhdx1wXhhRVnm03eRf2eNV39tBqi-PzesJ8wsS2zvrQsIev6dG2okNd8Tn4emc8p5V3~qh~OJo12J2Vnkvd5QvKFfzfOwYfkH2HVyGv7uxx1AVP45mVYSI4Iiq3g_\x26Key-Pair-Id\x3dAPKAIEZNLVCXFB4QVX2A', 920, '518p');
	site_1709_media.addSource('https://doc2ek4lqkwh5.cloudfront.net/media/lecture-video-segment/720/1709.mp4?Expires\x3d1485573729\x26Signature\x3dKN83jqffu0-4FDyRcpzMK3sko2-kgmFIs~VQbXTVUY79rbLD~Y8tdl2KLKByDOP4ddTCsdRBfy6l8pVg42CTFUvJCHViO-awBGZdYCAQOWB8ZaNbkzXm99XwKXrWYdr0acYpdYbMjZLc99UTcVE0JajdI4miWPvut7pbktvVJMA_\x26Key-Pair-Id\x3dAPKAIEZNLVCXFB4QVX2A', 720, '406p');
	site_1709_media.addSource('https://doc2ek4lqkwh5.cloudfront.net/media/lecture-video-segment/480/1709.mp4?Expires\x3d1485573729\x26Signature\x3dlTQB5NfMiSvWwKVmT~VOA5nQFH2~OR7PvthAZcj-R9TWAlAPkTwd19E1oExiUsz~q3PMWvh5hDFxMjONWtqoTspGEbMCZfVk1vKEqStIMehRs7XvBztPbFTWEcKrLNpbkdwp1qX2AC6XiYycYG6Z4v8aIz3X9v7Y9L6xfytCczI_\x26Key-Pair-Id\x3dAPKAIEZNLVCXFB4QVX2A', 480, '270p');
	site_1709_media.addSource('https://doc2ek4lqkwh5.cloudfront.net/media/lecture-video-segment/320/1709.mp4?Expires\x3d1485573729\x26Signature\x3dg0JkyX85ZRYNsIQo74wdUHdgwVMPGS~qmMP~S5M~qEi-RfjqnavX2rpRNC~bBHqv4h~4r1smSXKjB8ZyXXkV9jSg-z~o-Bsxpa6T7Uz-lLsUOUhEif4kG3alZ0tsKq2TIUmC2JubMNLQyu26Sm3BpeoI9qPTsqHdlZy~hMo-MCc_\x26Key-Pair-Id\x3dAPKAIEZNLVCXFB4QVX2A', 320, '180p');
	site_1709_media.skin = 'packages/site/javascript/jwplayer-skins/six.xml';
	site_1709_media.stretching = 'uniform';
	site_1709_media.addImage('https://d1mf7pp89mio1c.cloudfront.net/images/videos/original/5328.jpg', 1280);
	site_1709_media.addImage('https://d1mf7pp89mio1c.cloudfront.net/images/videos/920/5328.jpg', 920);
	site_1709_media.addImage('https://d1mf7pp89mio1c.cloudfront.net/images/videos/800/5328.jpg', 800);
	site_1709_media.addImage('https://d1mf7pp89mio1c.cloudfront.net/images/videos/720/5328.jpg', 720);
	site_1709_media.addImage('https://d1mf7pp89mio1c.cloudfront.net/images/videos/640/5328.jpg', 640);
	site_1709_media.addImage('https://d1mf7pp89mio1c.cloudfront.net/images/videos/520/5328.jpg', 520);
	site_1709_media.addImage('https://d1mf7pp89mio1c.cloudfront.net/images/videos/480/5328.jpg', 480);
	site_1709_media.addImage('https://d1mf7pp89mio1c.cloudfront.net/images/videos/460/5328.jpg', 460);
	site_1709_media.addImage('https://d1mf7pp89mio1c.cloudfront.net/images/videos/420/5328.jpg', 420);
	site_1709_media.addImage('https://d1mf7pp89mio1c.cloudfront.net/images/videos/280/5328.jpg', 280);
	site_1709_media.addImage('https://d1mf7pp89mio1c.cloudfront.net/images/videos/200/5328.jpg', 200);
	site_1709_media.addImage('https://d1mf7pp89mio1c.cloudfront.net/images/videos/100/5328.jpg', 100);
	site_1709_media.addImage('https://d1mf7pp89mio1c.cloudfront.net/images/videos/40/5328.jpg', 40);
	site_1709_media.start_position = 1596;
	site_1709_media.record_end_point = true;
	site_1709_media.space_to_pause = true;
	site_1709_media.on_complete_message = '\x3cp\x3eYou’ve finished watching “Part 1”\x3c/p\x3e\x3ca class\x3d\x22next-media\x22 href\x3d\x22account/boardreview/lecture/eye1#video\x3d1710\x22\x3e\x3cstrong\x3eNext Video:\x3c/strong\x3e\x3cspan class\x3d\x22next-media-title\x22\x3ePart 2\x3c/span\x3e\x3c/a\x3e';
	site_1709_media.upgrade_message = 'Videos on this site require either \x3ca href\x3d\x22http://en.wikipedia.org/wiki/HTML5_video\x22 target\x3d\x22_blank\x22\x3eHTML5 video support\x3c/a\x3e (mp4 codec) or \x3ca href\x3d\x22http://get.adobe.com/flashplayer/\x22 target\x3d\x22_blank\x22\x3eAdobe Flash Player\x3c/a\x3e (version 10 or higher). Please upgrade your browser and try again.';
	site_1709_media.display_on_complete_message_on_load = true;
	site_1709_media.menu_link = 'https://www.hippoed.com/em/';
	site_1709_media.menu_title = 'Hippo EM';
	site_1709_media.location_identifier = '0df553e5d35270a358d8a90d14f4c817';
	site_1709_media.addValidMimeType('video/mp4');
//]]>
</script></div><div id="video_player_1710" class="video-playlist-player video-playlist-player-hidden multiple-videos lecture-video-segment complete-00"><div class="video-player-container"><div class="video-player" id="media_display_1710"><div id="media_display_container_1710"></div></div></div><script type="text/javascript">
I have been trying to get the stream to open in VLC using variants of the following (including trying different protocols, w/ and w/o the trailing '_' in the signature and preceding "x3d" in all parameters, as well as w/ & w/o the "x26" part of the parameter key names (i.e., both w/ & w/o each of the underlined parts of the bolded URL above; line breaks added for legibility):

Code:
livestreamer 
--http-header "User-Agent=Mozilla/5.0 (Linux; Android 4.4.2; VirtualBox Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36"
--http-query-param "Expires=x3d1485573729" 
--http-query-param "Signature=x3dWf6iNYjjQ5nZ1vz8AbHM9bQweYvlFUMPGrbgDIBQRTZ6JhSopQun7Z6x80OV7GdTg7c2UIBtk39VnuQJoXJncxWMk4biCL-NeGruEZTw~pYoZ1fBeqM2v4HTF3mIMbCAvtq4smEdxLQSfvYkvhda9w3SuPw-xdjlNDNg1fG3syA_" 
--http-query-param "Key-Pair-Id=x3dAPKAIEZNLVCXFB4QVX2A" 
"hlsvariant://doc2ek4lqkwh5.cloudfront.net/media/lecture-video-segment/1280/1709.mp4" best
However, none of these have worked. I get the following on attempts at access:

Quote:
livestreamer --http-header "User-Agent=Mozilla/5.0 (Linux; Android 4.4.2; VirtualBox Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36" --http-query-param "Expires=1485570584" --http-query-param "Signature=x3dgwN9dIvL1iVF-xiUipC8i4gE386ved7-xdBQhBdIQ7D6xBZQqqSZa4o4jWbwhu7Jo8SiLohg2D5bL9F5y3 PUop5EXJYPn6iQv2f1HauvNhQn0UFV7JzSXmZ1djxKBnt8vXID oiTLGCb6vARe-KguVpda6jrc2Sn9iAc4g2AnNLM" --http-query-param "Key-Pair-Id=x3dAPKAIEZNLVCXFB4QVX2A" "hlsvariant://doc2ek4lqkwh5.cloudfront.net/media/lecture-video-segment/1280/1709.mp4" best

[cli][info] Found matching plugin stream for URL hlsvariant://doc2ek4lqkwh5.cloudfront.net/media/lecture-video-segment/1280/1709.mp4
error: Unable to open URL: http://doc2ek4lqkwh5.cloudfront.net/.../1280/1709.mp4 (403 Client Error: Forbidden for url: http://doc2ek4lqkwh5.cloudfront.net/...ZNLVCXFB4QVX2A)
Any help you can provide would be much appreciated.
Reply With Quote
 
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 11:33 PM.


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