Re: Playing DASH streams / .mpd files

Reimar Döffinger <[email protected]> Wed, 17 Mar 2021 19:56:10 +0100
Newsgroups gmane.comp.video.mplayer.user
Message-ID <[email protected]>
On Wed, Mar 17, 2021 at 12:13:08PM -0400, The Wanderer wrote:
> Index: configure
> ===================================================================
> --- configure	(revision 38303)
> +++ configure	(working copy)
> @@ -736,6 +736,7 @@
>  _kai=auto
>  _dart=auto
>  _openal=auto
> +_libxml2=auto

Possibly should add a enable/disable option as well?
Might make it easier to test this code without having
to install and uninstall the -dev package.
Also it's pointless if internal FFmpeg is disabled,
maybe have it forced to no in that case?

> +echocheck "libxml2"
> +if test "$_libxml2" = auto; then
> +        cat > $TMPC << EOF
> +#include <libxml/xmlstring.h>
> +int main() {
> +  xmlChar *str = "";
> +  return xmlStrlen(str);
> +}
> +EOF
> +    _libxml2=no
> +    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

If adding a enable/disable option, this part
probably should go outside of the "auto" if.

> +        extra_ldflags="$extra_ldflags $ld_tmp"
> +        extra_cflags="$extra_cflags $inc_tmp"
> +    fi

Most importantly you would want to remove DASH from here (approx. line 1661):
libavdemuxers=$(filter_out_component demuxer 'AVISYNTH DASH LIB[A-Z0-9_]* REDIR VAPOURSYNTH')
and in the "else" case when libxml2 is disabled do a
libavdemuxers=$(filter_out_component demuxer 'DASH')
Otherwise the patch looks like the right approach, yes.
_______________________________________________
MPlayer-users mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.