psychedelicu 3 Posted March 3, 2024 Posted March 3, 2024 Hello! I have an issue with my emby server. When the audio is transcoded, the movie is freezing once every 5-10 minutes. I attached the logs.The movie froze at 8:03pm Hardware: Dell optiplex micro / i5 9500T / 32gb ram / 2tb nvme / 4tb HDD. ffmpeg-remux-0fa3c2d9-a79f-4cdb-97b6-77b455ad3141_1.txt embyserver.txt ffmpeg-remux-e70211de-a926-4e54-9c41-85717b2f7fad_1.txt
SamES 993 Posted March 4, 2024 Posted March 4, 2024 Not sure. I wouldn't have thought your hardware would be an issue for audio transcoding, but the transcode rate does drop fairly low Quote 20:05:15.998 elapsed=00:02:07.22 frame= 5950 fps= 47 q=-1.0 size=N/A time=00:03:42.93 bitrate=N/A throttle=100 speed=1.75x 20:05:16.500 elapsed=00:02:07.72 frame= 5953 fps= 47 q=-1.0 size=N/A time=00:03:42.93 bitrate=N/A throttle=100 speed=1.75x >> ThrottleBySegmentRequest: RequestPosition: 00:26:00 - TranscodingPosition: 00:28:00 - ThrottleBuffer: 121s (Treshold: 120s) 20:05:17.002 elapsed=00:02:08.23 frame= 5953 fps= 46 q=-1.0 size=N/A time=00:03:42.93 bitrate=N/A throttle=100 speed=1.74x 20:05:17.503 elapsed=00:02:08.73 frame= 5953 fps= 46 q=-1.0 size=N/A time=00:03:42.93 bitrate=N/A throttle=100 speed=1.73x 20:05:18.005 elapsed=00:02:09.23 frame= 5953 fps= 46 q=-1.0 size=N/A time=00:03:42.93 bitrate=N/A throttle=100 speed=1.73x 20:05:18.506 elapsed=00:02:09.73 frame= 5953 fps= 46 q=-1.0 size=N/A time=00:03:42.93 bitrate=N/A throttle=100 speed=1.72x >> ThrottleBySegmentRequest: RequestPosition: 00:26:06 - TranscodingPosition: 00:28:00 - ThrottleBuffer: 115s (Treshold: 120s) Enter throttle value: <int, ms wait per input cycle> (0 to disable) Which disc is this path on /data/transcoding/transcoding-temp ?
psychedelicu 3 Posted March 4, 2024 Author Posted March 4, 2024 (edited) 4 hours ago, SamES said: Not sure. I wouldn't have thought your hardware would be an issue for audio transcoding, but the transcode rate does drop fairly low Which disc is this path on /data/transcoding/transcoding-temp ? I use the same hdd disk where files are. I didn't want to use nvme for longer lifespan. I deleted the transcoding path now and i'm testing again to see if is doing the same, as the transcoding use nvme now . But in logs it starts with 29x speed, and gradually decreases to 1.29x. So i don't think this is the issue. Maybe because throttling is on and cause the freeze? Maybe it forgets to start? What are the green/red bars anyway? ffmpeg-remux-a601deba-0cfa-4cea-a414-17ae9356a1ec_1.txt Edited March 4, 2024 by psychedelicu
psychedelicu 3 Posted March 4, 2024 Author Posted March 4, 2024 Ok, the movie froze again... at 19:09PM. Sub still working I'm changing the path to hdd again. ffmpeg-remux-a601deba-0cfa-4cea-a414-17ae9356a1ec_1 (3).txt
psychedelicu 3 Posted March 4, 2024 Author Posted March 4, 2024 I turned off the throttling and now it seems is working fine, so this was the issue. Developers must fix this though, because if you download something wchile you start wathing something, HDD can't handle both process. Also, I have checked the files in \transcoding-temp\ path and it seems video fragments appear here, hundreds of files. Since I turned off Users > allow video transcoding, why is it still transcoding the video? Shouldn't it just do the sound? Downloaded video file is 8.1GB and the transcoded files from \transcoding-temp\ are 7.85gb. Is that ok?
psychedelicu 3 Posted March 4, 2024 Author Posted March 4, 2024 I tested again with another movie. After some time it's freezing again. On unraid, i have high jumps on both reads/writes. Now i remember why o turned on throttling. ffmpeg-directstream-c78f0dc3-fc01-4056-8d69-f5ff5ccc5bb8_1.txt
psychedelicu 3 Posted March 4, 2024 Author Posted March 4, 2024 41 minutes ago, Luke said: Hi, this could be your issue: These are my settings. What do you say exactly?
Luke 39617 Posted March 4, 2024 Posted March 4, 2024 Hi, try checking all four boxes and see how things compare.
SamES 993 Posted March 4, 2024 Posted March 4, 2024 4 hours ago, psychedelicu said: I use the same hdd disk where files are. I didn't want to use nvme for longer lifespan. I deleted the transcoding path now and i'm testing again to see if is doing the same, as the transcoding use nvme now . But in logs it starts with 29x speed, and gradually decreases to 1.29x. So i don't think this is the issue. Just remember that in this case the system needs to read 20Mb/s for the disk, write 20Mb/s back to the disk as segments then read 20Mb/s back from the segments to send it to the device. You also have other overhead, but you are potentially trying to process 60Mb/s of I/O. That may not sound like a lot, but depending on the age of you motherboard, it's controller type, the age and type of your spinning disk and how full it is, you may be starting to reach a limitation. Can you run a test with the transcoding temp moved to the nvme to see if it makes any difference? Then we can eliminate this as an issue.
psychedelicu 3 Posted March 4, 2024 Author Posted March 4, 2024 (edited) 11 minutes ago, SamES said: Just remember that in this case the system needs to read 20Mb/s for the disk, write 20Mb/s back to the disk as segments then read 20Mb/s back from the segments to send it to the device. You also have other overhead, but you are potentially trying to process 60Mb/s of I/O. That may not sound like a lot, but depending on the age of you motherboard, it's controller type, the age and type of your spinning disk and how full it is, you may be starting to reach a limitation. Can you run a test with the transcoding temp moved to the nvme to see if it makes any difference? Then we can eliminate this as an issue. This has been discussed and tested above. I changed the temp path to nvme and I have the same issue. I'm sure it's a bug related to throttling function. I think it forgets to start again after some time. Edited March 4, 2024 by psychedelicu
psychedelicu 3 Posted March 4, 2024 Author Posted March 4, 2024 14 minutes ago, Luke said: Hi, try checking all four boxes and see how things compare. I don't have emby premium, so I don't want to transcode unnecessary video files. I turnned on all the settings now, but it seems that sometimes direct play is not working and is changing to HSL for no reason and converting to compatible resolution.
SamES 993 Posted March 4, 2024 Posted March 4, 2024 (edited) 31 minutes ago, psychedelicu said: This has been discussed and tested above. I changed the temp path to nvme and I have the same issue. I'm sure it's a bug related to throttling function. I think it forgets to start again after some time. You deleted the transcoding path setting, but how did you confirm it was going to the nvme? Where is /config/transcoding-temp located? Is that the nvme? I just want to be sure before you eliminate this possibility Edited March 4, 2024 by SamES
psychedelicu 3 Posted March 4, 2024 Author Posted March 4, 2024 5 hours ago, SamES said: You cleared the setting, but how did you confirm it was going to the nvme? Where is /config/transcoding-temp located? Is that the nvme? I just want to be sure before you eliminate this possibility I checked the path manually via ftp/smb. You can see that in the logs too. @SamES The files were transcoded on unRAID, mnt/cache/appdata/emby which is on nvme. Also, the old folder from disk was empty during playback. 1
SamES 993 Posted March 5, 2024 Posted March 5, 2024 (edited) I'm wondering if there are some unraid/docker settings that need tweaking. Have you searched this forum to see if others have found improvements? Here's another forum I found which might have some suggestions: Unraid tweaks for Media server performance? - User Customizations - Unraid Edited March 5, 2024 by SamES
psychedelicu 3 Posted March 5, 2024 Author Posted March 5, 2024 1 hour ago, SamES said: I'm wondering if there are some unraid/docker settings that need tweaking. Have you searched this forum to see if others have found improvements? Here's another forum I found which might have some suggestions: Unraid tweaks for Media server performance? - User Customizations - Unraid I don't think so. I used this guide: https://trash-guides.info/Hardlinks/How-to-setup-for/Unraid/ Here are my settings:
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