Jump to content


Photo

How to make Emby pick highest quality stream?

stream strm m3u8 quality hd

  • Please log in to reply
4 replies to this topic

#1 surprisejedi OFFLINE  

surprisejedi

    Newbie

  • Members
  • 9 posts
  • Local time: 01:04 AM

Posted 05 December 2019 - 12:15 PM

I have a very specific scenario here. I have a stream file (.strm) that points to a .m3u8 stream. I am able to play this stream but it doesn't pick the highest quality.

The .m3u8 file:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=614000,AVERAGE-BANDWIDTH=564000,RESOLUTION=480x270,CODECS="avc1.77.30,mp4a.40.2"
270/prog_index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1118000,AVERAGE-BANDWIDTH=1028000,RESOLUTION=640x360,CODECS="avc1.77.30,mp4a.40.2"
360/prog_index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1998000,AVERAGE-BANDWIDTH=1828000,RESOLUTION=960x540,CODECS="avc1.77.30,mp4a.40.2"
540/prog_index.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=3318000,AVERAGE-BANDWIDTH=3028000,RESOLUTION=1280x720,CODECS="avc1.77.30,mp4a.40.2"
720/prog_index.m3u8

Emby is not picking the 1280x720 stream. It is using the 480x270 stream. I have a excellent internet connection and am able to even stream 4k comfortably. Why would a 720p stream be difficult for Emby?

I have also set 4k as home network quality.

I get about 100mpbs download speeds.



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146562 posts
  • Local time: 08:04 PM

Posted 05 December 2019 - 02:04 PM

Hi, we're running it through ffmpeg so that's just what ffmpeg ends up picking. I'm guessing it probably picks the first one.



#3 nashi20002003 OFFLINE  

nashi20002003

    Newbie

  • Members
  • 5 posts
  • Local time: 07:04 PM

Posted 24 December 2019 - 03:19 PM

I Have this same issue.  Can something be done.  Obviously Emby is doing sonmething wrong.  my m3u8 in any browser pick at leat the 720p which is OK for me.  In some apps, like in ProgTV I always get the 1080p one.

In live channels on my shield tv I always get the 1080p stream.  But Emby using the same HLS url is picking the lowest quality one.  Something is wrong in your ffmpeg command.   VLC also picks at least the 720p.  

I also use an Kodi plug in whcin uses ffmpeg to record and play m3u8 stream and it always pick at least the 720p.

 

Can you please look into this?  This is a showstopper.  I will have cancel my Emby premier due to this.  m3u8 is unusable.

 

Here's my m3u8 url: http://api.new.lives...00883/live.m3u8

 

and here's the streams inside it...while decoded:

 

#EXT-X-STREAM-INF:PROGRAM-ID=0,BANDWIDTH=428000,CODECS="avc1.4d401e,mp4a.40.2",RESOLUTION=432x240

#EXT-X-STREAM-INF:PROGRAM-ID=0,BANDWIDTH=678000,CODECS="avc1.4d401e,mp4a.40.2",RESOLUTION=640x360

#EXT-X-STREAM-INF:PROGRAM-ID=0,BANDWIDTH=1628000,CODECS="avc1.4d401f,mp4a.40.2",RESOLUTION=853x480

#EXT-X-STREAM-INF:PROGRAM-ID=0,BANDWIDTH=4628000,CODECS="avc1.4d4028,mp4a.40.2",RESOLUTION=1920x1080
 


Edited by nashi20002003, 24 December 2019 - 03:21 PM.


#4 nashi20002003 OFFLINE  

nashi20002003

    Newbie

  • Members
  • 5 posts
  • Local time: 07:04 PM

Posted 24 December 2019 - 04:04 PM

Found this issue have been around in Emby for years.  So I don't know if somebody can really look into this. 

 

https://emby.media/c...tion-issue-m3u/

 

The workaround the OP used in 2017, is awful....The links in the m3u8 change every few hours.  One of the reason of moving to Emby from TVHeadend was for me to avoid updating the link.  TVHeadend compiled for Android does not handle pipe:// ffmpeg comand to handle HLS.  I had to use the link inside the m3u8 as a work around and got tired of doing so.  I was happy to see Emby android server handled HLS directly but then this issue with picking the lowest quality brings me back to the same thing.

 

Please help.



#5 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 146562 posts
  • Local time: 08:04 PM

Posted Yesterday, 02:24 PM

@surprisejedi we are looking into improving this. Thanks for the feedback.





Also tagged with one or more of these keywords: stream, strm, m3u8, quality, hd

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users