Loop a single track/element in a XSPF playlist using VLC











up vote
3
down vote

favorite
1












I've googled a lot, but I haven't found a solution yet.



Is it possible to loop a single track in the XSPF playlist?



In terms of a pause, we can do it in a xspf playlist as follows:



<track>
<location>vlc://pause:10</location>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:id>1</vlc:id>
</extension>
</track>


Is there anything similar to loop a track?



With CLI VLC it is possible to loop a given number of times:



cvlc Example.mp4 :input-repeat=3


So I think it can be done using a XSPF playlist.



Please someone enlighten me with wisdom and knowledge to accomplish this task.










share|improve this question




























    up vote
    3
    down vote

    favorite
    1












    I've googled a lot, but I haven't found a solution yet.



    Is it possible to loop a single track in the XSPF playlist?



    In terms of a pause, we can do it in a xspf playlist as follows:



    <track>
    <location>vlc://pause:10</location>
    <extension application="http://www.videolan.org/vlc/playlist/0">
    <vlc:id>1</vlc:id>
    </extension>
    </track>


    Is there anything similar to loop a track?



    With CLI VLC it is possible to loop a given number of times:



    cvlc Example.mp4 :input-repeat=3


    So I think it can be done using a XSPF playlist.



    Please someone enlighten me with wisdom and knowledge to accomplish this task.










    share|improve this question


























      up vote
      3
      down vote

      favorite
      1









      up vote
      3
      down vote

      favorite
      1






      1





      I've googled a lot, but I haven't found a solution yet.



      Is it possible to loop a single track in the XSPF playlist?



      In terms of a pause, we can do it in a xspf playlist as follows:



      <track>
      <location>vlc://pause:10</location>
      <extension application="http://www.videolan.org/vlc/playlist/0">
      <vlc:id>1</vlc:id>
      </extension>
      </track>


      Is there anything similar to loop a track?



      With CLI VLC it is possible to loop a given number of times:



      cvlc Example.mp4 :input-repeat=3


      So I think it can be done using a XSPF playlist.



      Please someone enlighten me with wisdom and knowledge to accomplish this task.










      share|improve this question















      I've googled a lot, but I haven't found a solution yet.



      Is it possible to loop a single track in the XSPF playlist?



      In terms of a pause, we can do it in a xspf playlist as follows:



      <track>
      <location>vlc://pause:10</location>
      <extension application="http://www.videolan.org/vlc/playlist/0">
      <vlc:id>1</vlc:id>
      </extension>
      </track>


      Is there anything similar to loop a track?



      With CLI VLC it is possible to loop a given number of times:



      cvlc Example.mp4 :input-repeat=3


      So I think it can be done using a XSPF playlist.



      Please someone enlighten me with wisdom and knowledge to accomplish this task.







      vlc-media-player






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 2 '14 at 15:02









      Der Hochstapler

      67.1k48230283




      67.1k48230283










      asked Mar 1 '12 at 20:16









      Metafaniel

      162111




      162111






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          And the trick is



          for infinit loop:



          <vlc:option>input-repeat=-1</vlc:option>


          To repeat 3x



          <vlc:option>input-repeat=3</vlc:option>


          just like the command line...






          share|improve this answer

















          • 3




            Many months later, the answer has finally arrived =D THANKS!!!! Just one clarification: input-repeat=3 will repeat the track FOUR times, not three. So to repeat a track three times we use 2. Thanks for your help =D =)
            – Metafaniel
            Jul 24 '13 at 19:01












          • So, for the 2018 year you cannot add the negative value of "input-repeat" to the XSPF playlist. Your string must look like <vlc:option>input-repeat=65545</vlc:option> References to the issue - github.com/ZeBobo5/Vlc.DotNet/issues/96
            – Mark Fieldman
            Nov 30 at 21:27


















          up vote
          0
          down vote













          Wiki lists this as a way to set an option (within the extension data element): <vlc:option>stop-time=55</vlc:option>.



          Some VLC playlist options:



          --random plays files randomly forever.
          --loop loops playlist on end.
          --repeat repeats current item until another item is forced
          --play-and-stop stops the playlist after each played item.


          So maybe try adding: <vlc:option>repeat</vlc:option>






          share|improve this answer





















          • Mmm... Sadly no, it won't repeat that way =/ But your answer seems useful, thanks! I'll read more, maybe I'll get something! Let's wait another answer in hopes someone else knows the exact way to do this =) Thanks ;)
            – Metafaniel
            Mar 1 '12 at 21:44












          • I've read but the specification says those options you mention are for playlists indeed but they're not applied as vlc:options like stop-time=55 Those are for tracks. But the playlist ones are only used in a command line code =
            – Metafaniel
            Mar 2 '12 at 15:09











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f395918%2floop-a-single-track-element-in-a-xspf-playlist-using-vlc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote



          accepted










          And the trick is



          for infinit loop:



          <vlc:option>input-repeat=-1</vlc:option>


          To repeat 3x



          <vlc:option>input-repeat=3</vlc:option>


          just like the command line...






          share|improve this answer

















          • 3




            Many months later, the answer has finally arrived =D THANKS!!!! Just one clarification: input-repeat=3 will repeat the track FOUR times, not three. So to repeat a track three times we use 2. Thanks for your help =D =)
            – Metafaniel
            Jul 24 '13 at 19:01












          • So, for the 2018 year you cannot add the negative value of "input-repeat" to the XSPF playlist. Your string must look like <vlc:option>input-repeat=65545</vlc:option> References to the issue - github.com/ZeBobo5/Vlc.DotNet/issues/96
            – Mark Fieldman
            Nov 30 at 21:27















          up vote
          3
          down vote



          accepted










          And the trick is



          for infinit loop:



          <vlc:option>input-repeat=-1</vlc:option>


          To repeat 3x



          <vlc:option>input-repeat=3</vlc:option>


          just like the command line...






          share|improve this answer

















          • 3




            Many months later, the answer has finally arrived =D THANKS!!!! Just one clarification: input-repeat=3 will repeat the track FOUR times, not three. So to repeat a track three times we use 2. Thanks for your help =D =)
            – Metafaniel
            Jul 24 '13 at 19:01












          • So, for the 2018 year you cannot add the negative value of "input-repeat" to the XSPF playlist. Your string must look like <vlc:option>input-repeat=65545</vlc:option> References to the issue - github.com/ZeBobo5/Vlc.DotNet/issues/96
            – Mark Fieldman
            Nov 30 at 21:27













          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          And the trick is



          for infinit loop:



          <vlc:option>input-repeat=-1</vlc:option>


          To repeat 3x



          <vlc:option>input-repeat=3</vlc:option>


          just like the command line...






          share|improve this answer












          And the trick is



          for infinit loop:



          <vlc:option>input-repeat=-1</vlc:option>


          To repeat 3x



          <vlc:option>input-repeat=3</vlc:option>


          just like the command line...







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 24 '13 at 18:24









          algol

          462




          462








          • 3




            Many months later, the answer has finally arrived =D THANKS!!!! Just one clarification: input-repeat=3 will repeat the track FOUR times, not three. So to repeat a track three times we use 2. Thanks for your help =D =)
            – Metafaniel
            Jul 24 '13 at 19:01












          • So, for the 2018 year you cannot add the negative value of "input-repeat" to the XSPF playlist. Your string must look like <vlc:option>input-repeat=65545</vlc:option> References to the issue - github.com/ZeBobo5/Vlc.DotNet/issues/96
            – Mark Fieldman
            Nov 30 at 21:27














          • 3




            Many months later, the answer has finally arrived =D THANKS!!!! Just one clarification: input-repeat=3 will repeat the track FOUR times, not three. So to repeat a track three times we use 2. Thanks for your help =D =)
            – Metafaniel
            Jul 24 '13 at 19:01












          • So, for the 2018 year you cannot add the negative value of "input-repeat" to the XSPF playlist. Your string must look like <vlc:option>input-repeat=65545</vlc:option> References to the issue - github.com/ZeBobo5/Vlc.DotNet/issues/96
            – Mark Fieldman
            Nov 30 at 21:27








          3




          3




          Many months later, the answer has finally arrived =D THANKS!!!! Just one clarification: input-repeat=3 will repeat the track FOUR times, not three. So to repeat a track three times we use 2. Thanks for your help =D =)
          – Metafaniel
          Jul 24 '13 at 19:01






          Many months later, the answer has finally arrived =D THANKS!!!! Just one clarification: input-repeat=3 will repeat the track FOUR times, not three. So to repeat a track three times we use 2. Thanks for your help =D =)
          – Metafaniel
          Jul 24 '13 at 19:01














          So, for the 2018 year you cannot add the negative value of "input-repeat" to the XSPF playlist. Your string must look like <vlc:option>input-repeat=65545</vlc:option> References to the issue - github.com/ZeBobo5/Vlc.DotNet/issues/96
          – Mark Fieldman
          Nov 30 at 21:27




          So, for the 2018 year you cannot add the negative value of "input-repeat" to the XSPF playlist. Your string must look like <vlc:option>input-repeat=65545</vlc:option> References to the issue - github.com/ZeBobo5/Vlc.DotNet/issues/96
          – Mark Fieldman
          Nov 30 at 21:27












          up vote
          0
          down vote













          Wiki lists this as a way to set an option (within the extension data element): <vlc:option>stop-time=55</vlc:option>.



          Some VLC playlist options:



          --random plays files randomly forever.
          --loop loops playlist on end.
          --repeat repeats current item until another item is forced
          --play-and-stop stops the playlist after each played item.


          So maybe try adding: <vlc:option>repeat</vlc:option>






          share|improve this answer





















          • Mmm... Sadly no, it won't repeat that way =/ But your answer seems useful, thanks! I'll read more, maybe I'll get something! Let's wait another answer in hopes someone else knows the exact way to do this =) Thanks ;)
            – Metafaniel
            Mar 1 '12 at 21:44












          • I've read but the specification says those options you mention are for playlists indeed but they're not applied as vlc:options like stop-time=55 Those are for tracks. But the playlist ones are only used in a command line code =
            – Metafaniel
            Mar 2 '12 at 15:09















          up vote
          0
          down vote













          Wiki lists this as a way to set an option (within the extension data element): <vlc:option>stop-time=55</vlc:option>.



          Some VLC playlist options:



          --random plays files randomly forever.
          --loop loops playlist on end.
          --repeat repeats current item until another item is forced
          --play-and-stop stops the playlist after each played item.


          So maybe try adding: <vlc:option>repeat</vlc:option>






          share|improve this answer





















          • Mmm... Sadly no, it won't repeat that way =/ But your answer seems useful, thanks! I'll read more, maybe I'll get something! Let's wait another answer in hopes someone else knows the exact way to do this =) Thanks ;)
            – Metafaniel
            Mar 1 '12 at 21:44












          • I've read but the specification says those options you mention are for playlists indeed but they're not applied as vlc:options like stop-time=55 Those are for tracks. But the playlist ones are only used in a command line code =
            – Metafaniel
            Mar 2 '12 at 15:09













          up vote
          0
          down vote










          up vote
          0
          down vote









          Wiki lists this as a way to set an option (within the extension data element): <vlc:option>stop-time=55</vlc:option>.



          Some VLC playlist options:



          --random plays files randomly forever.
          --loop loops playlist on end.
          --repeat repeats current item until another item is forced
          --play-and-stop stops the playlist after each played item.


          So maybe try adding: <vlc:option>repeat</vlc:option>






          share|improve this answer












          Wiki lists this as a way to set an option (within the extension data element): <vlc:option>stop-time=55</vlc:option>.



          Some VLC playlist options:



          --random plays files randomly forever.
          --loop loops playlist on end.
          --repeat repeats current item until another item is forced
          --play-and-stop stops the playlist after each played item.


          So maybe try adding: <vlc:option>repeat</vlc:option>







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 1 '12 at 20:38









          horatio

          3,2771115




          3,2771115












          • Mmm... Sadly no, it won't repeat that way =/ But your answer seems useful, thanks! I'll read more, maybe I'll get something! Let's wait another answer in hopes someone else knows the exact way to do this =) Thanks ;)
            – Metafaniel
            Mar 1 '12 at 21:44












          • I've read but the specification says those options you mention are for playlists indeed but they're not applied as vlc:options like stop-time=55 Those are for tracks. But the playlist ones are only used in a command line code =
            – Metafaniel
            Mar 2 '12 at 15:09


















          • Mmm... Sadly no, it won't repeat that way =/ But your answer seems useful, thanks! I'll read more, maybe I'll get something! Let's wait another answer in hopes someone else knows the exact way to do this =) Thanks ;)
            – Metafaniel
            Mar 1 '12 at 21:44












          • I've read but the specification says those options you mention are for playlists indeed but they're not applied as vlc:options like stop-time=55 Those are for tracks. But the playlist ones are only used in a command line code =
            – Metafaniel
            Mar 2 '12 at 15:09
















          Mmm... Sadly no, it won't repeat that way =/ But your answer seems useful, thanks! I'll read more, maybe I'll get something! Let's wait another answer in hopes someone else knows the exact way to do this =) Thanks ;)
          – Metafaniel
          Mar 1 '12 at 21:44






          Mmm... Sadly no, it won't repeat that way =/ But your answer seems useful, thanks! I'll read more, maybe I'll get something! Let's wait another answer in hopes someone else knows the exact way to do this =) Thanks ;)
          – Metafaniel
          Mar 1 '12 at 21:44














          I've read but the specification says those options you mention are for playlists indeed but they're not applied as vlc:options like stop-time=55 Those are for tracks. But the playlist ones are only used in a command line code =
          – Metafaniel
          Mar 2 '12 at 15:09




          I've read but the specification says those options you mention are for playlists indeed but they're not applied as vlc:options like stop-time=55 Those are for tracks. But the playlist ones are only used in a command line code =
          – Metafaniel
          Mar 2 '12 at 15:09


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f395918%2floop-a-single-track-element-in-a-xspf-playlist-using-vlc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

           ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