Re: Modes and best quality

2017-12-13 Thread Ralph Corderoy
Hi Nick,

> > > I have noticed, on numerous pids, that if I download them using
> > > --tvmode=best then the highest quality 25fps  stream that is found
> > > is dvfxhigh (704x396 25fps ).
> > >
> > > However, if I explicitly use --tvmode=hlshd, then I get the
> > > 1280x720 25fps  stream.

I'm paying a bit more attention this time.

The cmp_modes() function scores a mode and compares two modes by their
score.  Unfortunately, there's no `score_mode()' function so that the
list of modes that's verbosely output can be augmented by their score.
However, I added

main::logger "NICK: ranks: $x $rank_x v. $y $rank_y\n";

just before the last line, the `<=>', of cmp_modes and then prefixed the
`INFO' lines that were already output for PID `b09hlzbb'.

score
20101  dvfhd1  gip_dvf_iplayer_5070  dash h264 1280x720  50fps 5070kbps 
stream mf_limelight_uk_dash/2
20102  dvfhd2  gip_dvf_iplayer_5070  dash h264 1280x720  50fps 5070kbps 
stream mf_akamai_uk_dash/1
20201  dvfsd1  gip_dvf_iplayer_2812  dash h264  960x540  50fps 2812kbps 
stream mf_limelight_uk_dash/2
20202  dvfsd2  gip_dvf_iplayer_2812  dash h264  960x540  50fps 2812kbps 
stream mf_akamai_uk_dash/1
20301  dvfxsd1 gip_dvf_iplayer_1604  dash h264  960x540 25fps  1604kbps 
stream mf_limelight_uk_dash/2
20302  dvfxsd2 gip_dvf_iplayer_1604  dash h264  960x540 25fps  1604kbps 
stream mf_akamai_uk_dash/1
20501  dvfhigh1gip_dvf_iplayer_1570  dash h264  704x396  50fps 1570kbps 
stream mf_limelight_uk_dash/2
20502  dvfhigh2gip_dvf_iplayer_1570  dash h264  704x396  50fps 1570kbps 
stream mf_akamai_uk_dash/1
20601  dvfxhigh1   gip_dvf_iplayer_827   dash h264  704x396 25fps   827kbps 
stream mf_limelight_uk_dash/2
20602  dvfxhigh2   gip_dvf_iplayer_827   dash h264  704x396 25fps   827kbps 
stream mf_akamai_uk_dash/1
21001  dvflow1 gip_dvf_iplayer_437   dash h264  512x288 25fps   437kbps 
stream mf_limelight_uk_dash/2
21002  dvflow2 gip_dvf_iplayer_437   dash h264  512x288 25fps   437kbps 
stream mf_akamai_uk_dash/1
50101  hlshd1  gip_hls_iplayer_2439  hls  h264 1280x720 25fps  2439kbps 
stream akamai_hls_open/10
50401  hlsvhigh1   gip_hls_iplayer_1496  hls  h264  832x468 25fps  1496kbps 
stream akamai_hls_open/10
60101  hvfhd1  gip_hvf_iplayer_5714  hls  h264 1280x720  50fps 5714kbps 
stream mf_bidi_uk_hls/3
60102  hvfhd2  gip_hvf_iplayer_5714  hls  h264 1280x720  50fps 5714kbps 
stream mf_limelight_uk_hls/2
60103  hvfhd3  gip_hvf_iplayer_5714  hls  h264 1280x720  50fps 5714kbps 
stream mf_akamai_uk_hls/1
60201  hvfsd1  gip_hvf_iplayer_3320  hls  h264  960x540  50fps 3320kbps 
stream mf_bidi_uk_hls/3
60202  hvfsd2  gip_hvf_iplayer_3320  hls  h264  960x540  50fps 3320kbps 
stream mf_limelight_uk_hls/2
60203  hvfsd3  gip_hvf_iplayer_3320  hls  h264  960x540  50fps 3320kbps 
stream mf_akamai_uk_hls/1
60301  hvfxsd1 gip_hvf_iplayer_2040  hls  h264  960x540 25fps  2040kbps 
stream mf_bidi_uk_hls/3
60302  hvfxsd2 gip_hvf_iplayer_2040  hls  h264  960x540 25fps  2040kbps 
stream mf_limelight_uk_hls/2
60303  hvfxsd3 gip_hvf_iplayer_2040  hls  h264  960x540 25fps  2040kbps 
stream mf_akamai_uk_hls/1
60501  hvfhigh1gip_hvf_iplayer_2004  hls  h264  704x396  50fps 2004kbps 
stream mf_bidi_uk_hls/3
60502  hvfhigh2gip_hvf_iplayer_2004  hls  h264  704x396  50fps 2004kbps 
stream mf_limelight_uk_hls/2
60503  hvfhigh3gip_hvf_iplayer_2004  hls  h264  704x396  50fps 2004kbps 
stream mf_akamai_uk_hls/1
60601  hvfxhigh1   gip_hvf_iplayer_1216  hls  h264  704x396 25fps  1216kbps 
stream mf_bidi_uk_hls/3
60602  hvfxhigh2   gip_hvf_iplayer_1216  hls  h264  704x396 25fps  1216kbps 
stream mf_limelight_uk_hls/2
60603  hvfxhigh3   gip_hvf_iplayer_1216  hls  h264  704x396 25fps  1216kbps 
stream mf_akamai_uk_hls/1
60701  hvfstd1 gip_hvf_iplayer_1069  hls  h264  640x360 25fps  1069kbps 
stream mf_bidi_uk_hls/3
60702  hvfstd2 gip_hvf_iplayer_1069  hls  h264  640x360 25fps  1069kbps 
stream mf_limelight_uk_hls/2
60703  hvfstd3 gip_hvf_iplayer_1069  hls  h264  640x360 25fps  1069kbps 
stream mf_akamai_uk_hls/1
61001  hvflow1 gip_hvf_iplayer_803   hls  h264  512x288 25fps   803kbps 
stream mf_bidi_uk_hls/3
61002  hvflow2 gip_hvf_iplayer_803   hls  h264  512x288 25fps   803kbps 
stream mf_limelight_uk_hls/2
61003  hvflow3 gip_hvf_iplayer_803   hls  h264  512x288 25fps   803kbps 
stream mf_akamai_uk_hls/1
71101  subtitles1  captions  http stream 
mf_limelight_uk_plain/20
71102  subtitles2  captions  http stream mf_akamai_uk_plain/10
71103  subtitles3  captions  http stream 
mf_limelight_uk_plain/20

From this list, and the base amounts that comprise a score in that
function, you might be able to see why it thinks it's giving you the
`best';  I expect x×y resolution isn't the central criteria.

-- 

Re: Modes and best quality

2017-12-13 Thread iz
> Sent: Wednesday, December 13, 2017 at 10:40 AM
> From: "Nick Payne" 
>
> This behaviour does not accord with the documentation at
> https://github.com/get-iplayer/get_iplayer/wiki/modes

It does. Look at all those "403 No Protocol" errors. If you can't download the 
stream information, GiP won't be able to access them. You got the best 25fps 
stream available in both cases. As to why you get those errors, I haven't a 
clue. The URLs clearly have protocols included, and you would see a different 
error if they didn't, so the errors must refer to problems on the BBC side or 
somewhere in between. Even in your example, some errors aren't repeated, so 
might be difficult to diagnose.

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Modes and best quality

2017-12-13 Thread Nick Payne
On 13/12/2017 10:19 PM, Ralph Corderoy wrote:
> Hi Nick,
>
>> I have noticed, on numerous pids, that if I download them using
>> --tvmode=best then the highest quality 25fps stream that is found is
>> dvfxhigh (704x396 25fps).
>>
>> However, if I explicitly use --tvmode=hlshd, then I get the 1280x720
>> 25fps stream.
> I too am unclear on how the `better', `best', etc., map to modes.  You
> might want to experiment with the --fps50 option as that seems to
> influence the definition of `best' and friends.
Yes, if I use --fps50 with --tvmode=best then I get the 1280x720 50fps
stream. However, I have yet to view a program where I thought that 50fps
gave an advantage over 25fps, so from my point of view using it means
having to download files of twice the size for no visible advantage.

Nick


___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Re: Modes and best quality

2017-12-13 Thread Ralph Corderoy
Hi Nick,

> I have noticed, on numerous pids, that if I download them using
> --tvmode=best then the highest quality 25fps stream that is found is
> dvfxhigh (704x396 25fps).
>
> However, if I explicitly use --tvmode=hlshd, then I get the 1280x720
> 25fps stream.

I too am unclear on how the `better', `best', etc., map to modes.  You
might want to experiment with the --fps50 option as that seems to
influence the definition of `best' and friends.

> This behaviour does not accord with the documentation at
> https://github.com/get-iplayer/get_iplayer/wiki/modes

Yes, I thought that was out of date when skimming it a couple of weeks
ago.  I think get_iplayer changed partly because 25 fps is the `best'
most folks want for throwaway TV fodder.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

___
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer


Modes and best quality

2017-12-13 Thread Nick Payne
I have noticed, on numerous pids, that if I download them using

--tvmode=best

then the highest quality 25fps stream that is found is dvfxhigh (704x396
25fps).

However, if I explicitly use --tvmode=hlshd, then I get the 1280x720
25fps stream.

As an example, here's the console output from downloads of pid b09hlzbb
(Expedition Volcano episode 1), first using --tvmode=best and then using
--tvmode-hlshd.

This behaviour does not accord with the documentation at
https://github.com/get-iplayer/get_iplayer/wiki/modes, which gives as an
explicit example using --tvmode=best to get 1280x720 @25fps:

===
D:\Users\Nick>get_iplayer --pid=b09hlzbb --verbose --tvmode=best
get_iplayer 3.07.0, Copyright (C) 2008-2010 Phil Lewis
  This program comes with ABSOLUTELY NO WARRANTY; for details use
--warranty.
  This is free software, and you are welcome to redistribute it under
