Mpv crash if CFLAGS is used on i386: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198758#c29
Check if mpv works after deleting from Makefile .if ${ARCH} == "i386" CFLAGS:= ${CFLAGS:N-O*} -O0 .endif
(In reply to Carlos J Puga Medina from comment #1) Creating non-video VO window. connect(2) call to /tmp/jack-1001/default/jack_0 failed (err=No such file or directory) attempt to connect to server failed [ao/jack] cannot open server [ao] Failed to initialize audio driver 'jack' AO: [oss] 44100Hz stereo 2ch s16 Segmentation fault With few CFLAGS same and jack doesn't work for some strange reason "/tmp/jack-1001/default/jack_0 " I don't know why jack try use it directory.
Created attachment 160266 [details] Patch This patch adds ALSA option helper to mpv. Build mpv with ALSA and JACK options active.
(In reply to Carlos J Puga Medina from comment #3) $ mpv -ao alsa something.mp3 AO: [alsa] 44100Hz stereo 2ch s16 Segmentation fault (core dumped) $ mpv -ao pulse something.mp3 W: [(null)] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support. AO: [pulse] 44100Hz stereo 2ch s16 Segmentation fault (core dumped) $ mpv -ao jack something.mp3 Creating non-video VO window. connect(2) call to /tmp/jack-1001/default/jack_0 failed (err=No such file or directory) attempt to connect to server failed [ao/jack] cannot open server [ao] Failed to initialize audio driver 'jack' Could not open/initialize audio device -> no sound. Audio: no audio
(In reply to sasamotikomi from comment #4) Can you show me the following output? Please, be sure that you have ALSA, JACK and PULSE options enabled. % make -C /usr/ports/multimedia/mpv configure
sasamotikomi, did you reproduced this issue with the new Mpv releases? can we close this PR?
@Carlos, I've assigned the issue to you. Please triage the issue as best you can (keywords, other fields), and then close it with the most appropriate resolution if you decide that is what's needed.
Thanks, @Kubilay.
(In reply to Carlos J Puga Medina from comment #6) mpv 0.16.0 problem fixed: Build and work fine without fix: ${CFLAGS:N-O*} -O0 And with CFLAGS too: CFLAGS+= -o3 -msse -mmmx -m3dnow So better remove patch and add CFLAGS auto-detect from SDL20: https://svnweb.freebsd.org/ports/head/devel/sdl20/Makefile?view=markup
(In reply to sasamotikomi from comment #9) OK, let me do some testing. Thanks for reporting!
Created attachment 168472 [details] patch mpv add sdl2 support and remove temporal fix on x86
Created attachment 168541 [details] patch mpv add sdl2 support and remove temporal fix on x86 Minor fix in port options.