AP123 10 Posted March 3 Share Posted March 3 Hi all, I'm aware this issue has been posted many times. I've read just about all I can find on this topic and haven't been able to come to a resolution. I'm running the latest emby available on an RPI4 via Docker and OMV. I've tried using handbrake to convert my videos to smaller file sizes, convert them from 10bit to 8bit, lower the bit rate as low as 3mbps, and I've optimized them for streaming. However, remote users often report to me lag in my videos. I've included a log of a particular instance of a user streaming a less than 2G file that has been converted to MP4 format and optimized for web streaming. I have my RPI hardwired to my network, with 300/300 fios speeds. Even with a bitrate of 4mbps the stream is being processed in HLS and knocked down to 2mbps and 23fps. I'm completely lost on how to stop this lag, and seems to mainly happen with tv show files, not movies, although sometimes movies as well. Log has been attached, and I'm extremely not technical so please have patience if I don't understand what you're saying to me. Thank you. ffmpeg-transcode-3931e457-6940-44f3-a7fb-d1d21a5ce4af_1.txt Link to comment Share on other sites More sharing options...
Luke 37133 Posted March 4 Share Posted March 4 Hi there, please attach the main emby server log as well. thanks. Link to comment Share on other sites More sharing options...
AP123 10 Posted March 4 Author Share Posted March 4 35 minutes ago, Luke said: Hi there, please attach the main emby server log as well. thanks. Apologies again for any confusion here. I attached 3 as I'm not sure which one directly correlates to the ones I previously attached. No time stamps line up. embyserver.txt embyserver-63845020800.txt embyserver-63845107200.txt Link to comment Share on other sites More sharing options...
Happy2Play 8319 Posted March 4 Share Posted March 4 Would appear to be an underpowered setup. As it cannot process the media as fast as it wants to play. But devs may have to comment more as transcoding is happening in software. 02:16:42.847 [segment @ 0x369e7610] Opening '/config/transcoding-temp/A87F36/A87F36_69.ts.tmp' for writing 02:16:42.966 elapsed=00:00:08.59 frame= 169 fps= 20 q=28.0 size=N/A time=00:00:07.01 bitrate=N/A throttle=off speed=0.817x 02:16:43.502 elapsed=00:00:09.13 frame= 178 fps= 19 q=28.0 size=N/A time=00:00:07.40 bitrate=N/A throttle=off speed=0.811x 02:16:44.026 elapsed=00:00:09.65 frame= 189 fps= 20 q=28.0 size=N/A time=00:00:07.85 bitrate=N/A throttle=off speed=0.813x 02:16:44.527 elapsed=00:00:10.15 frame= 199 fps= 20 q=28.0 size=N/A time=00:00:08.27 bitrate=N/A throttle=off speed=0.815x 02:16:45.029 elapsed=00:00:10.65 frame= 211 fps= 20 q=28.0 size=N/A time=00:00:08.76 bitrate=N/A throttle=off speed=0.823x 02:16:45.551 elapsed=00:00:11.18 frame= 225 fps= 20 q=28.0 size=N/A time=00:00:09.36 bitrate=N/A throttle=off speed=0.838x 02:16:46.065 elapsed=00:00:11.69 frame= 235 fps= 20 q=28.0 size=N/A time=00:00:09.77 bitrate=N/A throttle=off speed=0.836x Link to comment Share on other sites More sharing options...
AP123 10 Posted March 4 Author Share Posted March 4 (edited) 19 minutes ago, Happy2Play said: Would appear to be an underpowered setup. As it cannot process the media as fast as it wants to play. But devs may have to comment more as transcoding is happening in software. 02:16:42.847 [segment @ 0x369e7610] Opening '/config/transcoding-temp/A87F36/A87F36_69.ts.tmp' for writing 02:16:42.966 elapsed=00:00:08.59 frame= 169 fps= 20 q=28.0 size=N/A time=00:00:07.01 bitrate=N/A throttle=off speed=0.817x 02:16:43.502 elapsed=00:00:09.13 frame= 178 fps= 19 q=28.0 size=N/A time=00:00:07.40 bitrate=N/A throttle=off speed=0.811x 02:16:44.026 elapsed=00:00:09.65 frame= 189 fps= 20 q=28.0 size=N/A time=00:00:07.85 bitrate=N/A throttle=off speed=0.813x 02:16:44.527 elapsed=00:00:10.15 frame= 199 fps= 20 q=28.0 size=N/A time=00:00:08.27 bitrate=N/A throttle=off speed=0.815x 02:16:45.029 elapsed=00:00:10.65 frame= 211 fps= 20 q=28.0 size=N/A time=00:00:08.76 bitrate=N/A throttle=off speed=0.823x 02:16:45.551 elapsed=00:00:11.18 frame= 225 fps= 20 q=28.0 size=N/A time=00:00:09.36 bitrate=N/A throttle=off speed=0.838x 02:16:46.065 elapsed=00:00:11.69 frame= 235 fps= 20 q=28.0 size=N/A time=00:00:09.77 bitrate=N/A throttle=off speed=0.836x Just seems odd that an RPI4 with 8G of ram can’t handle this. And it almost never happens on movie files. Almost always tv shows. I even converted the files, made them smaller, and optimized them for streaming. And it’s almost always limited to a stick like a roku or fire stick. Idt anyone has ever reported lag directly from their tv app. And it’s also not with EVERY remote user, just a small handful. Too many variables here to be just my RPI being too weak. Edited March 4 by AP123 Link to comment Share on other sites More sharing options...
Happy2Play 8319 Posted March 4 Share Posted March 4 &TranscodeReasons=ContainerBitrateExceedsLimit 2024-03-03 02:14:24.242 Info Server: http/1.1 POST http://emby_remote_ip:8080/emby/Items/149064/PlaybackInfo?UserId=eb2f61e42e0a4dbba616cb706cb47c38&mediasourceid=113f4371bebc894411effaa794e67c50&starttimeticks=00000000&audiostreamindex=1&isplayback=true&autoopenlivestream=true&maxstreamingbitrate=1957186&subtitlestreamindex=-1. UserAgent: Roku/DVP-12.5 (12.5.5.4174-CU) 2024-03-03 02:14:24.256 Info App: User policy for EricN. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True 2024-03-03 02:14:24.256 Info App: Bitrate exceeds DirectPlay limit: media bitrate: 3847816, max bitrate: 1957186 2024-03-03 02:14:24.256 Info App: Bitrate exceeds DirectStream limit: media bitrate: 3847816, max bitrate: 1957186 2024-03-03 02:14:24.257 Info App: Bitrate exceeds DirectPlay limit: media bitrate: 3847816, max bitrate: 1957186 2024-03-03 02:14:24.257 Info App: Bitrate exceeds DirectStream limit: media bitrate: 3847816, max bitrate: 1957186 2024-03-03 02:14:24.257 Info App: Bitrate exceeds DirectPlay limit: media bitrate: 3847816, max bitrate: 1957186 2024-03-03 02:14:24.257 Info App: Bitrate exceeds DirectStream limit: media bitrate: 3847816, max bitrate: 1957186 2024-03-03 02:14:24.257 Info SessionManager: Adding playSession 9ff9d8239bb9489b85cd1000ca016cc4 to session e414735fad558e0d9562d3a06d01a4a2 Only thing I can think of is Roku are very stubborn and conservative on AUTO. Set quality on client to a higher value to allow direct play assume you have the bandwidth. Link to comment Share on other sites More sharing options...
AP123 10 Posted March 4 Author Share Posted March 4 9 hours ago, Happy2Play said: &TranscodeReasons=ContainerBitrateExceedsLimit 2024-03-03 02:14:24.242 Info Server: http/1.1 POST http://emby_remote_ip:8080/emby/Items/149064/PlaybackInfo?UserId=eb2f61e42e0a4dbba616cb706cb47c38&mediasourceid=113f4371bebc894411effaa794e67c50&starttimeticks=00000000&audiostreamindex=1&isplayback=true&autoopenlivestream=true&maxstreamingbitrate=1957186&subtitlestreamindex=-1. UserAgent: Roku/DVP-12.5 (12.5.5.4174-CU) 2024-03-03 02:14:24.256 Info App: User policy for EricN. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True 2024-03-03 02:14:24.256 Info App: Bitrate exceeds DirectPlay limit: media bitrate: 3847816, max bitrate: 1957186 2024-03-03 02:14:24.256 Info App: Bitrate exceeds DirectStream limit: media bitrate: 3847816, max bitrate: 1957186 2024-03-03 02:14:24.257 Info App: Bitrate exceeds DirectPlay limit: media bitrate: 3847816, max bitrate: 1957186 2024-03-03 02:14:24.257 Info App: Bitrate exceeds DirectStream limit: media bitrate: 3847816, max bitrate: 1957186 2024-03-03 02:14:24.257 Info App: Bitrate exceeds DirectPlay limit: media bitrate: 3847816, max bitrate: 1957186 2024-03-03 02:14:24.257 Info App: Bitrate exceeds DirectStream limit: media bitrate: 3847816, max bitrate: 1957186 2024-03-03 02:14:24.257 Info SessionManager: Adding playSession 9ff9d8239bb9489b85cd1000ca016cc4 to session e414735fad558e0d9562d3a06d01a4a2 Only thing I can think of is Roku are very stubborn and conservative on AUTO. Set quality on client to a higher value to allow direct play assume you have the bandwidth. Not sure what you mean about setting quality. My user has no streaming limit set in my emby. Do you mean tell them to make changes directly in the roku? Link to comment Share on other sites More sharing options...
kjhedges 54 Posted March 4 Share Posted March 4 When media is playing via roku, click down on the remote and move right to the settings cog. Here you can set the quality from Auto to varied other formats Link to comment Share on other sites More sharing options...
AP123 10 Posted March 4 Author Share Posted March 4 18 minutes ago, kjhedges said: When media is playing via roku, click down on the remote and move right to the settings cog. Here you can set the quality from Auto to varied other formats I’ll recommend this to the user. If the file is 1080p should they try that or maybe choose a lower quality? Link to comment Share on other sites More sharing options...
kjhedges 54 Posted March 4 Share Posted March 4 you will find several 1080 settings with varied bandwidth amounts. also 720 480 ect. All with varied bandwidth amounts. Link to comment Share on other sites More sharing options...
Luke 37133 Posted March 4 Share Posted March 4 Hi, please let us know if this helps. Thanks. Link to comment Share on other sites More sharing options...
AP123 10 Posted March 5 Author Share Posted March 5 15 hours ago, Luke said: Hi, please let us know if this helps. Thanks. I'm waiting for the user to try it. In the interim, I provided the logs you requested. Were you able to review them and spot any issues? Link to comment Share on other sites More sharing options...
Luke 37133 Posted March 6 Share Posted March 6 On 3/3/2024 at 8:03 PM, Happy2Play said: Would appear to be an underpowered setup. As it cannot process the media as fast as it wants to play. But devs may have to comment more as transcoding is happening in software. 02:16:42.847 [segment @ 0x369e7610] Opening '/config/transcoding-temp/A87F36/A87F36_69.ts.tmp' for writing 02:16:42.966 elapsed=00:00:08.59 frame= 169 fps= 20 q=28.0 size=N/A time=00:00:07.01 bitrate=N/A throttle=off speed=0.817x 02:16:43.502 elapsed=00:00:09.13 frame= 178 fps= 19 q=28.0 size=N/A time=00:00:07.40 bitrate=N/A throttle=off speed=0.811x 02:16:44.026 elapsed=00:00:09.65 frame= 189 fps= 20 q=28.0 size=N/A time=00:00:07.85 bitrate=N/A throttle=off speed=0.813x 02:16:44.527 elapsed=00:00:10.15 frame= 199 fps= 20 q=28.0 size=N/A time=00:00:08.27 bitrate=N/A throttle=off speed=0.815x 02:16:45.029 elapsed=00:00:10.65 frame= 211 fps= 20 q=28.0 size=N/A time=00:00:08.76 bitrate=N/A throttle=off speed=0.823x 02:16:45.551 elapsed=00:00:11.18 frame= 225 fps= 20 q=28.0 size=N/A time=00:00:09.36 bitrate=N/A throttle=off speed=0.838x 02:16:46.065 elapsed=00:00:11.69 frame= 235 fps= 20 q=28.0 size=N/A time=00:00:09.77 bitrate=N/A throttle=off speed=0.836x This looks correct. Does the connection have enough bandwidth to try increasing the quality setting in the app a little bit? Then that will decrease the chances that transcoding is needed. Link to comment Share on other sites More sharing options...
AP123 10 Posted March 6 Author Share Posted March 6 On 3/4/2024 at 4:09 PM, Luke said: Hi, please let us know if this helps. Thanks. It did not help. They are also experiencing lag using emby via Safari iOS. Link to comment Share on other sites More sharing options...
kjhedges 54 Posted March 6 Share Posted March 6 22 minutes ago, AP123 said: They are also experiencing lag using emby via Safari iOS. Is this also with the same internet provider for both the IOS and ROKU? Or was the Safari IOS on mobile internet and Roku on Home Broadband? There is also the Emby App for IOS. Also, when the user in playing something, in the server dashboard under the current playing item, are there any messages there? ie, recovering from playback error or anything else Link to comment Share on other sites More sharing options...
AP123 10 Posted March 7 Author Share Posted March 7 On 3/6/2024 at 7:19 AM, kjhedges said: Is this also with the same internet provider for both the IOS and ROKU? Or was the Safari IOS on mobile internet and Roku on Home Broadband? There is also the Emby App for IOS. Also, when the user in playing something, in the server dashboard under the current playing item, are there any messages there? ie, recovering from playback error or anything else Same internet. Both home wifi. When the remote user is playing a video it says “lowering bitrate due to quality setting” if I recall correctly. Link to comment Share on other sites More sharing options...
Luke 37133 Posted March 8 Share Posted March 8 On 3/5/2024 at 10:34 PM, Luke said: This looks correct. Does the connection have enough bandwidth to try increasing the quality setting in the app a little bit? Then that will decrease the chances that transcoding is needed. hi, did you try this? Link to comment Share on other sites More sharing options...
AP123 10 Posted March 8 Author Share Posted March 8 5 hours ago, Luke said: hi, did you try this? I’ve asked the remote user but they don’t use emby every night. They’ve got small children so it’s difficult to sit every night and watch tv. Still waiting to find out. 1 Link to comment Share on other sites More sharing options...
AP123 10 Posted March 13 Author Share Posted March 13 On 3/8/2024 at 2:01 AM, Luke said: hi, did you try this? This did not work. The remote user is playing an episode of a show right now and it’s being transcoded down from 5mbps to 2mbps and receiving the message “reducing bitrate due to quality setting.” I’m not really sure what else to do here. Emby doesn’t really seem to work properly on Roku Link to comment Share on other sites More sharing options...
kjhedges 54 Posted March 13 Share Posted March 13 (edited) I use Roku, and have done for years. I also have users who use Roku. I see the message “reducing bitrate due to quality setting.” in dashboard sometimes for Roku remote users. But, the stream is stable to them and has no buffering issues. Has the user got the Roku setup on a 720/1080/2160 Smart TV? I know that a certain older user of mine, only has a 720p sony TV, so I get this message when that user streams. I dont know for sure if the message “reducing bitrate due to quality setting.” is relevant to the TV screen size, or just a coincidence. If the user has a Smart TV and can access the Web Browser, you could ask them to try this route. Then you will see if the Web Browser produces the same result Edit:- I just ran a TV Show locally on Android Car Stereo, which transcodes media always. This also has the message “reducing bitrate due to quality setting.” But, I get no lag, buffering or anything to interupt the stream. Edited March 13 by kjhedges Link to comment Share on other sites More sharing options...
Luke 37133 Posted March 13 Share Posted March 13 20 hours ago, AP123 said: This did not work. The remote user is playing an episode of a show right now and it’s being transcoded down from 5mbps to 2mbps and receiving the message “reducing bitrate due to quality setting.” I’m not really sure what else to do here. Emby doesn’t really seem to work properly on Roku Hi, can we please look at an example of when you tried this? Thanks. Link to comment Share on other sites More sharing options...
AP123 10 Posted March 13 Author Share Posted March 13 8 minutes ago, Luke said: Hi, can we please look at an example of when you tried this? Thanks. Sure. This is playing now as of the writing of this post. ffmpeg-transcode-c2329bea-f6a3-41b0-aa8e-e274a0772310_1.txt Link to comment Share on other sites More sharing options...
Luke 37133 Posted March 14 Share Posted March 14 22 hours ago, AP123 said: Sure. This is playing now as of the writing of this post. ffmpeg-transcode-c2329bea-f6a3-41b0-aa8e-e274a0772310_1.txt 116 kB · 1 download Can you try asking them to lower their in-app quality setting a little further and see if that helps? Thanks. Link to comment Share on other sites More sharing options...
AP123 10 Posted March 14 Author Share Posted March 14 42 minutes ago, Luke said: Can you try asking them to lower their in-app quality setting a little further and see if that helps? Thanks. They were watching two videos at once on two separate rokus earlier today. One was direct playing, and one was transcoding. At this point I can’t even explain. It just seems as if roku doesn’t have the best compatibility. Link to comment Share on other sites More sharing options...
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