certain
  conditions; use --conditions for details.

INFO: encodinglocale = cp1252
INFO: encodinglocalefs = cp1252
INFO: encodingconsoleout = cp850
INFO: encodingconsolein = cp850
INFO: ${^UNICODE} = 0
INFO: Profile dir: C:\Users\Nick\.get_iplayer
INFO: User options file: C:\Users\Nick\.get_iplayer\options
INFO: System options file: C:\ProgramData\get_iplayer\options
-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
Current options:
    encodingconsolein = cp850
    encodingconsoleout = cp850
    encodinglocale = cp1252
    encodinglocalefs = cp1252
    fileprefix = <-senum><-episodeshort>
    output = D:\Users\Nick\Videos
    pid = b09hlzbb
    tvmode = best
    verbose = 1

INFO: Search args: ''
INFO: Loaded history for first check.
INFO: Loading recordings history
INFO: Programme not in history
INFO: No file cache exists for tv
INFO: No file cache exists for radio
INFO: Cleaning PID - old: 'b09hlzbb' new: 'b09hlzbb'
INFO: Getting URL: http://www.bbc.co.uk/programmes/b09hlzbb.json
INFO: tv episode PID detected (b09hlzbb)
Matches:
INFO: 0 matching programmes
INFO: Programme not in history
INFO: Getting URL: http://www.bbc.co.uk/programmes/b09hlzbb.json
INFO: Getting URL:
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/iptv-all/vpid/p05p91x1/transferformat/dash?cb=29003
INFO: Getting URL:
http://vod-dash-uk-live.akamaized.net/usp/auth/vod/piff_abr_full_sd_ad/3172c5-b09hlz8g/vf_b09hlz8g_ab4e84c6-23f5-46a9-aea4-c3478add3d01.ism.hlsv2.ism/iptv_hd_abr_v1_dash_master.mpd?__gda__=1513182214_cbbc75654e7f5b43589a44ecde2df3bd
INFO: Getting URL:
http://vod-dash-uk-live.bbcfmt.hs.llnwd.net/usp/auth/vod/piff_abr_full_sd_ad/3172c5-b09hlz8g/vf_b09hlz8g_ab4e84c6-23f5-46a9-aea4-c3478add3d01.ism.hlsv2.ism/iptv_hd_abr_v1_dash_master.mpd?s=1513139014=1513182214=9eccf2f6b09c53eca6ad67496675c5ba
INFO: Getting URL:
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/pc/vpid/p05p91x1/transferformat/dash?cb=88101
ERROR: Response: 403 No Protocol
INFO: Getting URL:
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/iptv-all/vpid/p05p91x1/transferformat/hls?cb=65088
ERROR: Response: 403 No Protocol
INFO: Getting URL:
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/apple-ipad-hls/vpid/p05p91x1/transferformat/hls?cb=34729
ERROR: Response: 403 No Protocol
INFO: No streams available for 'audiodescribed' version (p05p91x1) -
skipping
INFO: Getting URL:
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/iptv-all/vpid/b09hlz8g/transferformat/dash?cb=82852
INFO: Getting URL:
http://vod-dash-uk-live.akamaized.net/usp/auth/vod/piff_abr_full_hd/3172c5-b09hlz8g/vf_b09hlz8g_c6f5a28e-45a1-4db2-ae5a-490bffd8dc84.ism.hlsv2.ism/iptv_hd_abr_v1_dash_master.mpd?__gda__=1513182229_9e5f766da2f24338e5de21cf8527aa48
INFO: Getting URL:
http://vod-dash-uk-live.bbcfmt.hs.llnwd.net/usp/auth/vod/piff_abr_full_hd/3172c5-b09hlz8g/vf_b09hlz8g_c6f5a28e-45a1-4db2-ae5a-490bffd8dc84.ism.hlsv2.ism/iptv_hd_abr_v1_dash_master.mpd?s=1513139029=1513182229=52587baf738286ac7d4e00eba2989aed
INFO: Getting URL:
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/pc/vpid/b09hlz8g/transferformat/dash?cb=55978
ERROR: Response: 403 No Protocol
INFO: Getting URL:
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/iptv-all/vpid/b09hlz8g/transferformat/hls?cb=38674
ERROR: Response: 403 No Protocol
INFO: Getting URL:
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/apple-ipad-hls/vpid/b09hlz8g/transferformat/hls?cb=24356
ERROR: Response: 403 No Protocol
INFO: Found mode 'dvfhd1': (gip_dvf_iplayer_5070) dash h264 1280x720
50fps 5070kbps stream (CDN: mf_limelight_uk_dash/2)
INFO: Found mode 'dvfhd2': (gip_dvf_iplayer_5070) dash h264 1280x720
50fps 5070kbps stream (CDN: mf_akamai_uk_dash/1)
INFO: Found mode 'dvfsd1': (gip_dvf_iplayer_2812) dash h264 960x540
50fps 2812kbps stream (CDN: mf_limelight_uk_dash/2)
INFO: Found mode 'dvfsd2':