
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
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.
6 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
6 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
icarus
3 months ago
Report
mederi
3 months ago
Report
icarus
3 months ago
Seeking causes the plugin to stop and play rest of video. But i've been looking for years for something similair for other media players and the best i can find are things like a bookmark jumper or playlist shufflers , so props for the unique plugin.
Report
ralf
5 months ago
lua info: [Sampler] duration > 308.928215
lua info: [Sampler] samples_number > 1
lua info: [Sampler] skipper > 0
lua info: [Sampler] set_position #1 > 0
lua info: [Sampler] samples_positions > 1
lua info: [Sampler] actual_sample > #1
lua info: [Sampler] new position > 0
lua warning: Error while running script C:\Program Files\VideoLAN\VLC\lua\extensions\sampler.lua, function activate(): ...rogram Files\VideoLAN\VLC\lua\extensions\sampler.lua:76: attempt to call field 'add_callback' (a nil value)
lua error: Could not activate extension!
main warning: playback too early (-62246): down-sampling
main error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1000 ms)
Report
mederi
5 months ago
Report
jmaia45
6 months ago
Report
mederi
6 months ago
Report
jmaia45
6 months ago
Report
vorticaland
10 months ago
Report
newbie67
10 months ago
say I have 10 files/tracks and I have "Samples per item" as 5
this would create 50 items
currently the 5 items in every file/track/sample are next to each other
I want items within the sample to be shuffled as well in the same way you shuffle the tracks/files
is this possible?
Report
mederi
10 months ago
|---S1---S2---S3---S4---| => S3, S1,S4,S2
Report
newbie67
10 months ago
T3(S1-S2-S3)-T1(S1-S2-S3)-T2(S1-S2-S3)
I am after
T3S1-T1S3-T2S2-T3S3-T1S1-T2S3-T3S2..........
Report
mederi
9 months ago
- The option could be called "Mix samples" placed next to the "Shuffle tracks".
- Another new option "Shuffle samples" could be placed next to the "Random position".
- Skipper [s] (vs Samples per item).
- rework, improve and polish the messy code.
Report
newbie67
9 months ago
I have tried a serach but could not find "Mix playlists".
Report
mederi
9 months ago
I do not tell you how-to now. I remember the code is a bit messy - a rework with minimal effort, a prototype. Probably it requires more work to implement the feature. I will check it later.
Report
newbie67
9 months ago
Report
mederi
9 months ago
Report
newbie67
10 months ago
Report
almilion
2 years ago
Report
catdaddy
2 years ago
Report
mederi
2 years ago
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
mederi
2 years ago
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 years ago
Report
catdaddy
2 years ago
Report
petkos01
2 years ago
Report