[vlc-devel] [PATCH 1/2] share: add wrapper script for the YoutubeDL Python module
Pierre Ynard
linkfanel at yahoo.fr
Mon Sep 21 02:20:38 CEST 2020
> 2) Parsing the output of the youtube-dl program. This is what MPV does.
> But this requires a whole new parser for the Python syntax.
I'm confused. What Python syntax? Do you mean JSON?
Now I can see that the youtube-dl binary can output stream URLs, or
stream information extracted as JSON. Is there anything else it can
output?
We don't have JSON support in the core like we do for XML, but we've
mentioned that need elsewhere already.
> With a custom Python script, we can decide on the serialisation format
> that most suits the usage.
This introduces two levels of indirection: this intermediary Python
script, and then writing the M3U playlist that will then have to be
re-parsed by the playlist demux.
What about doing this directly in the access module? And what about
using the same redirection trick that the HTTP access uses for ICY
streams? Wouldn't that also solve the long-standing URL expiration
issue? Moreover, having direct access to core APIs, would it be possible
to extract a playlist *and* set which item to start playing within it,
instead of starting with the first item? I'm not sure this would be
possible going through an M3U playlist.
Or what about even directly plugging youtube-dl's output of the
downloading stream as the access's output? (Although I guess there might
be issues with that.)
--
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."
More information about the vlc-devel
mailing list