Skip to content
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

Unable to save subtitles on Linux #213

Open
devxpy opened this issue May 1, 2018 · 86 comments
Open

Unable to save subtitles on Linux #213

devxpy opened this issue May 1, 2018 · 86 comments

Comments

@devxpy
Copy link

devxpy commented May 1, 2018

The directory and the file, both are owned by me.

I ran a chown -R dev:dev /home/dev just to make sure.

This is the absolute path to file /home/dev/Downloads/Westworld.S01E10.avi

⋊ ~> vlc --version
VLC media player 3.0.2 Vetinari (revision 3.0.2-0-gd7b653cf14)
VLC version 3.0.2 Vetinari (3.0.2-0-gd7b653cf14)
Compiled by root on builder.solus-project.com (Apr 30 2018 13:00:12)
Compiler: gcc version 7.3.0 (Solus)

image

@suzanshakya
Copy link

I'm having the same issue on Arch linux (manjaro-i3).

@devxpy devxpy changed the title Unable to save subtitles on Solus (Linux) Unable to save subtitles on Linux May 19, 2018
@ThatLurker
Copy link

Seems like currently the only solution is to use the latest nightly version of vlc #214

@fpontef
Copy link

fpontef commented May 20, 2018

The nightly version of vlc have a different version of this same plugin.

While the latest version here is:
https://github.com/exebetche/vlsub/blob/master/vlsub.lua
local app_version = "0.10.2";

The real latest version is:
https://github.com/videolan/vlc/blob/master/share/lua/extensions/VLSub.lua
version = "0.11.0",

I tried to use the new plugin with older VLC but had some "vlc.io.names" errors, don't know how to fix, as the older uses "io.names" and just changing this won't work (VLC api changes maybe?). Didn't go further as I don't know Lua and missed where the "zip" changes from the old version.

@devxpy
Copy link
Author

devxpy commented May 20, 2018

I really wish this was built on python, not Lua

@gilelias
Copy link

I had the same issue on ubuntu, I found out the the cache folder is missing. Creating the cache folder fixed the issue for me.
mkdir ~/.cache/vlc

@devxpy
Copy link
Author

devxpy commented Jun 29, 2018

I have the cache folder where it should be..

@gvorster
Copy link

@gilelias mkdir ~/.cache/vlc this did it for me on ubuntu 18

@devxpy
Copy link
Author

devxpy commented Jun 29, 2018

⋊ ~> cd ~/.cache/vlc
⋊ ~/.c/vlc> ls
 art/
'Tomb.Raider.2018.720p.WEB-DL.H264.AC3-EVO (CHI).srt.gz'
 Tomb.Raider.2018.720p.WEB-DL.H264.AC3-EVO-HI.srt.gz
 Tomb.Raider.2018.720p.WEB-DL.H264.AC3-EVO.srt.gz
 Westworld.S02E08.720p.WEB.H264-DEFLATE.srt.gz
 Westworld.S02E09.720p.WEB.H264-DEFLATE.srt.gz

@hexion
Copy link

hexion commented Jul 7, 2018

@gilelias worked like a charm, thanks!

@canf
Copy link

canf commented Jul 11, 2018

mkdir ~/.cache/vlc worked, thanks!

@itai590
Copy link

itai590 commented Jul 12, 2018

mkdir ~/.cache/vlc
Worked like a magic
thanks!

@sergiotca
Copy link

What about VLC snap installs? will it still makes sense to create a ~/.cache/vlc in the home folder??
I am a complete noob when it comes to snaps but for all I can see they do not follow the same installation route as regular deb packages, they seem to create its own strcture under the ~/snap folder

@MostafaMhmod
Copy link

MostafaMhmod commented Aug 3, 2018

Try to make the .cache folder in the snap folder inside the common in the vlc folder.
mkdir ~/snap/vlc/common/.cache
@sergiotca

@sergiotca
Copy link

