2

This is a followup question to this question:

In order to play video files with a sub title file on MacOS 10.13.6: How to install mplayer so that I am able to use subtitles (when using the command-line version of mplayer?

Addendum

I followed the suggestion made in the other post:

brew uninstall mplayer
brew reinstall freetype
brew reinstall fontconfig
brew install --build-from-source mplayer

The last command provoked an error:

Error: Xcode alone is not sufficient on High Sierra.
Install the Command Line Tools:
  xcode-select --install

and so I did install the Command Line Tools. Then I repeated the mplayer install command. It was installed with the following configure line:

./configure --cc=clang --host-cc=clang --disable-cdparanoia --prefix=/usr/local/Cellar/mplayer/1.3.0 --disable-x11

and then running the command as follows

mplayer  testvideo.mkv  -sub SubTest.srt

with the content of SubTest.srt as follows:

1
00:00:00,000 --> 00:00:05,000
<font face="Arial" size="50" color="#425aa0"><b>TEST TEXT</b></font>

does NOT show any subtitle, nor any error.

The output of brew info mplayeris:

mplayer: stable 1.3.0 (bottled), HEAD
UNIX movie player
https://mplayerhq.hu/
/usr/local/Cellar/mplayer/1.3.0 (11 files, 28.8MB) *
  Built from source on 2019-01-11 at 07:40:20
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/mplayer.rb
==> Dependencies
Build: yasm ✔
Optional: libcaca ✘, libdvdnav ✘, libdvdread ✘
==> Options
--with-libcaca
    Build with libcaca support
--with-libdvdnav
    Build with libdvdnav support
--with-libdvdread
    Build with libdvdread support
--HEAD
    Install HEAD version
==> Analytics
install: 1,198 (30 days), 3,569 (90 days), 15,129 (365 days)
install_on_request: 1,140 (30 days), 3,408 (90 days), 14,307 (365 days)
build_error: 0 (30 days)

What else can I try? I rather would not like to install and use a virtual box ...

Alex
  • 570
  • 4
  • 31
  • 60
  • How is the answer in the linked question not working for you? – DavidPostill Jan 07 '19 at 21:15
  • No. I tried that but still mplayer cannot show subtitles – Alex Jan 08 '19 at 07:09
  • What font do you have selected in Preferences? Did you try different fonts / styles? If you press O a couple of times, does the time code get displayed or do you only see the play symbol? – harrymc Jan 10 '19 at 10:43
  • @harrymc I am not sure what you mean. How to select a font in 'Preferences'? Wher/How to do that? Also, when I press O many times during the play, nothing special happens. When playing a video with `mplayer` I do not see a play-symbol. Note: I am using the command -line version of the command... – Alex Jan 10 '19 at 11:06
  • I think it should related with the srt syntax, have you try yo simplify the text by removing the tags and see what is appen? – AtomiX84 Jan 15 '19 at 08:33

1 Answers1

0

Here is a procedure that somewhat worked:

  1. Install mpv with brew. With that tool it is possible to watch videos with subtitles.
  2. However, that installation broke mplayer and avconv.
  3. Uninstall mplayer and avconv
  4. Reinstall mplayer and avconv
Alex
  • 570
  • 4
  • 31
  • 60