celluloid-player / celluloid

A simple GTK+ frontend for mpv
https://celluloid-player.github.io
GNU General Public License v3.0
1.14k stars 91 forks source link

subtitles #187

Open peekaa opened 8 years ago

peekaa commented 8 years ago

Is it possible for mpv to load subtitles automatically if they are in the same solder with the same name (extension is srt)? Is it possible to set somewhere encoding of the srt file? Thank you.

gnome-mpv commented 8 years ago

Is it possible for mpv to load subtitles automatically if they are in the same solder with the same name (extension is srt)?

You can use the --sub-auto=exact to do this. Put the option in Extra MPV options: or load the option from an mpv.conf file. This is the default though, so it should already work unless the option has been overridden somewhere.

Is it possible to set somewhere encoding of the srt file?

Use the --sub-codepage option. See man mpv for details.

peekaa commented 8 years ago

I cant on gnome use the options in command line. I need use method double click in nautilus. So I try to create /etc/mpv/mpv.conf (it was not here after install gnome-mpv) and add some lines but still not working. Its debian stretch, fresh new install. man mpv.conf not working too...


sub-auto=fuzzy
sub-codepage=cp1250
gnome-mpv commented 8 years ago

I cant on gnome use the options in command line. I need use method double click in nautilus.

The options should be put in the Extra MPV options: text box of the preferences dialog (press ctrl+p to show).

So I try to create /etc/mpv/mpv.conf (it was not here after install gnome-mpv) and add some lines but still not working. Its debian stretch, fresh new install. man mpv.conf not working too...

To load an mpv config file, the config file location needs to be set in the preferences dialog under MPV Configuration section and the Load MPV configuration file check box needs to be checked.

screenshot from 2016-06-10 20-04-27

peekaa commented 8 years ago

OK, thank you. Is it possible to set global /etc/mpv/mpv.conf for all users at once?

gnome-mpv commented 8 years ago

No, but I may add that feature later.

faedy2 commented 2 years ago

I cant on gnome use the options in command line. I need use method double click in nautilus.

The options should be put in the Extra MPV options: text box of the preferences dialog (press ctrl+p to show).

So I try to create /etc/mpv/mpv.conf (it was not here after install gnome-mpv) and add some lines but still not working. Its debian stretch, fresh new install. man mpv.conf not working too...

To load an mpv config file, the config file location needs to be set in the preferences dialog under MPV Configuration section and the Load MPV configuration file check box needs to be checked.

screenshot from 2016-06-10 20-04-27

Thank you I just added sub-auto=fuzzy to my mpv.conf and couldn't figure out why the settings were not reflecting in Celluloid I had to direct Celluloid to where the file was