Video Playlist with Interruptions (Gooning Software Concept)
Posted: Sun May 31, 2020 12:41 am
A topic derail in a Cock Hero thread lead me to prototype the idea of a video playlist that is interrupted randomly by other clips. The attached Python script does that.
Current version:
Old versions:
The script depends on Python 3 and FFmpeg. For FFmpeg use the shared build if you're also doing other audio or video work.
You may also use file system linking, hard links or symlinks, to make your video directories for this. In Windows use Link Shell Extension to assist.
Configuration is now guided by GUI prompts when playlist.json doesn't exist, or when a variable tests invalid.



If configuring manually, these variables in playlist.json need to be set correctly:
Windows directory paths require double backslash, or single forward slash. Python emits single forward slash paths when GUI configuration is used.
Current version:
Old versions:
- Spoiler: show
- Spoiler: show
The script depends on Python 3 and FFmpeg. For FFmpeg use the shared build if you're also doing other audio or video work.
You may also use file system linking, hard links or symlinks, to make your video directories for this. In Windows use Link Shell Extension to assist.
Configuration is now guided by GUI prompts when playlist.json doesn't exist, or when a variable tests invalid.



If configuring manually, these variables in playlist.json need to be set correctly:
Code: Select all
{
"ffprobe": "ffprobe",
"video_playlist_file": "C:/playlist/playlist.m3u8",
"video_dir": "C:/playlist/videos",
"video_interruption_dir": "C:/playlist/interruptions",
"min_interruptions": 2,
"max_interruptions": 7,
"max_playlist_minutes": 120,
"video_player": "vlc"
}