1080p video streaming is lagging on Plex, please help!

Server Version#: v1.23.4.4805-186bae04e

Hi All! I have a Raspberry Pi 4 set up as a NAS. I run a Transmission client on it and a Plex server. I don’t use SD card, instead I have a flash drive attached (to the USB 3 port) to it and the OS is running from the flash drive. There’s also an external HDD where I store my movies. I think my router is good enough for high data transfer, I have an Asus RT-AC68U router, running Asus Merlin on it. The Pi is attached through LAN port, to maximize data transfer. There’s a Fire Tv stick 4K attached to my TV, with a Plex client on it. The WiFi signal is quite good, since the router is only a few feet away from the TV. I turned off the Transmission client while I tried to stream this movie, so that shouldn’t be interfering the network. The problem is, some full HD movies are lagging and this way it’s not enjoyable to watch movies. I really want to find out how to improve my system to make watching these videos enjoyable on Plex. - I’ve pleyed the same video on Kodi and it doesen’t lagging. So there’s gotta be something with the Plex.

This is just an example, information from a video I wanted to play today:

Video Codec: x264, L4.1 Resolution: 1920x800 Bitrate: 13 000 Kbps Fps: 23.976

Audio Format: AC3 Bitrate: 448 Kbps

From the log:
Jul 20, 2021 11:41:26.306 [0xb1936d48] Debug — HTTP/1.1 (1.5s) 200 response from GET http://127.0.0.1:44321/system/:/prefs
Jul 20, 2021 11:41:26.306 [0xb1df9d48] Debug — [com.plexapp.system] HTTP reply status 200, with 418 bytes of content.
Jul 20, 2021 11:41:26.306 [0xb1936d48] Debug — [com.plexapp.system] HTTP reply status 200, with 418 bytes of content.
Jul 20, 2021 11:41:26.307 [0xb270cd48] Debug — Completed: [192.168.1.144:55699] 200 GET /system/:/prefs (14 live) TLS GZIP 3025ms 864 bytes (pipelined: 1)
Jul 20, 2021 11:41:26.307 [0xb270cd48] Debug — Completed: [192.168.1.144:55700] 200 GET /system/:/prefs (14 live) TLS GZIP 1568ms 864 bytes (pipelined: 3)
Jul 20, 2021 11:41:26.477 [0xb270cd48] Debug — Auth: authenticated user 1 as kris_ny
Jul 20, 2021 11:41:26.477 [0xb1024d48] Debug — Request: [192.168.1.144:55706 (Subnet)] GET /:/websockets/notifications?filters=log (15 live) TLS GZIP Signed-in Token (kris_ny)
Jul 20, 2021 11:41:26.477 [0xb1024d48] Debug — WebSocket: Performing handshake from origin http://192.168.1.5:32400
Jul 20, 2021 11:41:26.477 [0xb1024d48] Debug — Beginning read from WebSocket
Jul 20, 2021 11:41:26.511 [0xb272fd48] Debug — Auth: authenticated user 1 as kris_ny
Jul 20, 2021 11:41:26.511 [0xb0f6ad48] Debug — Request: [192.168.1.144:55697 (Subnet)] GET /activities (15 live) TLS GZIP Signed-in Token (kris_ny)
Jul 20, 2021 11:41:26.513 [0xb270cd48] Debug — Completed: [192.168.1.144:55697] 200 GET /activities (15 live) TLS GZIP 1ms 480 bytes (pipelined: 3)
Jul 20, 2021 11:41:26.703 [0xb272fd48] Debug — Auth: authenticated user 1 as kris_ny
Jul 20, 2021 11:41:26.703 [0xb1df9d48] Debug — Request: [192.168.1.159:47070 (Subnet)] GET /:/timeline?audioStreamID=9306&bufferedTime=114&column=3&context=home%3Ahub.video.recent&duration=6031000&guid=com.plexapp.agents.none%3A%2F%2F3134d125140e9ee6084d68f93035308bfdf42c70%3Flang%3Dxn&key=%2Flibrary%2Fmetadata%2F2305&playbackTime=858387&playQueueItemID=7737&ratingKey=2305&row=2&state=buffering&time=732046&timeStalled=16&token=xxxxxxxxxxxxxxxxxxxx (15 live) TLS GZIP Signed-in Token (kris_ny)
Jul 20, 2021 11:41:26.706 [0xb1df9d48] Debug — Client [a7de12eb906b181e-com-plexapp-android] reporting timeline state buffering, progress of 732046/6031000ms for guid=com.plexapp.agents.none://3134d125140e9ee6084d68f93035308bfdf42c70?lang=xn, playbackTime=858387ms ratingKey=2305 url=, key=/library/metadata/2305, containerKey=, metadataId=2305, source=
Jul 20, 2021 11:41:27.130 [0xb1df9d48] Debug — Play progress on 2305 ‘the.thirteenth.floor.1080p-trinity’ - got played 732046 ms by account 1!
Jul 20, 2021 11:41:27.131 [0xb1df9d48] Debug — [Now] User is kris_ny (ID: 1)
Jul 20, 2021 11:41:27.131 [0xb1df9d48] Debug — [Now] Device is Android (AFTMM).
Jul 20, 2021 11:41:27.131 [0xb1df9d48] Debug — [Now] Profile is Android
Jul 20, 2021 11:41:27.132 [0xb1df9d48] Debug — [Now] Updated play state for /library/metadata/2305.
Jul 20, 2021 11:41:27.132 [0xb1df9d48] Debug — Statistics: (a7de12eb906b181e-com-plexapp-android) Reporting active playback in state 2 of type 1 (scrobble: 0) for account 1
Jul 20, 2021 11:41:27.144 [0xb272fd48] Debug — Completed: [192.168.1.159:47070] 200 GET /:/timeline?audioStreamID=9306&bufferedTime=114&column=3&context=home%3Ahub.video.recent&duration=6031000&guid=com.plexapp.agents.none%3A%2F%2F3134d125140e9ee6084d68f93035308bfdf42c70%3Flang%3Dxn&key=%2Flibrary%2Fmetadata%2F2305&playbackTime=858387&playQueueItemID=7737&ratingKey=2305&row=2&state=buffering&time=732046&timeStalled=16&token=xxxxxxxxxxxxxxxxxxxx (15 live) TLS GZIP 440ms 775 bytes (pipelined: 20)
Jul 20, 2021 11:41:27.444 [0xb1024d48] Debug — [Transcode] Transcoder segment range: 0 - 74 (74)
Jul 20, 2021 11:41:27.447 [0xb0f6ad48] Debug — [Transcode] Transcoder segment range: 0 - 75 (74)
Jul 20, 2021 11:41:27.449 [0xb1001d48] Debug — [Transcode/a7de12eb906b181e-com-plexapp-android] Returning segment 74 from session
Jul 20, 2021 11:41:27.449 [0xb1001d48] Debug — Content-Length of /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-a7de12eb906b181e-com-plexapp-android-89a5af72-5c64-4458-beec-9767b5d5f11b/media-00074.ts is 21181813 (of total: 21181813).
Jul 20, 2021 11:41:27.864 [0xb270cd48] Debug — Auth: authenticated user 1 as kris_ny
Jul 20, 2021 11:41:27.865 [0xb1936d48] Debug — Request: [192.168.1.159:47072 (Subnet)] GET /:/timeline?audioStreamID=9306&bufferedTime=5330&column=3&context=home%3Ahub.video.recent&duration=6031000&guid=com.plexapp.agents.none%3A%2F%2F3134d125140e9ee6084d68f93035308bfdf42c70%3Flang%3Dxn&key=%2Flibrary%2Fmetadata%2F2305&playbackTime=859523&playQueueItemID=7737&ratingKey=2305&row=2&state=playing&time=732046&token=xxxxxxxxxxxxxxxxxxxx (15 live) TLS GZIP Signed-in Token (kris_ny)
Jul 20, 2021 11:41:27.866 [0xb1936d48] Debug — Client [a7de12eb906b181e-com-plexapp-android] reporting timeline state playing, progress of 732046/6031000ms for guid=com.plexapp.agents.none://3134d125140e9ee6084d68f93035308bfdf42c70?lang=xn, playbackTime=859523ms ratingKey=2305 url=, key=/library/metadata/2305, containerKey=, metadataId=2305, source=
Jul 20, 2021 11:41:28.282 [0xb1936d48] Debug — Play progress on 2305 ‘the.thirteenth.floor.1080p-trinity’ - got played 732046 ms by account 1!
Jul 20, 2021 11:41:28.282 [0xb1936d48] Debug — [Now] User is kris_ny (ID: 1)
Jul 20, 2021 11:41:28.282 [0xb1936d48] Debug — [Now] Device is Android (AFTMM).
Jul 20, 2021 11:41:28.282 [0xb1936d48] Debug — [Now] Profile is Android
Jul 20, 2021 11:41:28.282 [0xb1936d48] Debug — [Now] Updated play state for /library/metadata/2305.
Jul 20, 2021 11:41:28.282 [0xb1936d48] Debug — Statistics: (a7de12eb906b181e-com-plexapp-android) Reporting active playback in state 0 of type 1 (scrobble: 0) for account 1
Jul 20, 2021 11:41:28.313 [0xb272fd48] Debug — Completed: [192.168.1.159:47072] 200 GET /:/timeline?audioStreamID=9306&bufferedTime=5330&column=3&context=home%3Ahub.video.recent&duration=6031000&guid=com.plexapp.agents.none%3A%2F%2F3134d125140e9ee6084d68f93035308bfdf42c70%3Flang%3Dxn&key=%2Flibrary%2Fmetadata%2F2305&playbackTime=859523&playQueueItemID=7737&ratingKey=2305&row=2&state=playing&time=732046&token=xxxxxxxxxxxxxxxxxxxx (15 live) TLS GZIP 448ms 782 bytes (pipelined: 21)
Jul 20, 2021 11:41:28.506 [0xb272fd48] Debug — Completed: [192.168.1.159:47000] 200 GET /video/:/transcode/universal/session/a7de12eb906b181e-com-plexapp-android/base/00073.ts (15 live) TLS 58455ms 29608968 bytes (pipelined: 37)
Jul 20, 2021 11:41:28.507 [0xb272fd48] Debug — Removed transcode data consumer, active count 2 => 1
Jul 20, 2021 11:41:28.569 [0xb1df9d48] Debug — Request: [192.168.1.159:47000 (Subnet)] GET /video/:/transcode/universal/session/a7de12eb906b181e-com-plexapp-android/base/00075.ts (15 live) TLS Signed-in
Jul 20, 2021 11:41:28.570 [0xb1df9d48] Debug — [Transcode/a7de12eb906b181e-com-plexapp-android] Asked for segment 75 from session.

Additional log:

Jul 20, 2021 11:42:17.747 [0xb1001d48] Warning — Waited one whole second for a busy database.
Jul 20, 2021 11:43:19.276 [0xb1814d48] Warning — Waited one whole second for a busy database.
Jul 20, 2021 11:43:21.827 [0xb1814d48] Error — Failed to begin transaction (…/Statistics/StatisticsManager.cpp:249) (tries=1): Cannot begin transaction. database is locked
Jul 20, 2021 11:43:57.806 [0xb0f6ad48] Warning — Waited one whole second for a busy database.
Please help me. Thank you!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.