Modes and best quality

Ralph Corderoy ralph at inputplus.co.uk
Wed Dec 13 15:15:21 PST 2017


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  dvfhigh1    gip_dvf_iplayer_1570  dash h264  704x396  50fps 1570kbps stream mf_limelight_uk_dash/2
    20502  dvfhigh2    gip_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  hvfhigh1    gip_hvf_iplayer_2004  hls  h264  704x396  50fps 2004kbps stream mf_bidi_uk_hls/3
    60502  hvfhigh2    gip_hvf_iplayer_2004  hls  h264  704x396  50fps 2004kbps stream mf_limelight_uk_hls/2
    60503  hvfhigh3    gip_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.

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



More information about the get_iplayer mailing list