Hi Mostafa, I did figure that out a few weeks ago. It does work btw. Thank you anyway.

@vagner-nascimento
Copy link

I have tried all alternatives above without susscess in Ubuntu 18.04... i'll still waiting for a definitive solution.

@thyagoleal
Copy link

@gilelias This worked for me on Ubuntu 18.04

@atay
Copy link

atay commented Aug 30, 2018

I came here because I had issues with downloading subtitles (some of them worked, some not, gz file was downloaded, but subtitles were not found).

I found out that VLSub 0.11 assumes that opensubtitles SubFormat must be same as file extension, which is not correct for many records in opensubtitles.

I prepared a version with fix that searches for a file instead of extension and it works perfectly for me. If someone has same issue as I had, feel free to replace VLSub.luac file (located in /usr/lib/x86_64-linux-gnu/vlc/lua/extensions/VLSub.luac on ubuntu) with that one:
https://mega.nz/#F!jHIhUIBY!Dm0p-QGaUnBGhckEl9JxUw

Also lua file included in case if someone would like to check/compile that file by himself.

@rafiron
Copy link

rafiron commented Sep 6, 2018

The same is happening to me on mac. Can someone guide on how to get it fixed there.

@ThatLurker
Copy link

@rafiron try switching to Iina it works awesome on mac and has subtitle download build in with multiple providers to choose from

@agiratech-vigneshm
Copy link

Ubuntu 18, Cache folder in ~/.cache/vlc did the trick for me.

@alecco
Copy link

alecco commented Oct 2, 2018

@gilelias VLC downloads the .srt.gz but to ~/.config/vlc but then it hangs. Like it can't gunzip and copy.
Gentoo 2.4.1

@Jarshvor
Copy link

Jarshvor commented Oct 4, 2018

@gilelias Thanks for this. Was annoyed by this for a while and finally stopped being lazy and looked into it.

recreating the .cache/vlc directory fixed the issue for me on arch.

how did you think to look for the cache folder? did you see it complain it was missing somewhere? wished the error for this had been more verbose.

@pmaoui
Copy link

pmaoui commented Oct 6, 2018

Like @Jarshvor, I'm very interested to learn how @gilelias managed to find out this solution (which also did the trick for me).

@gilelias
Copy link

gilelias commented Oct 6, 2018

@Jarshvor @poupougnac I was debugging vlsub code and checked where and why mess_save_fail appears.
I just realized that I have older version of vlsub. I guess b3513c5 should fix the issue.

@Jarshvor
Copy link

Jarshvor commented Oct 7, 2018

I see.. so pretty much under the hood.
=) thanks for that and for the info. Will keep it in mind for next time I encounter something similar.

@iuliandonici
Copy link

In Lubuntu 18.0.4.1 LTS, guys, for some reason I don't fully understand, creating the "cache" folder under the "root" user, VLC still wasn't loading my subtitles. Yet, when I've exited and re-created it under the user I've installed Lubuntu initially, mkdir ~/.cache/vlc worked like a charm.

@Jarshvor
Copy link

@iuliandonici well, makes sense if you are running vlc from that user account no?

if you start vlc from your normal user account (which you should) then it will look for the .cache folder in your home directory. i.e: ~

@devxpy
Copy link
Author

devxpy commented Nov 9, 2018

Looks like this is fixed now on 3.0.4

It still displays an error, but it loads the subtitle, regardless.

Big thanks to @xpaum for the fix!

image

@devxpy devxpy closed this as completed Nov 9, 2018
@gayansanjeewa
Copy link

For anyone still having problems
if mkdir ~/.cache/vlc did not work with you.
try mkdir ~/snap/vlc/common/.cache/vlc
That worked for me since I installed VLC via snap, alternatively try to find where your VLC folder is and create a vlc folder inside the .cache folder.
Cheers

Worked for me, the missing part was to create vlc directory inside .cache

