Re: Playing DASH streams / .mpd files

The Wanderer <[email protected]> Fri, 19 Mar 2021 11:00:22 -0400
Newsgroups gmane.comp.video.mplayer.user
Organization This space intentionally left blank.
Message-ID <[email protected]>
On 2021-03-19 at 10:51, Reimar Döffinger wrote:

> On 19 March 2021 13:38:06 CET, The Wanderer <[email protected]>
> wrote:
> 
>> Should I respin and resubmit the patch, once the above question is 
>> addressed, or are people OK with making these changes independently
>> of me?
> 
> If you don't mind it saves me a few minutes, but I'll try to commit
> it tomorrow either way.

It doesn't take me more than a few moments, except for the build test to
make sure I didn't typo or otherwise break anything. Here you go.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

_______________________________________________
MPlayer-users mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
configure-test-for-libxml2_with-enable-disable-flags.diff (text/x-diff, 3.2 KB)
Index: configure
===================================================================
--- configure	(revision 38303)
+++ configure	(working copy)
@@ -423,6 +423,7 @@
   --disable-ffmpeg_a        disable static FFmpeg [autodetect]
   --disable-ffmpeg_so       disable shared FFmpeg [autodetect]
   --disable-postproc        disable libpostproc [autodetect]
+  --disable-libxml2         disable XML handling, for DASH streams [autodetect]
   --enable-vf-lavfi         enable libavfilter wrapper [disabled]
   --disable-libavcodec_mpegaudio_hp disable high precision audio decoding
                                     in libavcodec [enabled]
@@ -683,6 +684,7 @@
 ffmpeg_a=auto
 ffmpeg_so=auto
 postproc=auto
+_libxml2=auto
 _vf_lavfi=no
 _libavcodec_mpegaudio_hp=yes
 _libopencore_amrnb=auto
@@ -1292,6 +1294,8 @@
   --disable-ffmpeg_so)  ffmpeg_so=no    ;;
   --enable-postproc)    postproc=yes    ;;
   --disable-postproc)   postproc=no     ;;
+  --enable-libxml2)     _libxml2=yes    ;;
+  --disable-libxml2)    _libxml2=no     ;;
   --enable-vf-lavfi)    _vf_lavfi=yes   ;;
   --disable-vf-lavfi)   _vf_lavfi=no    ;;
   --enable-libavcodec_mpegaudio_hp)     _libavcodec_mpegaudio_hp=yes    ;;
@@ -1658,7 +1662,7 @@
 libavdecoders=$(filter_out_component decoder 'LIB[A-Z0-9_]* [A-Z0-9]*_QSV [A-Z0-9]*_MMAL [A-Z0-9]*_MEDIACODEC [A-Z0-9]*_CUVID [A-Z0-9_]*_AT [A-Z0-9]*_RKMPP [A-Z0-9]*_V4L2M2M')
 libavencoders=$(filter_out_component encoder 'LIB[A-Z0-9_]* [A-Z0-9]*_QSV [A-Z0-9]*_MMAL NVENC[A-Z0-9_]* H264_NVENC[A-Z0-9_]* HEVC_NVENC[A-Z0-9_]* HAP [A-Z0-9]*_VIDEOTOOLBOX [A-Z0-9]*_VAAPI [A-Z0-9]*_OMX [A-Z0-9_]*_AT [A-Z0-9]*_V4L2M2M [A-Z0-9]*_AMF [A-Z0-9]*_MF')
 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 VAPOURSYNTH')
+libavdemuxers=$(filter_out_component demuxer 'AVISYNTH 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')
@@ -7510,6 +7514,34 @@
 echores "$postproc"
 
 
+echocheck "libxml2"
+if test "$_libxml2" = auto ; then
+    _libxml2=no
+    if test "$ffmpeg_a" = yes && $_pkg_config --exists libxml-2.0 ; then
+            cat > $TMPC << EOF
+#include <libxml/xmlstring.h>
+int main(void) {
+  xmlChar *str = "";
+  return xmlStrlen(str);
+}
+EOF
+        inc_tmp=$($_pkg_config --cflags libxml-2.0)
+        ld_tmp=$($_pkg_config --libs libxml-2.0)
+        cc_check $inc_tmp $ld_tmp && _libxml2=yes
+        if test "$_libxml2" = yes; then
+            extra_cflags="$extra_cflags $inc_tmp"
+            extra_ldflags="$extra_ldflags $ld_tmp"
+        fi
+    else
+        test "$ffmpeg_a" = no && res_comment="dynamic linking to libxml2 is irrelevant when using dynamic FFmpeg"
+    fi
+fi
+if test "$_libxml2" = "no" ; then
+    libavdemuxers=$(filter_out_component demuxer 'DASH')
+fi
+echores "$_libxml2"
+
+
 echocheck "libopencore_amr narrowband"
 if test "$_libopencore_amrnb" = auto ; then
   _libopencore_amrnb=no
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEJCOqsZEc2qVC44pUBKk1jTQoMmsFAmBUvIYACgkQBKk1jTQo
MmvmNg/+Phv49m3u0GtkH3UXZKWCzldNEOPQf/TgXzJegC6jNgSSEEcv1v5eFpKO
YOpaVXh+6Exc3Ck6nf7TBAsQGk8md7Lwabxn92VnDAZI7BrM87ZWpJueQAJlipz+
T75PhMtGwNaOF4ZIirhHEsEkOQ4HWhoiTndMfgL6CkFqaHAX6+QzN3prHQcSBnSl
NtvAMOOVfKwfQHd2YHMKCB+ZP2avgEhU+dDVAHhp7aDjxBf/4rljyLlAVrEmqzsm
jg7ut8YlNgXyJpt+/UD7c6b4G8oMXkbqji/L1InPtZLblOmGb9iXsJXCz48DdycV
StKUiJYJ46nGGrbybGO0UTzQGUb0rTjJ31l9DqmghdaiqiPVh5FpXGkZjZFfJcxB
coR09D44oi3Ne91OlnsnjjC+pzqYAJ1wvBEDriUi1wo4uGpl2Sg38uZvZXjHOEyu
cXFmjJakhmZ4OoxB5eiuD18VnRxgh5RAZE6oc9EypHzyReoCRVvRe8APBob/yB5e
g/0LAyOAPZOE95rzlIFx/xGdCwJBMw/ez2Qcp6XEPbjA1GJBRbFOwNy7fY+KiLd7
XIRlhX+Pw3JxLvgMur0nKxFFKceue1fKeb6SGrHBth7oaiT9Syi0+Lq3vB6vIvrW
Rs9iw98T22Wx0zJuIQBBkRN8pg3+UhIMRfZPatb632BMQCs3tGM=
=2rHv
-----END PGP SIGNATURE-----