-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subtitles timing is off #360
Comments
I confirm that the subtitles seem to appear a few seconds too early. I tested on VLC and on SMPlayer. When played on Areena on the web browser, the subtitle timing seems much better. Not currently sure what is causing this. It might be that there is some kind of subtitle timing offset that does not get applied correctly on the downloaded video file. |
I forgot to tell which players I used, but VLC and Jellyfin (both client application and web client) behaved the same. Quite odd, that previous showings of the same episodes worked fine. |
@svalavuo I had the exact same issue with a series. Did you download the Vera Stanhope as series? I noticed with independent files they seemed to be on time, but with series, lagging for few seconds. I'm also using Jellyfin. |
@IlmariKu Ah, ok. I downloaded both those series as series. I have to try to download as individual episodes. Thanks for the tip! |
Ok. That didn't help in my case. :-( When I downloaded those as series, subtitles were a bit early. Now that I downloaded those as individual episodes, subtitles are a bit late. |
I wonder @svalavuo, if you execute the command with |
There is something funny going with Areena. :-) |
Not all videos have external subtitle files. It seems that especially recent Areena programs do not have external subtitles anymore. Embedded subtitles do not show up in the --showmetadata output, only external subtitles when they are available. It is safe to ignore the "Can't support the subtitle" warning. Ffmpeg outputs it on all Areena streams but still downloads the (embedded) subtitles. |
There is no fix for this? |
I'll test this a bit. I think the list of things to figure out are:
EDIT: Answer to number 2 is yes, same delay on embedded vs. extracted with ffmpeg. To answer number 1: This film: Also, one another movie had exactly same -2.0sec delay subtitles. Is there a theme here? Can you download that file @svalavuo and test if you have the same delay? Fixed the sub timing with +2.0s delay Third example, https://areena.yle.fi/1-66395414, this film, also -2.0 second delay. Fixed by adding +2.0s to it If we can find a pattern, maybe we can do something about it. |
Now, what I have tried with, they are all quite close two seconds early. So I delayed subtitles that 2 seconds with mkvtoolnix. Seems to work. |
Which hardware / OS are you running? I'm using Raspberry pi with Ubuntu. I wonder if the 2 seconds is caused by something related to yle-dl or maybe some slowness in hardware. |
Apparently my answer wasn't saved earlier. :-( I was wondering if there is some kind of timing information delivered with the video, because browsers play them just fine. |
Yeah, it's strange, I'm experiencing the exact same behavior of 2 second delay with subtitles. I need to personally get this fixed, so I also don't have to open up programs to manually adjust subtitles. I'll see if I find something and let the thread know. |
Same problem here. For me it seems that all downloads have subs 2 seconds early. Of course they can be delayed in player options, but as you need to do that every time starting to watch one of these downloads, it's a bit annoying. In ffmpeg command line options list there is (quote): Could this be a way to modify the timing of subtitle stream(s) if I knew (which I obviously do not) how to feed it to ffmpeg? |
Subtitle timing seems to be still off. I ran yle-dl with -VV flag and did notice something that might be relevant. But then this one https://areena.yle.fi/1-64122776, published at February 2024, had different offset. EDIT: |
Some observations about subtitle timing vs. publish date: The ffmpeg -itsoffset command line option added to the actual download command sent to ffmpeg corrected the timing at download, I tested that. But then you would need to know in advance if there is a timing "error" in the stream - and because publishing date gives no reliable clue of that, you'll have to download first to be able to check. So, not very useful. I noticed that "start: n.nnn" in the -VV output also, but for some reason I assumed it's the time the first sub line appears counted from the start of the video and didn't check it any further. So this is still only guessing. |
Is it just me and my setup or does the latest yle-dl (20240429) make subtitles appear earlier than they should?
Tried with Vera Stanhope (https://areena.yle.fi/1-2503613) all episodes. And same with Roy Grace (https://areena.yle.fi/1-50791118) all episodes.
The text was updated successfully, but these errors were encountered: