-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encode fails when MP4 or MP3 codes are selected on MacOS #188
Comments
EDIT: nevermind, it does not work again, even tho PATH is set correctly. I am tired of this system |
Running into this same error. Did you solve this, @anoniniarz? Any ideas, @ekisu? |
I did not solve it, currently I am just converting to webm and then use ffmpeg to conver to mp4 when I need it. :( |
Looking into this more. I'm able to replicate it just by running the same command manually in my Terminal. The error is:
Which means it seems to be a specific problem with the
I'm also at a loss as to why libx264 is not here. Googling "mpv" and "libx264" together only return this Reddit post which I presume is by you or someone else with the exact same issue. I will note that since "h264_videotoolbox" is installed, you can change line 1059 of the .lua ( |
Yeah, that was my post. I am lost too why mpv cannot access libx264 codec, I thought that there is a problem with PATH (since I was sometimes able to convert to mp4 when running mpv from terminal), but i am unable to reproduce it reliably and I think my PATH is set correct
this sounds great. I will check it out. Good job! |
I'd say it really boils down to whether the mpv build you've obtained was compiled with an FFmpeg with support for x264. As mpv does not directly uses the As the |
mpv version and platform
macOS Sonoma 14.3.1
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
https://pastebin.com/YZsiZPAV
The text was updated successfully, but these errors were encountered: