Coder Social home page Coder Social logo

Webm encodes fail on macOS. about mpv-webm HOT 6 CLOSED

ekisu avatar ekisu commented on May 28, 2024
Webm encodes fail on macOS.

from mpv-webm.

Comments (6)

ekisu avatar ekisu commented on May 28, 2024

Please post the output of ffmpeg -version and mpv --version. Also, the homebrew install command for ffmpeg should have --with-libvpx as a flag. Some users tried running brew install libvpx as well (see the comments).

I suspect either mpv is using an static build of ffmpeg, or the ffmpeg build you are using isn't the one you installed with homebrew. I really don't know how these things work on macOS (.app bundling, static/dynamic linkage etc), so I can't help much on this.

Also, at the time #2 was opened, there was a bug that when libvpx-vp9 was used as a codec, the threads flag wouldn't be set (fixed in 1f1245c). That might be why using it worked, as there's was an issue with VP8 and threads > 1.

from mpv-webm.

NuclearNegro avatar NuclearNegro commented on May 28, 2024

~ $ffmpeg -version
ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --disable-jack --enable-gpl --enable-libass --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --enable-openssl --disable-lzma --enable-nonfree
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100

~ $mpv --version
mpv 0.28.1 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
built on Wed Feb 14 02:09:51 CET 2018
ffmpeg library versions:
libavutil 56.7.101
libavcodec 58.11.101
libavformat 58.9.100
libswscale 5.0.101
libavfilter 7.12.100
libswresample 3.0.101
ffmpeg version: git-2018-02-14-dc77e64

Also, the homebrew install command for ffmpeg should have --with-libvpx

It does. I installed ffmpeg with --with-libvpx

Some users tried running brew install libvpx as well (see the comments)

libvpx is already installed.

~ $brew install libvpx
Warning: libvpx 1.7.0 is already installed

ffmpeg can use it just fine.

from mpv-webm.

ekisu avatar ekisu commented on May 28, 2024

See how the libav* versions differ from the ffmpeg and mpv binaries. mpv isn't using your system ffmpeg libs.

Also, your mpv version reports 0.28.1, but the brew recipe you linked is on 0.27.2.

I don't have any specific insights on this, maybe mpv is using a static ffmpeg build (that ffmpeg version: git-2018-02-14-dc77e64 is really suspicious).

from mpv-webm.

NuclearNegro avatar NuclearNegro commented on May 28, 2024

Also, your mpv version reports 0.28.1, but the brew recipe you linked is on 0.27.2.

Thank you for pointing that out. I was indeed running two versions of mpv - one built within Homebrew & a precompiled binary in /Applications. My solution was to do a complete uninstall of all versions of mpv & re-build it with the same Brew command mentioned above. After the install, brew linkapps mpv placed a binary alias in /Applications.

Thanks for your patience.

from mpv-webm.

ekisu avatar ekisu commented on May 28, 2024

Glad it worked out. Just for the record, can you reproduce #2? As in, when you launch mpv via Finder, does the encode fail?

from mpv-webm.

NuclearNegro avatar NuclearNegro commented on May 28, 2024

Encodes work fine when launched from Finder, and they also work when launched from the command line.

from mpv-webm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.