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 04-15-2012, 11:36 AM
bibichouchou bibichouchou is offline
Junior Member
 
Join Date: Apr 2012
Posts: 8
bibichouchou is on a distinguished road
Default

Record Pluzz.fr from linux


Hello,

I would like to write a small program (bash, python, anything ) in order to download videos from www.pluzz.fr, a French catch-up website.
I wrote one that used to work but they changed their authentication system in february/march and since then, i have been stucked.

here is a video that may work abroad:
http://www.pluzz.fr/jt-13h.html

They used adaptive streaming from Adobe. The problemn I encounter is the getting of the authentication token, mandatory to download video segments. As far I know, no solution exists for linux.

Any help is welcomed.

PS: i posted also in the French section.
Reply With Quote
  #2  
Old 04-15-2012, 12:17 PM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: Record Pluzz.fr from linux


how do you suppose to play or join those segments? do you know about any player or decoder which can do it. AFAIK there isn't any player or decoder available except Flash Player / Strobe Player. until you can find a solution to play or decode them there is no point trying to download them.
Reply With Quote
  #3  
Old 04-15-2012, 12:24 PM
bibichouchou bibichouchou is offline
Junior Member
 
Join Date: Apr 2012
Posts: 8
bibichouchou is on a distinguished road
Default

Re: Record Pluzz.fr from linux


Hello KSV,

First, thanks a lot for your PHP script for playtv.fr. It is great !
Yes I can join the segments and reconstruct the video (and play it with vlc or mplayer). I used to do it until end of February when they changed their protocol. The only thing preventing me to get the video is a token. I don't know how it is generated or how i can retrieve it. I can see it when I use a Firefox add-on.

cheers
Reply With Quote
  #4  
Old 04-15-2012, 12:53 PM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: Record Pluzz.fr from linux


Quote:
Originally Posted by bibichouchou View Post
Hello,

I would like to write a small program (bash, python, anything ) in order to download videos from www.pluzz.fr, a French catch-up website.
I wrote one that used to work but they changed their authentication system in february/march and since then, i have been stucked.

here is a video that may work abroad:
http://www.pluzz.fr/jt-13h.html

They used adaptive streaming from Adobe. The problemn I encounter is the getting of the authentication token, mandatory to download video segments. As far I know, no solution exists for linux.

Any help is welcomed.

PS: i posted also in the French section.
Code:
mmsh://a988.v101995.c10199.e.vm.akamaistream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com/10199/cappuccino/production/publication/Autre/Autre/2012/S15/J7/408560_HD_13h_20120415.wmv
Code:
bin>ffmpeg -i "mmsh://a988.v101995.c10199.e.vm.akamai
stream.net/7/988/10199/3f97c7e6/ftvigrp.download.akamai.com/10199/cappuccino/pro
duction/publication/Autre/Autre/2012/S15/J7/408560_HD_13h_20120415.wmv" -vcodec
copy -acodec copy t.wmv
ffmpeg version N-39267-g4082198 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 25 2012 20:25:08 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 44.100 / 51. 44.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 65.102 /  2. 65.102
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 10.100 /  0. 10.100
  libpostproc    52.  0.100 / 52.  0.100
[wmv3 @ 023CA120] Extra data: 8 bits left, value: 0
[wmv3 @ 02403AC0] Extra data: 8 bits left, value: 0
Input #0, asf, from 'mmsh://a988.v101995.c10199.e.vm.akamaistream.net/7/988/1019
9/3f97c7e6/ftvigrp.download.akamai.com/10199/cappuccino/production/publication/A
utre/Autre/2012/S15/J7/408560_HD_13h_20120415.wmv':
  Metadata:
    WMFSDKVersion   : 11.0.5721.5145
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 00:21:07.55, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: wmv3 (Simple) (WMV3 / 0x33564D57), yuv420p, 640x360, 576
 kb/s, 25 tbr, 1k tbn, 1k tbc
    Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, s16,
64 kb/s
    Stream #0:2: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 384x216, 276 k
b/s, 25 tbr, 1k tbn, 1k tbc
Output #0, asf, to 't.wmv':
  Metadata:
    WMFSDKVersion   : 11.0.5721.5145
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    WM/EncodingSettings: Lavf54.3.100
    Stream #0:0: Video: wmv3 (WMV3 / 0x33564D57), yuv420p, 640x360, q=2-31, 576
kb/s, 1k tbn, 1k tbc
    Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, 64 kb
/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=   47 fps=0.0 q=-1.0 size=     282kB time=00:00:01.84 bitrate=1255.1kbits/
frame=   51 fps= 37 q=-1.0 size=     323kB time=00:00:02.00 bitrate=1321.1kbits/
frame=   72 fps= 33 q=-1.0 size=     391kB time=00:00:02.84 bitrate=1128.7kbits/
frame=   83 fps= 31 q=-1.0 size=     432kB time=00:00:03.28 bitrate=1078.8kbits/
frame=   99 fps= 30 q=-1.0 size=     482kB time=00:00:03.92 bitrate=1007.2kbits/
frame=  108 fps= 29 q=-1.0 size=     523kB time=00:00:04.28 bitrate=1000.2kbits/
frame=  120 fps= 27 q=-1.0 size=     570kB time=00:00:04.76 bitrate= 980.0kbits/
frame=  131 fps= 27 q=-1.0 size=     610kB time=00:00:05.20 bitrate= 961.1kbits/
frame=  151 fps= 28 q=-1.0 size=     660kB time=00:00:06.00 bitrate= 901.2kbits/
frame=  171 fps= 29 q=-1.0 size=     698kB time=00:00:06.80 bitrate= 840.4kbits/
s
Reply With Quote
  #5  
Old 04-15-2012, 01:28 PM
bibichouchou bibichouchou is offline
Junior Member
 
Join Date: Apr 2012
Posts: 8
bibichouchou is on a distinguished road
Default

Re: Record Pluzz.fr from linux


@chap

ok thanks. I gave a wrong example because for this specific video 2 means are used to broadcast it: a "classic" mms video and an hds (http dynamic streaming) video.

if one goes to this page:

http://www.pluzz.fr/appftv/webservic...usion=62158552

one can see the two links leading to the video: the mms link you gave and the http link pointing to a file called manifest.f4m
The content of this file describes the video (different qualities available...) and looks like:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns="http://ns.adobe.com/f4m/1.0" xmlns:akamai="uri:akamai.com/f4m/1.0">
  <akamai:bw>2000</akamai:bw>
  <id>/streaming-adaptatif/2012/S15/J7/62158552-20120415-,398,632,934,k.mp4.csmil_0</id>
  <streamType>recorded</streamType>
  <duration>1269.760</duration>
  <streamBaseTime>0.000</streamBaseTime>
  <pv-2.0>ZXhwPTEzMzQ2MDA2OTB+YWNsPSUyZip+ZGF0YT1wdmMsc35obWFjPTRjN2FlZjEyYzk4MjgzZjZlYWQzZWMwNjA0M2UwNDM5MDcxZjYyYzE1MmVlMTY0MzIwZWRmZThiZjdkNmMzMjk=;hdntl=exp=1334600690~acl=%2fz%2fstreaming-adaptatif%2f2012%2fS15%2fJ7%2f62158552-20120415-*~data=hdntl~hmac=e6052c9d0f7e383056f93c2c09adf957b86aab35f6eb360ce0e0cc9ada7e9c6e</pv-2.0>
  <bootstrapInfo profile="named" id="bootstrap_0">AAAAi2Fic3QAAAAAAAAAAQAAAAPoAAAAAAATYAAAAAAAAAAAAAAAAAAAAQAAABlhc3J0AAAAAAAAAAABAAAAAQAAANMBAAAARmFmcnQAAAAAAAAD6AAAAAADAAAAAQAAAAAAAAAAAAAXcAAAANMAAAAAABM54AAAJiAAAAAAAAAAAAAAAAAAAAAAAA==</bootstrapInfo>
  <media bitrate="305" url="0_e8775c2b4acd5464_" bootstrapInfoId="bootstrap_0">
    <metadata>AgAKb25NZXRhRGF0YQgAAAAMAAhkdXJhdGlvbgBAk9cKPXCj1wAFd2lkdGgAQHQAAAAAAAAABmhlaWdodABAZgAAAAAAAAANdmlkZW9kYXRhcmF0ZQBAbkAAAAAAAAAJZnJhbWVyYXRlAEA5AAAAAAAAAAx2aWRlb2NvZGVjaWQAQBwAAAAAAAAADWF1ZGlvZGF0YXJhdGUAQE+AAAAAAAAAD2F1ZGlvc2FtcGxlcmF0ZQBB5YiAAAAAAAAPYXVkaW9zYW1wbGVzaXplAEAwAAAAAAAAAAZzdGVyZW8BAQAMYXVkaW9jb2RlY2lkAEAkAAAAAAAAAAhmaWxlc2l6ZQBBhxP0cAAAAAAAAw==</metadata>
  </media>
</manifest>

as they use geolocalization, maybe only the mms link is available abroad.
of course, most of the video use the hds method
Reply With Quote
  #6  
Old 04-15-2012, 01:55 PM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: Record Pluzz.fr from linux


i haven't checked the site yet but value of pv-2.0 in your manifest file looks like authentication token. if possible can you share your method of joining HDS fragments.
Reply With Quote
  #7  
Old 04-15-2012, 02:27 PM
bibichouchou bibichouchou is offline
Junior Member
 
Join Date: Apr 2012
Posts: 8
bibichouchou is on a distinguished road
Default

Re: Record Pluzz.fr from linux


@KSV

no the value of pv-2.0 does not work. I tried to use it but never could download any fragments with it.
of course, i can share the joining method. to be honest, i have to precise that i am not the original author
Reply With Quote
  #8  
Old 04-15-2012, 02:55 PM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: Record Pluzz.fr from linux


i will take a look at site tomorrow. it shouldn't be too hard.
Reply With Quote
  #9  
Old 04-19-2012, 03:35 PM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: Record Pluzz.fr from linux


i have finally solved the mystery of token generation. analyzing a VM (Adobe Alchemy) within another AVM (ActionScript Virtual Machine) isn't an easy thing to do. PVToken (Player Verification Token) generation was easy stuff but the hardest part was to generate the hmac value to sign the player verification response.

i can share my method with you if you can share the method of joining HDS fragments. i am asking this because i have literally spent hours on this and i don't wanna help someone who is just gonna use my method to rip and embed those streams into his own site.
Reply With Quote
  #10  
Old 04-19-2012, 04:08 PM
saadeva saadeva is offline
Junior Member
 
Join Date: Apr 2012
Posts: 2
saadeva is on a distinguished road
Default

Re: Record Pluzz.fr from linux


Hi there.
What you're saying is just wonderful. I reaaaallly hope this chap will share his method because I think you're awesome news

Those "pluzz" people, they've been changing the protocol and access and all a lot lately and people who were doing the software to get the videos, they got pissed off and so the existing software development is kinda stalled.

I myself don't understand everything, but I'll give you some link, hopefully it helps, even if I think that would be more than welcome if the original poster of this thread would share technical details with you directly.

http://code.google.com/p/tvdownloader/downloads/list
the software is called pluzzdl and its able to get the fragments and put em back altogether. It's opensource python, maybe you can have a look at it later, if you don't get your answer here, so maybe, if that was okay with you, you could share with pluzzdl team...

Sorry to be bothering, I'm just an end user who'd really like this (free as in freedom and people working together, giving credit and all) software to work once again
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 08:26 AM.


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