I'm trying to play a RAR file in VLC in Solus but it won't start. If I play the exact file in VLC in Windows it will play so the file is not broken. I've tried to unrar the file and then it played but since that takes time that is just a workaround for now. The file that is in the RAR archive is an mkv.
Description
Revisions and Commits
| R3140 vlc | |||
| R3140:35d0520f6a11 Enable libarchive support | |||
Event Timeline
Can you clarify exactly what you're doing? Opening a compressed file in VLC I don't expect to work.
Opening a file from within a compressed file (i.e. opening up the compressed file and running the contents is more a reflection on the program handling it. It typically decompresses the file in /tmp and runs it from there.
I believe vlc supports playback from a compressed archive through libarchive, it's just a question of whether we want to add support for it and bloat the dependencies more, especially as users generally need to decompress archives first generally.
I just drag the RAR file into VLC just like in Windows. VLC do have support to play compressed archives. I think you need both libarchive and this flag when you build it --enable-archive
libarchive can be added to the build without question. Can't speak for its RAR support though.
You may need to install the unrar package which probably shouldn't be added as a rundep.
Thanks I looked at the Arch build and they have the flag --enable-archive I think that would be needed too.
Apparently libarchive supports rar https://github.com/videolan/vlc/blob/master/NEWS#L312
Just installing libarchive won't work. Just tested and still fails. Looks like it's needs to be enabled at build level.
I tested playing a .mkv file from a .tar.gz and a .zip archive, I wasn't able to test rar support as we only have unrar in the repo.
sudo eopkg install https://packages.solus-project.com/unstable/v/vlc/vlc-3.0.3-69-1-x86_64.eopkg
to confirm it's working
Works fantastic. Thanks for a super fast fix. Just one question will I receive updates for VLC from unstable now or will I get back to stable when the next stable update lands? :)
Provided you were on stable before, you will remain on stable. All that's changed is that on next sync you won't receive the vlc update because you already have it. It may have only worked as sync literally just happened, so there were no deps it built against that were only in unstable (which is the reason it installed cleanly).