Sampler PG Original

VLC Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

3
Score 60%
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%VideoLANVLCluaextensions
* Windows (current user): %APPDATA%VLCluaextensions
* 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:

7 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

almilion

1 month ago

+100

Report

catdaddy

2 months ago

Would love to have this available for Android Samsung tablet? Was trying to download on my Android is this possible? Can't figure it out or is it only available on PC? If so can it be available on Android Samsung tablet?

Report

C

mederi

2 months ago

Just search Google: how to run windows applications on android. You could try to run a portable VLC (no installation, just a decompressed VLC with manually created "portable" folder in VLC folder near vlc.exe) in Wine https://www.winehq.org/
I am not VLC developer, I have just written this Lua script for VLC. You can file your bug reports & feature requests at https://trac.videolan.org/vlc/

Report

C

mederi

2 months ago

VLC Extension Lua scripts are not supported in VLC for Android. You could try whether it is possible to run VLC for PC on Android (I have Googled a bit: Wine for Android?).
You should try the extension in VLC on PC. The Sampler (PG) generates a playlist with playlist items containing star-time/stop-time advanced VLC options. Then you can save such a playlist with relative paths (VLC 3+) if you save it in the same local folder. Then you could try to run such a playlist with the same folder of media files in VLC for Android. You could let me know, whether VLC for Android supports playlists with advanced VLC options.

Report

catdaddy

2 months ago

Thank You Mederi for reply so quickly! I am computer savvy, but not as savvy as to know what Wine for Android is or what it could do? Also, I am fine with using this script on my PC, but do not use my PC as much as my mobile Android Tablet device. Would be very cool and nice for it to be made into an Google Play App for Android device (Pleeeeease!?) I've looked EVERYWHERE and cannot find any similar app to play portions of random videos anywhere, seems very rare. Is frustrating because i would love to do this since i host multiple events and have work and house party events, which i would love to play my music and multiple video portions along with this. Can this be accomplished somehow one way or another? Even if it's a separate piece of software or integrated? I am not "programming language" literate, only computer savvy and very literate when it comes to integration, research, etc. This type of software is just NOT out there and available for anything. The only thing that comes close is "styxar video randomizer" which is both outdated and confusing to use. Could you check this piece of software out and replicate it or make something similar to use with Android and VLC devices etc? Thanks for the input, i will definitely try what you recommended and let you know what happens. I'm very much appreciated for your prompt and generous and informational reply. This is a wonderful piece of software you have developed and just needs research and developing. Heck, i'd pay for it. I'm sure others would too if so was elaborated, made for multiple devices, and simplified. Thanks & Cheers

Report

catdaddy

2 months ago

PS. Plus the Styxar Video Randomizer software is both outdated and the developer is no longer available to purchase or contact for software key updates etc.

Report

petkos01

11 months ago

Thanks for plugin. It works well. I have related issue. When I play created playlist, for a split of the second it shows beginning of the video and then jump into required start time. I know it must be VLC issue but may be you know how to deal with the issue. I tried it on recent VLC and Windows 10 x64.

Report

C

mederi

11 months ago

I cannot reproduce the issue in VLC 3.0.2 (Vista 32-bit). There is just a black screen only in some films for a split of a second. There is really nothing I can do about it. Perhaps it depends on a video format you are playing. You can report the :start-time VLC option issue and provide a video samples at https://trac.videolan.org/vlc

Report

phygal

4 years ago

Many thanks for this handy extension!

Report

jippjapp

4 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

4 years ago

You're welcome

Report

cadewallace

4 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

6 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

6 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

6 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

6 years ago

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

Report

7 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 Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
GPLv2 or later
version
updated May 22 2014
added Mar 24 2012
downloads today
2
page views today 29
System Tags addon gplv2-later