tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: osx mpv and swift



On Mon, Dec 31, 2018 at 10:33:04PM +0100, Leonardo Taccari wrote:
> Can you please try to add in multimedia/mpv/Makefile:
>  WAF_CONFIGURE_ARGS+=    --disable-swift
> 
> ...and if it still fails can you please share ${WRKSRC}/build/config.log?

hi-

    If I add "WAF_CONFIGURE_ARGS+=--disable-swift" then mpv compiles
and links OK, but the video does not display -- I just get a white
box with no video in it (audio is OK).   So that's not so great :(


    "mpv" has multiple video output options you can select with
the "--vo" flag and "--vo help" lists them:

	Available video outputs:
	  libmpv           render API for libmpv
	  gpu              Shader-based GPU Renderer
	  xv               X11/Xv
	  x11              X11 (slow, old crap)
	  null             Null video output
	  image            Write video frames to image files
	  tct              true-color terminals

With the "--disable-swift" build it appears to pick "--vo gpu"
by default and display the empty white box for video, plus it 
produces an error that suggests trying "--vo libmpv":

	% which mpv
	/pkg/bin/mpv
	% mpv ~/MVI_2956.MOV 
	Playing: /Users/chuck/MVI_2956.MOV
 	 (+) Video --vid=1 (*) (h264 1280x720 23.976fps)
 	 (+) Audio --aid=1 --alang=eng (*) (pcm_s16le 2ch 48000Hz)
	[vo/gpu] opengl cocoa backend is deprecated, use vo=libmpv instead
	AO: [coreaudio] 48000Hz stereo 2ch s16
	VO: [gpu] 1280x720 yuv420p
	AV: 00:00:01 / 00:09:26 (0%) A-V:  0.000


	Exiting... (Quit)
	% 


if I do what it suggests ("--vo libmpv") then it fails with:


	% mpv --vo libmpv ~/MVI_2956.MOV
	Playing: /Users/chuck/MVI_2956.MOV
	 (+) Video --vid=1 (*) (h264 1280x720 23.976fps)
	 (+) Audio --aid=1 --alang=eng (*) (pcm_s16le 2ch 48000Hz)
	[vo/libmpv] No render context set.
	Error opening/initializing the selected video_out (--vo) device.
	Video: no video

	Exiting... (Errors when loading file)
	% 



on the other hand, if I remove "--disable-swift" and let it get
the link errors and then go into the "work" dir and run "waf build"
manually the resulting binary does work (and it seems to pick
"--vo libmpv" by default instead of "--vo gpu"):

	% ./build/mpv ~/MVI_2956.MOV 
	Playing: /Users/chuck/MVI_2956.MOV
	 (+) Video --vid=1 (*) (h264 1280x720 23.976fps)
	 (+) Audio --aid=1 --alang=eng (*) (pcm_s16le 2ch 48000Hz)
	AO: [coreaudio] 48000Hz stereo 2ch s16
	VO: [libmpv] 1280x720 yuv420p
	AV: 00:00:01 / 00:09:26 (0%) A-V:  0.000


	Exiting... (Quit)
	% 


if I force this build to use "--vo gpu" I get a white box without any video
in it.

	% ./build/mpv --vo gpu ~/MVI_2956.MOV
	Playing: /Users/chuck/MVI_2956.MOV
	 (+) Video --vid=1 (*) (h264 1280x720 23.976fps)
	 (+) Audio --aid=1 --alang=eng (*) (pcm_s16le 2ch 48000Hz)
	[vo/gpu] opengl cocoa backend is deprecated, use vo=libmpv instead
	AO: [coreaudio] 48000Hz stereo 2ch s16
	VO: [gpu] 1280x720 yuv420p
	AV: 00:00:03 / 00:09:26 (0%) A-V:  0.000


	Exiting... (Quit)
	% 


so with the new "mpv-0.29.1nb4" :
  [1] --vo gpu -- doesn't generate any video, just puts up an empty white box

  [2] --vo libmpv  --> works properly in swift build
                   --> fails in "--disable-swift" build with
			"[vo/libmpv] No render context set."



They've clearly been changing the "--vo" options, as I have an
older OSX system with "mpv-0.27.2nb2" that uses a "--vo opengl"
("opengl         : Extended OpenGL Renderer") for its video by
default and that works fine.


so maybe "mpv-0.29.1nb4" needs this swift stuff to link to
in order make "--vo libmpv" work?   and "--vo gpu" doesn't
work, so we need "--vo libmpv" to work.   but something in
pkgsrc is preventing the link to swift from working?


I'm attaching config logs for "WAF_CONFIGURE_ARGS+=--disable-swift"
(config.log.noswift.gz) and from before I added it when the link
fails (config.log.swift.gz).


chuck

Attachment: config.log.noswift.gz
Description: application/gunzip

Attachment: config.log.swift.gz
Description: application/gunzip



Home | Main Index | Thread Index | Old Index