exebetche / vlsub

VLC extension to download subtitles from opensubtitles.org
1.34k stars 346 forks source link

Unable to save subtitles on Linux #213

Open devxpy opened 6 years ago

devxpy commented 6 years ago

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

ghost commented 5 years ago

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

Worked for me on Ubuntu 19.04

ForeverZer0 commented 5 years ago

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.

PetriKoo commented 5 years ago

i would like a possibility to save subtitle same directory where video file is.

ForeverZer0 commented 5 years ago

i would like a possibility to save subtitle same directory where video file is.

That is already how it works, the cache is just a step in the middle.

baruchiro commented 5 years ago

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

Worked for me on Ubuntu 19.04

The only solution that worked for me, thanks.

ForeverZer0 commented 5 years ago

Ensuring the existence ~/.cache/vlc (or ~/snap/vlc/common/.cache/vlc with snap) will fix the issue, though I discovered using cleaner tools such as Bleachbit will delete the cache, so make sure to add that folder to the whitelist.

Still think using the .cache folder is not the best solution. If temporarily storing intermediate files on disk is unavoidable for some reason, the /tmp or /var/tmp directory would be far more appropriate, as they are "temporary" files, and not being used for caching. Would also eliminate this issue.

aj4abinjacob commented 5 years ago

mkdir ~/.cache/vlc didn't work for me at first in Manjaro KDE 18.1.Then i deleted the cache folder using rmdir ~/.cache/vlc and again run mkdir ~/.cache/vlc ,this worked for me.

gayansanjeewa commented 5 years ago

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 :laughing: I'm running vlc 3.0.7 on ubuntu 19.04 IMO @devxpy can close this issue

diosky commented 5 years ago

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 commented 5 years ago

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

regulator-g commented 4 years ago

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

SurajVerma commented 4 years ago

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

y0rd4nis commented 4 years ago

mkdir ~/.cache/vlc worked for me too

Fedora 31 vlc-3.0.9-22.fc31.x86_64

vageliskatsiotis commented 4 years ago

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

javierology commented 4 years ago

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

mritunjayr commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

Same here!

Chuhtra commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

diegorodriguezv commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

https://github.com/flathub/org.videolan.VLC/issues/70

e5pe commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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.