For me also the missing part was vlc inside .cache 😆
I'm running vlc 3.0.7 on ubuntu 19.04
IMO @devxpy can close this issue

@diosky
Copy link

diosky commented Jul 31, 2019

for some of you who already had VLC folder in .cache , try deleting the vlc folder and recreating it with mkdir ~/.cache/vlc and then restart vlc. this is what worked for me (and is somewhat alluded to in previous comments)

@babaliaris
Copy link

@gilelias the mkdir ~/.cache/vlc worked for me too!!!

@regulator-g
Copy link

still an issue.. Devs can this folder please be created as part of the install(s)

@SurajVerma
Copy link

@gilelias's solution mkdir ~/.cache/vlc worked for me too on 19.10 😄

@y0rd4nis
Copy link

mkdir ~/.cache/vlc worked for me too

Fedora 31
vlc-3.0.9-22.fc31.x86_64

@vageliskatsiotis
Copy link

Same here
Arch 4.19.85-1-lts x86_64
vlc 3.0.8-6

@javierology
Copy link

The command mkdir ~/.cache/vlc worked for me.
Thanks gilelias
Xubuntu 19.10
VLC 3.0.8 Vetinari

@mritunjayr
Copy link

mkdir ~/.cache/vlc seems to have worked for most folks. some had to delete an existing vlc folder in the ~/.cache directory, recreate it with mkdir and then restart vlc.

mkdir ~/snap/vlc/common/.cache/vlc in case you are using the snap.
Restart VLC is necessary here.

@Miguelcmps
Copy link

mkdir ~/.cache/vlc seems to have worked for most folks. some had to delete an existing vlc folder in the ~/.cache directory, recreate it with mkdir and then restart vlc.

mkdir ~/snap/vlc/common/.cache/vlc in case you are using the snap.
Restart VLC is necessary here.

It didn't work for me, either of them. I'm using Raspbian, a Debian based OS for raspberry pi.
I will investigate the subject but I'll accept any help or guidance you can give.

@babaliaris
Copy link

babaliaris commented Feb 6, 2020

For anyone still having problems
if mkdir ~/.cache/vlc did not work with you.

try mkdir ~/snap/vlc/common/.cache/vlc

That worked for me since I installed VLC via snap, alternatively try to find where your VLC folder is and create a vlc folder inside the .cache folder.

Cheers

This worked for me! It seems that if you have installed vlc using snap then you need to create the
mkdir ~/snap/vlc/common/.cache/vlc while @gilelias answer mkdir ~/.cache/vlc works if you installed vlc with a regular package manager like apt or apt-get on Ubuntu. If you are using another distro, probably the mkdir ~/.cache/vlc would be the correct place.

@diegorodriguezv
Copy link

Try to make the .cache folder in the snap folder inside the common in the vlc folder.
mkdir ~/snap/vlc/common/.cache
@sergiotca

The correct command is:
mkdir ~/snap/vlc/common/.cache/vlc

@facundoq
Copy link

The command mkdir ~/.cache/vlc worked for me.
Thanks gilelias
Xubuntu 19.10
VLC 3.0.8 Vetinari

Same here!

@Chuhtra
Copy link

Chuhtra commented Feb 29, 2020

So, over a year later, and still somehow adding a couple lines of code for the add-on to check for existence of the cache folder and create if necessary is still only a dream.

Or better yet, not even require an intermediate cache, and just decompress the stream in memory. Not a Lua developer, so not sure if that is trivial or not, but that would be the preferred way to accomplish it in every other language I am familiar with. The need for a cache on disk for a subtitle seems kinda like redundant.

Why is it still not fixed in a proper way in master branch? The solution is found, yet it's not incorporated in the code, and it is not the optimal one on top of that.

@sanderjo
Copy link

Also still a problem on Ubuntu 20.04, with VLC Vetinari 3.0.8. Annoying.
And the mkdir ~/.cache/vlc solved it for me.

So the Debian / Ubuntu packagers don't want to or can't solve this? I thought the correct lua script was already available? Is it a matter of principle that nobody solves this?

@LargePrime
Copy link

Clear Linux. flapack of VLC Vetinari 3.0.8. Same issue
mkdir ~/.cache/vlc did not work
please advise

@diegorodriguezv
Copy link

Hello to everyone interested in this bug. A few years ago VLSub was incorporated directly into VLC. That's why I think this bug has been ignored here. I have created a bug report with the VLC team at their tracker. If you think you can add any useful information to help the developers fix it please chip in!

@diegorodriguezv
Copy link

The ticket has been closed with: "Already fixed in 3.0.9.1 "
Now, if I could find a way to install a newer version...

@LargePrime
Copy link

Clear Linux. flapack of VLC Vetinari 3.0.8. Same issue
mkdir ~/.cache/vlc did not work
please advise

flathub/org.videolan.VLC#70

@e5pe
Copy link

e5pe commented Apr 28, 2020

For anyone still having problems
if mkdir ~/.cache/vlc did not work with you.

try mkdir ~/snap/vlc/common/.cache/vlc

That worked for me since I installed VLC via snap, alternatively try to find where your VLC folder is and create a vlc folder inside the .cache folder.

Cheers

Worked for me in Ubuntu budgie 20.04, thanks :)

@amithiel
Copy link

Holy cow... its year 2020, and i still have to execute mkdir ~/.cache/vlc, in every linux distro i install. How hard it is to fix this? how many years until this can be done automatically by the install process?

@RavianXReaver
Copy link

Holy cow... its year 2020, and i still have to execute mkdir ~/.cache/vlc, in every linux distro i install. How hard it is to fix this? how many years until this can be done automatically by the install process?

Cuz the last commit was 3 years ago :-:

@akat5uki
Copy link

akat5uki commented Jul 2, 2020

I had the same issue on ubuntu, I found out the the cache folder is missing. Creating the cache folder fixed the issue for me.
mkdir ~/.cache/vlc

this worked for me as well ... thank you... (linuxmint 19.1 Cinnamon)

@jadia
Copy link

jadia commented Jul 4, 2020

I forgot that I installed VLC using snap. mkdir ~/.cache/vlc did not help me.

mkdir ~/snap/vlc/common/.cache/vlc worked like a charm on Ubuntu 20.04.

@wni5378
Copy link

wni5378 commented Feb 17, 2021

My OS: Raspbian GNU/Linux 10 (buster)
Kernel: Linux 5.10.11-v7+
VLC Ver: 3.0.12 Vetinan

The following steps worked for me:

  1. While VLC is open, delete the vlc directory
    sudo rm -r ~/.cache/vlc/

  2. Create the vlc directory:
    mkdir ~/.cache/vlc

  3. Close VLC

  4. Open VLC

When you download a subtitle, it still gives the error "Unable to save subtitles in folder, using config folder", but it works.

@raul1ro
Copy link

raul1ro commented Oct 22, 2023

I have the same problem with version 3.0.19.
But I am on Windows 11 build 22621.2428.
Someone have a solution for Windows?

@sergiotca
Copy link

I have the same problem with version 3.0.19. But I am on Windows 11 build 22621.2428. Someone have a solution for Windows?

You might wanna take a look at this

@raul1ro
Copy link

raul1ro commented Oct 23, 2023

I have the same problem with version 3.0.19. But I am on Windows 11 build 22621.2428. Someone have a solution for Windows?

You might wanna take a look at this

I don't see any fix for Windows there.

@sergiotca
Copy link

I have the same problem with version 3.0.19. But I am on Windows 11 build 22621.2428. Someone have a solution for Windows?

You might wanna take a look at this

I don't see any fix for Windows there.

Buddy read the comment, VLSub was incorporated directly into VLC years ago.
Go to their own tracker and raise a new issue over there if you cannot find something specific to your problem.
No point in necroposting here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests