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
Sometimes fail to start (or uses a very long time to get going) #9
Comments
I've seen it a few times, and I suspect what is happening is that vlc is picking the wrong part of the torrent to play, and there is nothing to play there. |
How exactly is the plugin selecting which file to play when the torrent point to several? The logic seem to need some tuning, as it pick the wrong one once in a while. |
There is not logic. It's just adds all files in the torrent to the playlist. See |
[Johan Gunnarsson]
There is not logic. It's just adds all files in the torrent to the
playlist. See `build_playlist` in `metadata.cpp`.
Aha, so it is pure luck that it sometimes actually start playing the
video?
…--
Happy hacking
Petter Reinholdtsen
|
Well... yeah. |
Perhaps it is better to try to locate video files in the stream, or start playing the largest file, or some other heuristics to have a more predictable behaviour? |
Yes. I'm thinking about some heuristics like filter away all files that don't have image, audio or video file extensions, and the sorting the list. That way you will always have playable items and in predictable order. |
[Johan Gunnarsson]
Yes. I'm thinking about some heuristics like filter away all files
that don't have image, audio or video file extensions, and the sorting
the list. That way you will always have playable items and in
predictable order.
Right, sound like a good idea to look at the files to decide how to
handle them. Note, believing in extentions is not really very robust.
Video files do not need to have an extension, or a recognizable
extension.
…--
Vennlig hilsen
Petter Reinholdtsen
|
I can't peek or probe the files. It has to be done when it builds the playlist and that's before files are downloaded. At that time only metadata (filename and file size) is available. |
[Johan Gunnarsson]
I can't peek or probe the files. It has to be done when it builds the
playlist and that's before files are downloaded. At that time only
metadata (filename and file size) is available.
That limit the options, indeed. I suspect size might be a good
predictor, as the 'meat' of the package tend to take up most of the
space too. Perhaps sort them by size and start playing the largest one
is a good idea? If I am not mistaken, it is similar to how the vlc
dvdsimple: source work.
…--
Happy hacking
Petter Reinholdtsen
|
I tested the sort idea using the following patch, and while theplaylist is indeed sorted largest to smallest file, the file selected for playing to do not seem to be affected by the playlist ordering. When trying the Loveboat torrent mentioned above, the ogg file was often selected for playing, even thought it is in the middle of the list. Any idea what is going on here?
|
I created pull request #15 with the predictable playlist ordering. It do not solve this issue, but predictable behaviour seem like a good idea anyway. |
Hi, did you make any progress on improving this? The new Debian version freeze is only a few weeks away, and I hope to get updates in before the freeze happen. |
Yes, I have been working in a rewrite of the plugin. I might make a v3.0 soon. Can't promise anything though. |
I just tested with 'vlc https://archive.org/download/LoveNest/LoveNest_archive.torrent', and had to try three times before the video would start playing. I removed the temp file after the second time, to see if it helped. Not sure it affected the result, but it did not hurt either.
The text was updated successfully, but these errors were encountered: