Sample Header Ad - 728x90

Is it possible to make SMPlayer check for and load external subtitles from a subdirectory (e.g. ./Subs/*.srt etc)?

1 vote
1 answer
572 views
I generally use VLC and that works fine most of the time but at a recommendation to check out mpv and mpv-based players, I have been trying to see if SMPlayer would also work for my needs. However, I am having problems with getting it to detect external subtitle files located in a subfolder, e.g. $ cd some-show-s01/ $ tree . ├── Some.Show.S01E01.mp4 ├── Some.Show.S01E02.mp4 ├── Some.Show.S01E03.mp4 └── Subs ├── Some.Show.S01E01.English-1.srt ├── Some.Show.S01E01.English-2.srt ├── Some.Show.S01E02.English-1.srt ├── Some.Show.S01E02.English-2.srt ├── Some.Show.S01E03.English-1.srt └── Some.Show.S01E03.English-2.srt I've also tried it with just a single sub per episode, whose name matches the video file exactly (e.g. ./Subs/Some.Show.S01E01.srt) as well as both variations under a sub-folder named 'Subtitles' instead of 'Subs'. VLC picks up external subs for all four of these scenarios automatically. Is there any way to get SMPlayer to do the same? If not, are there any other Linux video players besides VLC that support this layout? I'm on a mix of Fedora 35 / 36 (desktop + laptop) and comfortable compiling from source if necessary (altho converting dependent package names from other distros is sometimes challenging). I am using SMPlayer v22.7.0 (rev 10091). # dnf list installed smplayer mpv Installed Packages mpv.x86_64 0.34.1-2.fc35 @rpmfusion-free-updates smplayer.x86_64 22.7.0-1.fc35 @rpmfusion-free-updates edit: I am able to play the video in mpv itself and have subs load using: $ cd some-show-s01/ $ mpv --sub-file-paths='Subs' --sub-auto='all' ./Some.Show.S01E02.mp4 However, changing SMPlayer settings, per [this discussion](http://old-forum.smplayer.info/viewtopic.php?f=2&t=8743) , under Preferences->Advanced->MPlayer/mpv Options to add --sub-file-paths='Subs' --sub-auto='all' to the options field and hit Apply, I got the following error message: > /usr/bin/mplayer -noquiet -slave -identify -nofs -sub-fuzziness 1 -nodr -double -nomouseinput -input nodefault-bindings:conf=/dev/null -nokeepaspect -wid 92274705 -monitorpixelaspect 1 -osdlevel 0 -subfont-osd-scale 3 -progbar-align 80 -ass -embeddedfonts -ass-line-spacing 0 -ass-font-scale 1 -noflip-hebrew -ass-styles /home/myuser/.config/smplayer/styles.ass -subcp ISO-8859-1 -alang japanese,jap,jp,english,eng,en -slang english,eng,en -subpos 100 -volume 100 -ss 27 -vf-add screenshot=/home/myuser/Pictures/smplayer_screenshots/shot -noslices -af-add scaletempo -softvol -softvol-max 200 --sub-file-paths='Subs' --sub-auto='all' /home/myuser/Videos/podcasts/some-show-s01/Some.Show.S01E02.mp4 > > > Unknown option on the command line: --sub-file-paths='Subs' > > Error parsing option on the command line: --sub-file-paths='Subs' > > MPlayer 1.5-11 (C) 2000-2022 MPlayer Team > > ID_EXIT=NONE edit: Solved. My issue was two-fold: first, I needed to add some parameters to tell the underlying video player that SMPlayer uses to load subtitle files from a folder. second, I had specified parameters for mpv but my SMPlayer had defaulted to MPlayer so I had to change which video player it was calling. Alternately, I could have looked into what parameters would be required to do the same thing in MPlayer (didn't do this so can't confirm if that's possible).
Asked by zpangwin (1061 rep)
Aug 12, 2022, 12:19 AM
Last activity: Aug 12, 2022, 01:55 AM