Sampler (PG)
VLC Extensions
Score 59%
Description:

Sampler (PG).lua - is modified and improved sampler. Now it works as a playlist generator (PG) also in VLC-2.1+.
It is VLC Lua Extension that generates samples of playlist items of desired duration. Now you can create a music collage, automatically preview your film collection, skip intro and credits in series, shuffle tracks, ...

sampler.lua - The extension works in VLC-2.0.x. VLC archive: http://download.videolan.org/vlc/
It plays samples of playlist items of desired duration.
With this extension you can automatically preview your film collection or play interesting sound collage from your music files.

Automatic DOWNLOAD & INSTALLATION of the extension is now (VLC-2.2) available through the Addons Manager in VLC menu (Tools > Plugins and extensions).

Manual DOWNLOAD & INSTALLATION:
DOWNLOAD:
- click the download button below
- save the .zip file
INSTALLATION:
- extract (unzip) the .lua file and put it in the VLC subdir /lua/extensions, by default:
* Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\extensions\
* Windows (current user): %APPDATA%\VLC\lua\extensions\
* Linux (all users): /usr/lib/vlc/lua/extensions/
* Linux (current user): ~/.local/share/vlc/lua/extensions/
(create directories if they don't exist)
- restart the VLC.
USAGE:
Then you simply start the extension by going to the "View" menu or "Vlc > Extensions" on Mac OS X.
Last changelog:

5 years ago

Sampler (PG) 1.0 (22.5.2014)
- modified sampler now works as a playlist generator also in VLC-2.1+
- [read playlist], [clear playlist], [feed playlist] buttons
- set 0 "Samples per item" or "Sample duration" to play all between "Skip begin/end" (intro/credits).
- "Shuffle tracks" and "Autofeed on last track"

Sampler 1.1 (26.5.2013)
- applied "go to time" workaround; now the extension works also in VLC 2.0.x
- randomization of pseudo-random generator
- minor changes in the code

Sampler 1.0 (23.3.2012)
- initial release; works in VLC1, does not work properly in new VLC2
- Ticket #6527: http://trac.videolan.org/vlc/ticket/6527

phygal

2 years ago

Many thanks for this handy extension!

Report

jippjapp

2 years ago

Thanks for this plugin, it's a godsend.

I'll regularly get stability issues if I "overload" VLC (cache size? playlist parsing?) but the latest playlist generator functionality is a really elegant and stable compromise.

Thanks again!

Report

C

mederi

2 years ago

You're welcome

Report

cadewallace

3 years ago

I'm glad to see you updated this addon, it's the only one i can find that will actually do what i need.

Report

colinhk124

4 years ago

Just wanted to say thanks. This is an excellent add-on to the already great functionality of VLC. I'm quite impressed with how well it works (I had to downgrade to v1.1.9 but that was OK).

Cheers!

Report

C

mederi

4 years ago

Thanks for your positive feedback.
And here is a patch for proper randomization at least. Please locate "function activate()" in the code and insert a following new line right after it. Quote:math.randomseed(os.time())

Report

colinhk124

4 years ago

Hi Mederi,

I added your patch for the proper randomization, but just wanted to check that this is the correct place and utilization of syntax:

function activate()
math.randomseed(os.time())
input_callback("add")
create_dialog()
end

It seems to work fine but there were a couple of instances where VLC refused to start. Not sure that it is related.

Thanks again for this very useful function.

Kind regards,
CJ

Report

C

mederi

4 years ago

O.K. Inside the activate() function to seed a pseudo-random generator when starting the extension.

Report

5 years ago

Sampler (PG) 1.0 (22.5.2014)
- modified sampler now works as a playlist generator also in VLC-2.1+
- [read playlist], [clear playlist], [feed playlist] buttons
- set 0 "Samples per item" or "Sample duration" to play all between "Skip begin/end" (intro/credits).
- "Shuffle tracks" and "Autofeed on last track"

Sampler 1.1 (26.5.2013)
- applied "go to time" workaround; now the extension works also in VLC 2.0.x
- randomization of pseudo-random generator
- minor changes in the code

Sampler 1.0 (23.3.2012)
- initial release; works in VLC1, does not work properly in new VLC2
- Ticket #6527: http://trac.videolan.org/vlc/ticket/6527

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
updated May 22 2014
added Mar 24 2012
downloads today
0
page views today 2