KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   


- Content .- Fans (5) .- Knowledge Base  . 

Sampler (PG)


VLC Extension

Score 58%
Sampler (PG)

Sampler (PG)

Forum:  Link
Downloads:  15561
Submitted:  Mar 24 2012
Updated:  May 22 2014


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).

- click the download button below
- save the .zip file
- 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.
Then you simply start the extension by going to the "View" menu or "Vlc > Extensions" on Mac OS X.


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

Send to a friend
Other  Apps  from mederi
Report inappropriate content


 Excellent Extension for VLC

 by colinhk124 on: Nov 3 2012
Score 50%
IT Project Mgr

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).


Reply to this


 Re: Excellent Extension for VLC

 by mederi on: Nov 8 2012
Score 50%

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:

Reply to this


 Re: Re: Excellent Extension for VLC

 by colinhk124 on: Nov 11 2012
Score 50%
IT Project Mgr

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()

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,

Reply to this


 Re: Re: Re: Excellent Extension for VLC

 by mederi on: Nov 12 2012
Score 50%

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

Reply to this


 Great addon

 by cadewallace on: Jun 18 2014
Score 50%

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

Reply to this



 by jippjapp on: Jan 15 2015
Score 50%

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!

Reply to this


 Re: Thanks

 by mederi on: Jan 15 2015
Score 50%

You're welcome

Reply to this


 Many Thanks

 by phygal on: Feb 19 2015
Score 50%

Many thanks for this handy extension!

Reply to this


 How to save result?

 by Hibbie on: Jun 22 2016
Score 50%

Hello! I wanted to save the result of the sampling of videos into a single .mp4 file. I couldn't do this.

I tried streaming it to a file with the 'streaming' menu. I tried numerous settings inside of that menu and none have worked.


Reply to this

Add commentBack

 Who we are
More about us
Frequently Asked Questions
Updates on identi.ca
Updates on Twitter
Add App
Public API
About addons.videolan.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Report Abuse

Copyright 2011-2016 addons.videolan.org Team  
All rights reserved. addons.videolan.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
VideoLAN, VLC media player and x264 are trademarks registered (or in registration process) by the VideoLAN non-profit organization