diff options
author | wm4 <wm4@nowhere> | 2020-02-19 16:26:22 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-02-19 16:26:22 +0100 |
commit | b8f80b3854a2f1f4270df5804b0f02eec1ee7514 (patch) | |
tree | d723071edf007e921532915d40bf42e6b65cbc53 /player | |
parent | 2567997ecfcb164bb1467543a30350eca9a3e512 (diff) | |
download | mpv-b8f80b3854a2f1f4270df5804b0f02eec1ee7514.tar.bz2 mpv-b8f80b3854a2f1f4270df5804b0f02eec1ee7514.tar.xz |
player: print manifest per-stream bitrate information to terminal
Aka hls-bitrate. In turn, remove the demux_lavf.c hack, which made the
track title use this.
Diffstat (limited to 'player')
-rw-r--r-- | player/loadfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index f9dac4684d..b0e3167ae6 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -284,6 +284,8 @@ static void print_stream(struct MPContext *mpctx, struct track *t) APPEND(b, " %dHz", s->codec->samplerate); } APPEND(b, ")"); + if (s->hls_bitrate > 0) + APPEND(b, " (%d KB/s)", s->hls_bitrate / 8 / 1024); if (t->is_external) APPEND(b, " (external)"); MP_INFO(mpctx, "%s\n", b); |