Use the best available video stream

Issue #871 new
Petr Nejedly repo owner created an issue

HLS may provide multiple streams, by quality. We should use the highest available one.

http://forum.serviio.org/viewtopic.php?f=3&t=18897

Comments (8)

  1. jhb50

    You are correct that they have no particular order. Here is one example; Input #0, hls,applehttp, from 'http://........./smil:1_oorxcge2_all.smil/playlist.m3u8': Duration: N/A, start: 2710.149000, bitrate: 277 kb/s Program 0 Metadata: variant_bitrate : 2096000 Stream #0:0: Data: timed_id3 (ID3 / 0x20334449) Metadata: variant_bitrate : 2096000 Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc Metadata: variant_bitrate : 2096000 Stream #0:2: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp, 95 k b/s Metadata: variant_bitrate : 2096000 Program 1 Metadata: variant_bitrate : 475136 Stream #0:3: Data: timed_id3 (ID3 / 0x20334449) Metadata: variant_bitrate : 475136 Stream #0:4: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv), 4 80x270 [SAR 1:1 DAR 16:9], 59.94 tbr, 90k tbn, 119.88 tbc Metadata: variant_bitrate : 475136 Stream #0:5: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp, 60 k b/s Metadata: variant_bitrate : 475136 Program 2 Metadata: variant_bitrate : 679936 Stream #0:6: Data: timed_id3 (ID3 / 0x20334449) Metadata: variant_bitrate : 679936 Stream #0:7: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv), 6 40x360 [SAR 1:1 DAR 16:9], 59.94 tbr, 90k tbn, 119.88 tbc Metadata: variant_bitrate : 679936 Stream #0:8: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp, 60 k b/s Metadata: variant_bitrate : 679936 Program 3 Metadata: variant_bitrate : 987136 Stream #0:9: Data: timed_id3 (ID3 / 0x20334449)= 0B f=0/0 Metadata: variant_bitrate : 987136 Stream #0:10: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv), 640x 360 [SAR 1:1 DAR 16:9], 59.94 tbr, 90k tbn, 119.88 tbc Metadata: variant_bitrate : 987136 Stream #0:11: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp, 60 kb/s Metadata: variant_bitrate : 987136

  2. jhb50

    Why not have Serviio select the stream based on the Preferred Online Quality in the Console, although it should also be expanded to allow 1080 to be selected separately from 720..ie: high-1080,high-720,medium-480,low-240

  3. jhb50

    livestreamer http://docs.livestreamer.io/cli.html allows the stream quality to be selected.

    I have integrated livestreamer into my ffmpeg wrapper so that I can now use it to feed the best quality stream to Serviio. wrapper in = "C:\Program Files\Serviio\lib\ffmpeg.exe" -p hlsvariant://http://la7live-lh.akamaihd.net/i/test_1@143593/master.m3u8 wrapper out = livestreamer hlsvariant://http://la7live-lh.akamaihd.net/i/test_1@143593/master.m3u8 best -O | "C:\Program Files\Serviio\lib\ffmpeg.exe" -i -

  4. Log in to comment