Page 1 of 1
Problem with Playback History for completed video stream
Posted: 01 Oct 2022 06:05
by programatix
Hi,
I'm using VLC to playback videos from Synology NAS via Synology Photos app which exposes videos via video streaming URL. Everything is good where it continues playback if I stop halfway. However a problem arises when the video ends. When I want to play the video again, it will immediately go to the end of the video, and the video ends.
It seems that VLC couldn't detect that the video has ended and keeps resuming it. The only workaround for me now is to disable Playback History and delete all existing histories.
Is there a way to fix this without turning off Playback History?
Re: Problem with Playback History for completed video stream
Posted: 03 Oct 2022 07:29
by Aza
This is probably due to the way your Synology app report the file duration. What would help here is a copy of your database. You can generate this file in Settings > Advance > Dump media database.
You can send it to me privately using any sharing service (Drive, Dropbox, ...) by using the contact icon here ->
Re: Problem with Playback History for completed video stream
Posted: 05 Oct 2022 10:16
by Aza
I received your files and took a look. It's in fact due to the medialibrary not being able to retrieve your stream duration. We will take a look.
Re: Problem with Playback History for completed video stream
Posted: 05 Oct 2022 13:00
by programatix
I wonder why during playback, the duration of the video is correctly shown? I assume the medialibrary is not sharing the video duration obtained by the UI?
If the issue is on the app side, please do share more info on how to resolve this. I'll open a case at Synology.
Re: Problem with Playback History for completed video stream
Posted: 06 Oct 2022 06:59
by Aza
I assume the medialibrary is not sharing the video duration obtained by the UI?
That's exactly that. The medialibrary is the piece of code in charge of retaining the info about medias during playback. For now, it determines the duration itself and there is no way we override this value.
I saw that your stream takes a long time to respond. maybe it's too long for the medialibrary timeout.
Re: Problem with Playback History for completed video stream
Posted: 07 Oct 2022 01:11
by programatix
I saw that your stream takes a long time to respond. maybe it's too long for the medialibrary timeout.
What request is that? I need a bit of details to open a case at Synology.
Thanks.
Re: Problem with Playback History for completed video stream
Posted: 07 Oct 2022 07:03
by Aza
The initial buffering is long. Not sure it's due to Synology though. It might be a caused by a lot of things. When we add the media to the medialibrary, it tries to open it to detect the duration (and other things) but has a relatively short timeout. It's only conjunction though, the person in charge of the medialibrary will take a look.
Re: Problem with Playback History for completed video stream
Posted: 10 Oct 2022 16:43
by programatix
I make the same test with a file manager called Solid Explorer (
https://play.google.com/store/apps/deta ... dexplorer2). This app will create a http stream locally when opening videos.
In my test, I connect it to a sftp server and then play a media. The result is exactly the same as when I'm using Synology Photos app.
Do you need me to send you the media dB dump?
Re: Problem with Playback History for completed video stream
Posted: 11 Oct 2022 13:47
by Aza
Probably not. I forwarded all the informations to the person in charge of the medialibrary. They will take a look and we will find a fix.
Re: Problem with Playback History for completed video stream
Posted: 24 Nov 2022 17:22
by programatix
Any status on this issue? I tried the latest 3.5.3 and the issue is still there.