edelmoral / get-flash-videos

Automatically exported from code.google.com/p/get-flash-videos
0 stars 0 forks source link

Itv.pm downloads started failing (15/6/13) due to new swf player URL #511

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
the ITV player URL changed to

https://www.itv.com/mediaplayer/releases/13.6.1.3/ITVMediaPlayer.swf?v=13.6.1.3

From the old mercury one, causing rtmpdump swfUrl hash validation to fail and
downloads to stop working.  Fix by refactoring the Itv.pm module to make
updating the swfUrl in a single place work much better and change the URL to
be the new one.

Original issue reported on code.google.com by jej...@googlemail.com on 16 Jun 2013 at 8:50

Attachments:

GoogleCodeExporter commented 8 years ago
Your needs to supply more details. This is take from the source of a programme 
today.

<video autoplay="false" muted="false" width="704" height="396">
    <object name="ITVMediaPlayer" type="application/x-shockwave-flash">
      <param name="swfBasePath" value="https://www.itv.com/mediaplayer/"/>
      <param name="videoId" value="I_32_2f2533_2f0002_23001"/>
      <param name="poster" value="https://www.itv.com/itvplayer/sites/itvplayer/files/styles/posterframe/public/images/hash/59/4c/594cdeeb24944316a639b69fc62a3472.png"/>
      <param name="actionAlt" value="Call-to-action icon that denotes the video-related action you can perform"/>
              <param name="validateRegion" value="true"/>
          </object>
  </video>

That's still the old form, without a specific example I can't change this. It's 
could break other downloads, that work for me. I've not seen download problems 
myself.

Original comment by njtaylor...@gmail.com on 16 Jun 2013 at 10:30

GoogleCodeExporter commented 8 years ago
I don't understand what else you're looking for.  What you quote above
is several indirections away from the actual video player, you can see
this easily because it doesn't have a data attribute.  I got the actual
player URL from letting the javascript updates undo the indirections and
then using the firefox Inspector to tell me what the embedded object it
was play is.  So on this URL:

https://www.itv.com/itvplayer/sherlock-holmes/series-2/episode-10-silver-blaze

You eventually get

<object style="visibility: visible;"
data="https://www.itv.com/mediaplayer/releases/13.6.1.3/ITVMediaPlayer.swf?v=13.
6.1.3"
name="itv0.8542575701153822" id="itv0.8542575701153822"
type="application/x-shockwave-flash" height="396" width="704"><param
value="high" name="quality"><param value="#000000" name="bgcolor"><param
value="always" name="allowscriptaccess"><param value="true"
name="allowfullscreen"><param value="opaque" name="wmode"><param
value="autoPlay=resume&startMuted=false&advertisingArea=ITVPLAYER.VIDEO&advertis
ingSite=ITV&advertisingRestriction=None&advertisingType=Any&category=&platformTy
pe=DotCom&userToken=jX0fRmEHzDYFJi5VftJ8xOb6yhtxbzLmJlnQ7eaKDm444OggW9cGPEfKtHDd
Z2zjCNcnq4ttg8Q5SM7BOuEJX2RFepbXBSXesNavzZPvQwp4TJD9gSqd6A%3D%3D&basePath=https:
//www.itv.com/mediaplayer/releases/13.6.1.3/&configPath=https://www.itv.com/medi
aplayer/xml/config.xml&trackingBaseUrl=&loggingTargets=&externalAPI=javascript&i
nitialBitrate=&adInitialBitrate=&maxBitrate=&qcsegs=&startClickTime=137142316094
2&productionId=I_31_2f1125_2f0022_23006"
name="flashvars"></object>

As you can see, the player URL in the data tag above is in the one I've
changed Itv.pm to use.

Original comment by jej...@googlemail.com on 16 Jun 2013 at 11:07

GoogleCodeExporter commented 8 years ago
Below is my download, not finished yet but far enough to show it's working

$ get_flash_videos 
https://www.itv.com/itvplayer/sherlock-holmes/series-2/episode-10-silver-blaze
Using method 'itv' plugin version 0.03 for 
https://www.itv.com/itvplayer/sherlock-holmes/series-2/episode-10-silver-blaze
Downloading 
https://www.itv.com/itvplayer/sherlock-holmes/series-2/episode-10-silver-blaze
RTMPDump 2.4pl2
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:   duration              3050.88
INFO:   moovPosition          32.00
INFO:   width                 704.00
INFO:   height                528.00
INFO:   videocodecid          avc1
INFO:   audiocodecid          mp4a
INFO:   avcprofile            77.00
INFO:   avclevel              31.00
INFO:   aacaot                2.00
INFO:   videoframerate        25.00
INFO:   audiosamplerate       24000.00
INFO:   audiochannels         2.00
INFO: trackinfo:
INFO:   length                76269000.00
INFO:   timescale             25000.00
INFO:   language              eng
INFO: sampledescription:
INFO:   sampletype            avc1
INFO:   length                73221120.00
INFO:   timescale             24000.00
INFO:   language              eng
INFO: sampledescription:
INFO:   sampletype            mp4a
1-1125-0022-006_the-return-of-sherlock-holmes_tx150613_itv1200_4x3-reg.flv: 12% 
(54440.90 / 449924.83 KiB)

This is on OpenBSD amd64 current, I have also tried the same on Debian Linux 
and download doesn't hit a problem there either.

The values can be found at https://www.itv.com/mediaplayer/js/itv.config.js

<param name="osmfVersion" value="13.6.1.3"/>

Part of a block of embeded XML.

Looking at some of the scripts, HTML5 should be supported, this means direct 
downloads without rtmpdump. Requires more looking into.

Original comment by njtaylor...@gmail.com on 17 Jun 2013 at 1:47

GoogleCodeExporter commented 8 years ago
That does not work anymore. as of today:
trying to get https://www.itv.com/itvplayer/love-and-marriage/series-1/episode-2

$ get_flash_videos --version
get_flash_videos version 1.25 (http://code.google.com/p/get-flash-videos/)
$ get_flash_videos 
https://www.itv.com/itvplayer/sherlock-holmes/series-2/episode-10-silver-blaze
Downloading 
https://www.itv.com/itvplayer/sherlock-holmes/series-2/episode-10-silver-blaze
Using method 'itv' for 
https://www.itv.com/itvplayer/sherlock-holmes/series-2/episode-10-silver-blaze
Error: No id (filter) found in URL

Couldn't extract Flash movie URL. This site may need specific support adding,
or fixing.

Please confirm the site is using Flash video and if you have Flash available
check that the URL really works(!).

Check for updates by running: /usr/bin/get_flash_videos --update

If the latest version does not support this please open a bug (or
contribute a patch!) at http://code.google.com/p/get-flash-videos/
make sure you include the output with --debug enabled.
Couldn't download any videos.

Original comment by vincent....@gmail.com on 24 Jun 2013 at 6:48