Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support VLC's start-time / stop-time extension to playlist #1525

Open
FelipeLema opened this issue Nov 25, 2024 · 0 comments
Open

Support VLC's start-time / stop-time extension to playlist #1525

FelipeLema opened this issue Nov 25, 2024 · 0 comments
Labels
Enhancement New feature or request

Comments

@FelipeLema
Copy link

Description
Support start-time and stop-time extension in playlist. This allows users to build more complex playlists. For my case, to inject loops into videogame music using https://github.com/arkrow/PyMusicLooper

  • start-time describes a time where the item should start.
  • stop-time describes a time where the item should stop once it has been reached.
  • Both use seconds as unit and a floating point number can be used to specify fractions of a second (ie: 6.5s = 6seconds + 500milliseconds).

Not leaning towards m3u or xspf. Could be either.

m3u sample:

#EXTM3U
#EXTINF:617,School.mkv
#EXTVLCOPT:start-time=1
#EXTVLCOPT:stop-time=167
School.mkv
#EXTVLCOPT:start-time=291
#EXTVLCOPT:stop-time=617
School.mkv

xpsf sample:

 <?xml version="1.0" encoding="UTF-8"?>
 <playlist version="1" xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/">
    <title>Playlist</title>
    <location>D:/media/example.xspf</location>
    <trackList>
        <track>
            <title>DVD seconds 42 to 45 muted</title>
            <location>dvd://d:\@1</location>
            <extension application="http://www.videolan.org/vlc/playlist/0">
                <vlc:id>3</vlc:id>
                <vlc:option>start-time=42</vlc:option>
                <vlc:option>stop-time=45</vlc:option>
                <vlc:option>no-audio</vlc:option>
                <vlc:option>some-option=100</vlc:option>
            </extension>
        </track>
        <track>
            <title>DVD seconds 49-55 unmuted (normal)</title>
            <location>dvd://d:\@1</location>
            <extension application="http://www.videolan.org/vlc/playlist/0">
                <vlc:id>4</vlc:id>
                <vlc:option>start-time=49</vlc:option>
                <vlc:option>stop-time=55</vlc:option>
            </extension>
        </track>
    </trackList>
 </playlist>

xref:

Which feature or functionality are you missing in Audacious?
What makes it beneficial for users?

Additional information

Willing to do a PR if maintainers willing to accept.

@FelipeLema FelipeLema added the Enhancement New feature or request label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant