Encode fails when MP4 or MP3 codes are selected on MacOS
anoniniarz opened this issue · 6 comments
mpv version and platform
macOS Sonoma 14.3.1
mpv 0.37.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
built on Nov 30 2023 14:35:43
libplacebo version: v6.338.1
FFmpeg version: 5.1.4
FFmpeg library versions:
libavutil 57.28.100
libavcodec 59.37.100
libavformat 59.27.100
libswscale 6.7.100
libavfilter 8.44.100
libswresample 4.7.100
Description
mpv cannot find libx264 and libmp3lame when encoding, suprisingly enough Webm-VP9 works fine so it is somehow communicating with ffmpeg. When I manually encode with libx264 in terminal with ffmpeg everything works correctly.
libx264 is listed in both codecs and encoders after running ffmpeg -encoders and ffmpeg -codecs
V....D libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)
V....D libx264rgb libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264)
V....D h264_videotoolbox VideoToolbox H.264 Encoder (codec h264)
and is enabled with --enable-libx264, same with libmp3lame
but log says [ 7.858][v][webm] "[encode] codec 'libx264' not found."
Log file
Managed to make MP4 work by adding brew's ffmpeg to PATH again, but MP3 still does not work
EDIT: nevermind, it does not work again, even tho PATH is set correctly. I am tired of this system