For a given playlist, I want to reproduce only first 10 seconds of each audio file in the playlist. I searched but I found nothing similar. Does exist a plugin? Is it possible in some way? Thank you!
For a given playlist, I want to reproduce only first 10 seconds of each audio file in the playlist. I searched but I found nothing similar. Does exist a plugin? Is it possible in some way? Thank you!
This is straight forward. You have tagged this as VLC, so I'll use that as an example.
First you need a playlist, of course. Here is VLC's wiki to explain how to make a playlist. Make sure you save it to a file.
Then, from commandline, start VLC like this
This will make vlc immediately play your list, each title for 10 seconds, then stop with VLC left open.
If you start your VLC not from the GUI of the host where the music is played, i.e. via SSH, you need to export the
DISPLAY
variable, like thisIf you want to VLC immediately close after finished playing, just add
vlc://quit
to the end, like thisI don't know exactly what your use-case is, but If you want this to be completely stealthy, with no VLC shown on the Desktop you could use the commandline frontend. Just substitute vlc with cvlc at the beginning, like this
There are of course some more options for playlist behaviour, like
-L
for looping or-Z
for shuffle/random, and so on - you best look them up on the official VLC commandline documentation.The command line application MPlayer is your friend for this simple task:
Some explanation:
There are many more switches that MPlayer can use to deal with playlists but the example given above should be enough to fulfill your requirements...