Web lists-archives.com

Re: [MPlayer-dev-eng] Compilation of MPlayer broken in libavformat/vapoursynth.c




Hi Erik,

On 2018-05-05 01:07 +0200, Erik Auerswald wrote:
> 
> currently MPlayer does not compile on my system, compilation breaks with

Committed as SVN r38107 .

Thank you!


  Alexander

> 
> ------------8<--------------
> CC      libavformat/vapoursynth.o
> libavformat/vapoursynth.c:28:25: fatal error: VapourSynth.h: No such file or directory
>  #include <VapourSynth.h>
>                          ^
> compilation terminated.
> make[1]: *** [libavformat/vapoursynth.o] Error 1
> ------------8<--------------
> 
> Root cause is that this ffmpeg feature is not tested for in MPlayer's
> configure. Filtering out the VapourSynth demuxer in MPlayer's configure
> suffices to build MPlayer [for me].
> 
> $ svn diff configure
> ------------8<--------------
> Index: configure
> ===================================================================
> --- configure   (revision 38105)
> +++ configure   (working copy)
> @@ -1614,7 +1614,7 @@
>  libavdecoders=$(filter_out_component decoder 'LIB[A-Z0-9_]* H264_QSV MJPEG_QSV MPEG2_MMAL MPEG4_MMAL MPEG2_QSV HEVC_QSV VC1_MMAL VC1_QSV H264_MMAL H264_MEDIACODEC HEVC_MEDIACODEC MPEG2_MEDIACODEC H264_CUVID HEVC_CUVID VC1_CUVID VP8_CUVID VP9_CUVID H263_CUVID MJPEG_CUVID MPEG1_CUVID MPEG2_CUVID MPEG4_CUVID VP8_MEDIACODEC VP9_MEDIACODEC MPEG4_MEDIACODEC VP8_QSV [A-Z0-9_]*_AT [A-Z0-9]*_RKMPP [A-Z0-9]*_V4L2M2M')
>  libavencoders=$(filter_out_component encoder 'LIB[A-Z0-9_]* H264_QSV MJPEG_QSV MPEG2_QSV HEVC_QSV VC1_MMAL VC1_QSV NVENC[A-Z0-9_]* H264_NVENC[A-Z0-9_]* HEVC_NVENC[A-Z0-9_]* HAP [A-Z0-9]*_VIDEOTOOLBOX H264_VAAPI HEVC_VAAPI MJPEG_VAAPI MPEG2_VAAPI VP8_VAAPI VP9_VAAPI H264_OMX MPEG4_OMX [A-Z0-9_]*_AT [A-Z0-9]*_V4L2M2M [A-Z0-9]*_AMF')
>  libavbsfs=$(filter_out_component bsf 'TRACE_HEADERS [A-Z0-9_]*_METADATA H264_REDUNDANT_PPS FILTER_UNITS')
> -libavdemuxers=$(filter_out_component demuxer 'AVISYNTH DASH LIB[A-Z0-9_]* REDIR')
> +libavdemuxers=$(filter_out_component demuxer 'AVISYNTH DASH LIB[A-Z0-9_]* REDIR VAPOURSYNTH')
>  libavmuxers=$(filter_out_component muxer 'CHROMAPRINT LIB[A-Z0-9_]* RTP RTSP SAP')
>  libavprotocols=$(filter_out_component protocol 'BLURAY FFRTMPCRYPT HTTPS LIB[A-Z0-9_]* TLS TLS_GNUTLS TLS_OPENSSL TLS_SECURETRANSPORT TLS_SCHANNEL')
>  libavfilters=$(filter_out_component filter 'VF_FREI0R[A-Z0-9_]* LIB[A-Z0-9_]* MP VF_OCV')
> ------------8<--------------
> 
> Please note that ffmepg's configure sets two #defines after detecting that
> VapourSynth is not available:
> 
> #define CONFIG_VAPOURSYNTH 0
> #define CONFIG_VAPOURSYNTH_DEMUXER 0
> 
> But MPlayer's configure with the above patch sets just the second define:
> 
> #define CONFIG_VAPOURSYNTH_DEMUXER 0
> 
> Thanks,
> Erik
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng