Hoping to further understanding of readrate and forced read rate (-re) in 4.1.1 update. #116
Replies: 2 comments
-
What the Previously when The recent changes should've not caused more desync issues, they should've solved them. What kind of files are causing issues for you? You said IPTV and twitch, so is it livestreams that are having these issues? We did test HLS livestreams and they weren't having issues on our end. Let us know more details so we can investigate. Can you also try v4.1.0 and let us know if that one works for you |
Beta Was this translation helpful? Give feedback.
-
If this should be in an issue let me know I can create one and add as much context as possible! To answer your questions, Second use case is locally hosted jellyfin download links. These are straight from a file. Which if it was downloading the whole file in memory and streaming it, that would make sense why it was so buttery smooth. When I use -re with the jellyfin links the audio is desynced by like 500ms. This happens on either version and is probably either a config issue on my end or something unrelated to the update. But its something that is completely solved without -re on the old version. (but i understand why that wasn't ideal). I can watch the source file without any desync just fine through jellyfin. If there is any other data I can provide let me know! Desynced Jellyfin File Media InfoVideo Audio stuttery IPTV stream ffmpeg -iInput #0, hls, from 'stream_url': |
Beta Was this translation helpful? Give feedback.
-
Hi! I use this awesome package for my own discord streambot that streams IPTV, jellyfin, and twitch links to discord. I was updating packages and wanted to use 4.1.1 to get rid of liabilities. I swapped over and noticed that my streams were choppy. I've always had nativeReadFps off since most of the time it caused my streams to have stuttering/audio desync specifically when using the jellyfin file links. I noticed that it was discussed in the patch notes and that it should always be defaulted to on so I was hoping to understand better as to why? Is this a problem on my end that I can fix to make my stream quality more consistent? I don't think this deserves an issue since currently I'm using 4.0.0 and streams work fine with -re off. I read the ffmpeg docs and it seems like my issues should be reversed but they are not. I was just hoping the community could help me better understand how it works / what I'm doing wrong. Thanks!
from https://ffmpeg.org/ffmpeg.html
-readrate speed (input) Limit input read speed. Its value is a floating-point positive number which represents the maximum duration of media, in seconds, that should be ingested in one second of wallclock time. Default value is zero and represents no imposed limitation on speed of ingestion. Value 1 represents real-time speed and is equivalent to -re. Mainly used to simulate a capture device or live input stream (e.g. when reading from a file). Should not be used with a low value when input is an actual capture device or live stream as it may cause packet loss. It is useful for when flow speed of output packets is important, such as live streaming.-re (input)
Read input at native frame rate. This is equivalent to setting -readrate 1.
Beta Was this translation helpful? Give feedback.
All reactions