mpv-player / mpv-build

🔨 Helper scripts to compile mpv on Linux
http://mpv.io
404 stars 104 forks source link

Building mpv with srt protocol support #138

Closed maci3k90 closed 4 years ago

maci3k90 commented 4 years ago

Hello.

What I have already tried:

  1. ./clean
  2. Downloading latest libsrt from https://github.com/Haivision/srt
  3. Install it to _buildlibs directory in mpv-build directory
  4. Adding neccessary ffmpeg options to _ffmpegoptions file:

--enable-libsrt --extra-cflags="-I$BUILD/build_libs/include" --extra-ldflags="-L$BUILD/build_libs/lib"

  1. ./build -j4

Process has ended successfully. Unfortunately for command:

./mpv srt://localhost:8090

mpv says:

No protocol handler found to open URL srt://localhost:8090 The protocol is either unsupported, or was disabled at compile-time.

Compiled ffmpeg binaries (including ffplay) works with srt.

What I have missed?

ghost commented 4 years ago

Prefix with av:// (I think) to use ffmpeg's protocol matching.