[vlc-devel] [PATCH 1/4] share: add wrapper script for the YoutubeDL Python module

Rémi Denis-Courmont remi at remlab.net
Thu Sep 24 10:05:35 CEST 2020


Le torstaina 24. syyskuuta 2020, 10.20.37 EEST Steve Lhomme a écrit :
> On 2020-09-23 17:43, Rémi Denis-Courmont wrote:
> > This script generates a M3U playlist from a given URL, providing a
> > simple serial format that can be read and parsed by another process.
> 
> Shouldn't it give access to the actual DASH/HLS/whatever manifest so
> that our adaptive streaming stack can be used in the most optimum way ?

We generate a M3U because we need a format to serialize data over the pipe. We 
could just as well generate a XSPF, or YoutubeDL own JSON schema, or a 
completely custom format. M3U (or XSPF) have the benefit that we don't need to 
add yet another parser in VLC. This has nothing to do with converting adaptive 
manifests into M3U playlists.

That should not happen ever. but it has been a problem since the adaptive 
plugin was converted from stream filter to demuxer. Though they were otherwise 
good reasons for that conversion, it put the M3U parser ahead of the adaptive 
plugin. To fix that properly, the forgotten second half of #18504 needs to be 
addressed. I thought I had opened a second ticket for that back then, but it 
turns out that I can't find it.

> Will this turn every adaptive streaming source (or most) into a
> simplified playlist ? Including live adaptive streams ?

If it happens, that's an unintended bug.

-- 
Rémi Denis-Courmont
http://www.remlab.net/





More information about the vlc-devel mailing list