https://github.com/meequrox/random_video_opener
A program that opens a random video from the current directory
https://github.com/meequrox/random_video_opener
filesystem random video
Last synced: 12 months ago
JSON representation
A program that opens a random video from the current directory
- Host: GitHub
- URL: https://github.com/meequrox/random_video_opener
- Owner: meequrox
- License: gpl-3.0
- Created: 2022-11-06T09:18:11.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-05-05T18:55:34.000Z (about 2 years ago)
- Last Synced: 2025-02-28T10:57:11.099Z (over 1 year ago)
- Topics: filesystem, random, video
- Language: Go
- Homepage:
- Size: 830 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Random Video Opener
**A simple program that opens a random video from the current directory.**
Uniform distribution is used.
[List of video formats](video/video.go#L33)
## Build
```bash
git clone https://github.com/meequrox/random_video_opener.git
cd random_video_opener
# Default build
go build -o build/
# Optimized build
go build -o build/ -ldflags="-s -w"
```
The binary will be located in the `build/` directory.
## Usage
```bash
user@onhost:~/Videos$ ./random_video_opener
Directory: /home/user/Videos
Files: 190
File [99]: Funny cat.mp4
Command: /sbin/xdg-open Funny cat.mp4
```
Or you can simply double-click the binary file using the file manager.