nexmagic 3 Posted February 7, 2017 Posted February 7, 2017 Hello, just discovered this program and it seems really awesome in general - I'm now trying to see if it fits my requirements, but I've hit an issue with playing a Livestream via LiveTV m3u tuner. The source livestream runs in 720p and VLC plays it back at the correct resolution, however the emby player only reports a playback resolution of Auto - 480p (visually it seems even worse than 480p). I've included the ffmpeg-transcode log of one of my attempts. I've tried to find settings in the server that pertain to my issue but couldn't find anything (most of the encoding settings seem to be recording-related). Would be very thankful for your help, I'd love to get this working and finally have a solution that actually works. ffmpeg-transcode-b8905aaa-dbdb-4962-b790-bb24b9148b88.txt
Jdiesel 1242 Posted February 7, 2017 Posted February 7, 2017 Try changing your quality setting to something other than auto to get the stream to direct play. Try 20mbps to start.
nexmagic 3 Posted February 7, 2017 Author Posted February 7, 2017 (edited) Try changing your quality setting to something other than auto to get the stream to direct play. Try 20mbps to start. That sounds like a great move, but I'm not sure in what menu I'm supposed to change this, I tried it in the emby player, but the only quality settings I can select there are these: I feel like I must be missing something in the server menu but I just can't seem to find it. Edit: Bonus info: I'm playing these on the same computer that's hosting the server so network saturation shouldn't be an issue. Edited February 7, 2017 by nexmagic
Jdiesel 1242 Posted February 7, 2017 Posted February 7, 2017 According to your transcoding log the source file is indeed a 480x272 1 Mbps video. Can you confirm in VLC with the same link to the m3u8 as in the transcoding log?
nexmagic 3 Posted February 7, 2017 Author Posted February 7, 2017 According to your transcoding log the source file is indeed a 480x272 1 Mbps video. Can you confirm in VLC with the same link to the m3u8 as in the transcoding log? I've opened the link in VLC and took a screenshot of the Media Info panel (should be the right one, I hope): Additionally, the way I interpret the transcoding log, the 480x272 is just one of the available video streams or something? It seems to also list a 1280x720 version a bit further down.
Jdiesel 1242 Posted February 7, 2017 Posted February 7, 2017 Ah I see, it is a HLS stream so links to the different qualities are packaged in the same container. For whatever reason Emby is selecting the first and lowest quality out of the them. I don't have much experience with HLS and am unsure if Emby supports it.
nexmagic 3 Posted February 7, 2017 Author Posted February 7, 2017 (edited) Ah I see, it is a HLS stream so links to the different qualities are packaged in the same container. For whatever reason Emby is selecting the first and lowest quality out of the them. I don't have much experience with HLS and am unsure if Emby supports it. Thank you very much for this insight, at least I understand the issue now. I hope someone else can chime in with a suggestion how to get this to work since so far emby is pretty much to best way I've found to make everything else work, so it'd be a shame to have this issue be the one that breaks it. Again, thank you very much already! Edit: Worked around this issue for the time being by wget'ing the master m3u8 file and then using the link for the 720p version directly in my emby m3u, however I'm not sure how regularly these links change, which means correct handling of HLS quality selection would be appreciated. Edited February 7, 2017 by nexmagic
Luke 38827 Posted February 7, 2017 Posted February 7, 2017 Can you attach the corresponding emby server log? thanks.
nexmagic 3 Posted February 7, 2017 Author Posted February 7, 2017 (edited) This should be the correct server log, top/middle has attempts with the issue, end has attempts with the workaround. Thank you. server-63621991340.txt Edited February 7, 2017 by nexmagic
Luke 38827 Posted February 7, 2017 Posted February 7, 2017 Ok yea this is something we'd have to look at for a future update because we haven't really dealt with this up to this point. Thanks.
nexmagic 3 Posted February 7, 2017 Author Posted February 7, 2017 Well thank you very much for taking a look at it. Workaround will do for evaluating emby. Great project, keep up the good work.
nexmagic 3 Posted February 7, 2017 Author Posted February 7, 2017 (edited) Ran into another thing while testing and I didn't want to make a whole new thread for it: Is it possible that low computer performance leads to sound being out of balance when watching Live TV? With my workaround I can now successfully watch, however when I watch content from the emby server hosted on my linux VM, the sound, while still stereo, will be skewed to the right. This does not occur when watching content provided by an emby server hosted on my main, windows PC. There is no noticeable stuttering or delay, only the sound is off-balance. It does not seem to matter which device I watch the content on, only which server is streaming it. Thanks in advance. Edit: I have included a corresponding ffmpeg log from my linux VM. ffmpeg-transcode-10f2d29b-46c1-4977-b057-72b222b36b28.txt Edited February 7, 2017 by nexmagic
Luke 38827 Posted February 8, 2017 Posted February 8, 2017 I'm not exactly sure. can we look at a windows log for comparison? Is this all browser playback?
nexmagic 3 Posted February 8, 2017 Author Posted February 8, 2017 (edited) I've just gone ahead and played the same station from both servers on my windows pc in the browser to confirm the issue. Attached are the logs from both servers for this. ffmpeg-directstream is from the windows server without the issue ffmpeg-remux is from the linux VM with the issue the differing filenames are curious, however I've used the same playback settings for both, namely 720p - 10mbps (highest option available). ffmpeg-directstream-bef2d243-db02-4653-bb61-993997ce762d.txt ffmpeg-remux-4475ffc7-a650-45f0-be10-7d5850e4b18c.txt Edited February 8, 2017 by nexmagic
gcorgnet 1 Posted April 15, 2020 Posted April 15, 2020 Hi, I realise this is an old thread but I am running into the same issue and I was wondering if a soution had ever been found for that problem This is the content of the m3u stream I am trying to hit: #EXTM3U #EXT-X-VERSION:3 #EXT-X-INDEPENDENT-SEGMENTS #EXT-X-STREAM-INF:BANDWIDTH=582678,AVERAGE-BANDWIDTH=581685,RESOLUTION=480x270,FRAME-RATE=25.000,CODECS="avc1.42C015,mp4a.40.2" master_1.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=934652,AVERAGE-BANDWIDTH=911650,RESOLUTION=640x360,FRAME-RATE=25.000,CODECS="avc1.42C01E,mp4a.40.2" master_2.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1404022,AVERAGE-BANDWIDTH=1351697,RESOLUTION=960x540,FRAME-RATE=25.000,CODECS="avc1.4D401F,mp4a.40.2" master_3.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1873418,AVERAGE-BANDWIDTH=1791775,RESOLUTION=1024x576,FRAME-RATE=25.000,CODECS="avc1.4D401F,mp4a.40.2" master_4.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=2929445,AVERAGE-BANDWIDTH=2781810,RESOLUTION=1280x720,FRAME-RATE=25.000,CODECS="avc1.4D401F,mp4a.40.2" master_5.m3u8 VLC starts at the lowest res but quicly upgrades to the highest Could Emby to something like that? What would be the best way to force it to use the highest res? Thanks
Luke 38827 Posted April 15, 2020 Posted April 15, 2020 Hi, I realise this is an old thread but I am running into the same issue and I was wondering if a soution had ever been found for that problem This is the content of the m3u stream I am trying to hit: #EXTM3U #EXT-X-VERSION:3 #EXT-X-INDEPENDENT-SEGMENTS #EXT-X-STREAM-INF:BANDWIDTH=582678,AVERAGE-BANDWIDTH=581685,RESOLUTION=480x270,FRAME-RATE=25.000,CODECS="avc1.42C015,mp4a.40.2" master_1.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=934652,AVERAGE-BANDWIDTH=911650,RESOLUTION=640x360,FRAME-RATE=25.000,CODECS="avc1.42C01E,mp4a.40.2" master_2.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1404022,AVERAGE-BANDWIDTH=1351697,RESOLUTION=960x540,FRAME-RATE=25.000,CODECS="avc1.4D401F,mp4a.40.2" master_3.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1873418,AVERAGE-BANDWIDTH=1791775,RESOLUTION=1024x576,FRAME-RATE=25.000,CODECS="avc1.4D401F,mp4a.40.2" master_4.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=2929445,AVERAGE-BANDWIDTH=2781810,RESOLUTION=1280x720,FRAME-RATE=25.000,CODECS="avc1.4D401F,mp4a.40.2" master_5.m3u8 VLC starts at the lowest res but quicly upgrades to the highest Could Emby to something like that? What would be the best way to force it to use the highest res? Thanks Hi, yes we'll be revamping this in the near future. thanks.
gcorgnet 1 Posted October 17, 2020 Posted October 17, 2020 On 4/15/2020 at 4:27 PM, Luke said: Hi, yes we'll be revamping this in the near future. thanks. Hey mate, did you guys get chance to look into this at all? Thanks
Carlo 4478 Posted October 17, 2020 Posted October 17, 2020 This should be handled in the update to Live TV that's currently in development. 1
francoiscn 1 Posted January 5, 2022 Posted January 5, 2022 (edited) Is this still being looked at? I have several streams that exhibit the same behavior as described by nexmagic (720-1080p streams in VLC and 240-360p in emby). This one for example emby picks the lowest quality: #EXTM3U #EXT-X-VERSION:4 #EXT-X-INDEPENDENT-SEGMENTS #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="program_audio",LANGUAGE="fra",NAME="audio_fr",AUTOSELECT=YES,DEFAULT=YES #EXT-X-STREAM-INF:BANDWIDTH=270318,AVERAGE-BANDWIDTH=281600,CODECS="avc1.42c00c,mp4a.40.2",RESOLUTION=320x180,FRAME-RATE=14.985,AUDIO="program_audio" master_256.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=416027,AVERAGE-BANDWIDTH=440000,CODECS="avc1.42c00d,mp4a.40.2",RESOLUTION=320x180,FRAME-RATE=29.970,AUDIO="program_audio" master_400.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=719588,AVERAGE-BANDWIDTH=770000,CODECS="avc1.66.30,mp4a.40.2",RESOLUTION=640x360,FRAME-RATE=29.970,AUDIO="program_audio" master_700.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1124335,AVERAGE-BANDWIDTH=1210000,CODECS="avc1.4d401f,mp4a.40.2",RESOLUTION=852x480,FRAME-RATE=29.970,AUDIO="program_audio" master_1100.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1832642,AVERAGE-BANDWIDTH=1980000,CODECS="avc1.4d401f,mp4a.40.2",RESOLUTION=852x480,FRAME-RATE=29.970,AUDIO="program_audio" master_1800.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=2540950,AVERAGE-BANDWIDTH=2750000,CODECS="avc1.4d401f,mp4a.40.2",RESOLUTION=1280x720,FRAME-RATE=29.970,AUDIO="program_audio" master_2500.m3u8 #EXT-X-MEDIA:TYPE=AUDIO,LANGUAGE="fra",NAME="audio_fr",AUTOSELECT=YES,DEFAULT=YES,GROUP-ID="program_audio",URI="master_128.m3u8" #EXT-X-MEDIA:TYPE=AUDIO,LANGUAGE="fra",NAME="audio_dv",AUTOSELECT=YES,DEFAULT=YES,GROUP-ID="program_audio",URI="master_dv.m3u8" Edited January 5, 2022 by francoiscn
Luke 38827 Posted January 5, 2022 Posted January 5, 2022 2 hours ago, francoiscn said: Is this still being looked at? I have several streams that exhibit the same behavior as described by nexmagic (720-1080p streams in VLC and 240-360p in emby). This one for example emby picks the lowest quality: #EXTM3U #EXT-X-VERSION:4 #EXT-X-INDEPENDENT-SEGMENTS #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="program_audio",LANGUAGE="fra",NAME="audio_fr",AUTOSELECT=YES,DEFAULT=YES #EXT-X-STREAM-INF:BANDWIDTH=270318,AVERAGE-BANDWIDTH=281600,CODECS="avc1.42c00c,mp4a.40.2",RESOLUTION=320x180,FRAME-RATE=14.985,AUDIO="program_audio" master_256.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=416027,AVERAGE-BANDWIDTH=440000,CODECS="avc1.42c00d,mp4a.40.2",RESOLUTION=320x180,FRAME-RATE=29.970,AUDIO="program_audio" master_400.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=719588,AVERAGE-BANDWIDTH=770000,CODECS="avc1.66.30,mp4a.40.2",RESOLUTION=640x360,FRAME-RATE=29.970,AUDIO="program_audio" master_700.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1124335,AVERAGE-BANDWIDTH=1210000,CODECS="avc1.4d401f,mp4a.40.2",RESOLUTION=852x480,FRAME-RATE=29.970,AUDIO="program_audio" master_1100.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=1832642,AVERAGE-BANDWIDTH=1980000,CODECS="avc1.4d401f,mp4a.40.2",RESOLUTION=852x480,FRAME-RATE=29.970,AUDIO="program_audio" master_1800.m3u8 #EXT-X-STREAM-INF:BANDWIDTH=2540950,AVERAGE-BANDWIDTH=2750000,CODECS="avc1.4d401f,mp4a.40.2",RESOLUTION=1280x720,FRAME-RATE=29.970,AUDIO="program_audio" master_2500.m3u8 #EXT-X-MEDIA:TYPE=AUDIO,LANGUAGE="fra",NAME="audio_fr",AUTOSELECT=YES,DEFAULT=YES,GROUP-ID="program_audio",URI="master_128.m3u8" #EXT-X-MEDIA:TYPE=AUDIO,LANGUAGE="fra",NAME="audio_dv",AUTOSELECT=YES,DEFAULT=YES,GROUP-ID="program_audio",URI="master_dv.m3u8" Hi, yes we're still looking into this. Thanks. 1
Carlo 4478 Posted January 5, 2022 Posted January 5, 2022 @francoiscn are you sure it's not defaulting to the first or last in the list? That would seem to make more sense then the lowest quality. Are these public streams or from your provider? Any chance I could get a couple channels to test with for an hour or so? 1
francoiscn 1 Posted January 6, 2022 Posted January 6, 2022 (edited) Here are the options for quality: And here is the "stats for nerd" info when opening that channel: 0:18 0:20 Playback Info Player: Web Video Player Play method: Transcode Protocol: http Stream type: HLS Video Info Video resolution: 320x180 Dropped frames: 0 Corrupted frames: 0 Original Media Info Container: hls Bitrate: 1.1 Mbps Video codec: H264 Constrained Baseline Video bitrate: 1000 kbps Video framerate: 14.985015 fps Audio codec: AAC LC Audio bitrate: 127 kbps Audio channels: 2 Audio sample rate: 48000 Hz Edited January 6, 2022 by francoiscn
francoiscn 1 Posted January 6, 2022 Posted January 6, 2022 (edited) 21 hours ago, cayars said: @francoiscn are you sure it's not defaulting to the first or last in the list? That would seem to make more sense then the lowest quality. Are these public streams or from your provider? Any chance I could get a couple channels to test with for an hour or so? I think you might be right it picks the first one which is in this case the lowest quality. Public stream from https://github.com/iptv-org/iptv/blob/master/channels/ca.m3u The problematic one is : #EXTINF:-1 tvg-id="IciRDI.ca" tvg-country="CA" tvg-language="French" tvg-logo="https://raw.githubusercontent.com/geonsey/Free2ViewTV/master/images/logos/ICI-RDI.png" group-title="News",Ici RDI (720p) https://rcavlive.akamaized.net/hls/live/704025/xcanrdi/master.m3u8 Edited January 6, 2022 by francoiscn
Carlo 4478 Posted January 6, 2022 Posted January 6, 2022 It's probably only a few channels that have this issue using multiple streams. What you can do is grab the url for that channel which happens to be https://rcavlive.akamaized.net/hls/live/704025/xcanrdi/master.m3u8 Open that up in a browser to get the list of streams. Pick the one you want to use and replace the URL above in the master list with that stream. Now it will always use the stream you choose.
francoiscn 1 Posted January 8, 2022 Posted January 8, 2022 On 1/6/2022 at 3:48 PM, cayars said: It's probably only a few channels that have this issue using multiple streams. What you can do is grab the url for that channel which happens to be https://rcavlive.akamaized.net/hls/live/704025/xcanrdi/master.m3u8 Open that up in a browser to get the list of streams. Pick the one you want to use and replace the URL above in the master list with that stream. Now it will always use the stream you choose. Indeed, thanks that's a good fix in the meantime! 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now