Note: I don't know about jvlc bindings, this is a more general idea based on VLC usages.
You can try to stream a playlist to a file with start-time and run-time or stop-time for each item.
Idea is as follow:
- add foo.ts with options :start-time=5 :stop-time=9
- add foo.ts with options :start-time=17 :stop-time=50
- add foo.ts with options :start-time=54 :stop-time=90
And sout all the playlist to a file (maybe giving this sout parameter to libvlc_new if you can do it with jvlc)
--sout=file/ts://output.ts
The same using a command line would be like this (for Linux):
Code: Select all
# Here, vlc will also quit when the work is done
vlc --sout file/ts://output.ts foo.ts :start-time=5 :stop-time=9 foo.ts :start-time=17 :stop-time=50 ... vlc://quit
But I'm afraid that "--start-time" option is bugous (it was in summer '08 iirc) and does nothing. Hope it is no more the case.
If it is the case, inform about and I will create a ticket on the bug tracker.