These Bash scripts run MPV on files and folders with command line options to play specific parts of a video according to tags, timing patterns, and intervals.
File names or a playlist are read where there is a time pattern and the files are played as clips or loops from point A to point B in time, or the video duration is scaled in time intervals and the files are played as a sequence of clips.
Long command line options that make clips and loops in MPV become shorter with time patterns, and tags help identify clips in file searches. A third script plays your favorite video like you've never seen it before.
Help descriptions and examples are displayed with the --help option, and here are some command-line examples:
MPVCLIP:
$ mpvclip gpu-hq a1b2 a10b20 foo.mp4
How MPV is run:
$ mpv --start=0.1 --end=0.2 --profile=gpu-hq foo.mp4 ; mpv --start=1 --end=2 --profile=gpu-hq foo.mp4
MPVCLIPF:
$ mpvclipf gpu-hq Earth -p Moon /home/user/Videos/
How MPV is run:
$ mpv --start=0.1 --end=0.2 --profile=gpu-hq /home/user/Videos/Moon/foo-a1b2Earth.mp4
MPVIVAL:
$ mpvival gpu-hq 2 3 foo.mp4
How MPV is run a first and second time for a 1 minute video, showing a random start time:
$ mpv --start=7 --length=2 --profile=gpu-hq foo.mp4 ; mpv --start=20 --length=2 --profile=gpu-hq foo.mp4 ; mpv --start=48 --length=2 --profile=gpu-hq foo.mp4
$ mpv --start=18 --length=2 --profile=gpu-hq foo.mp4 ; mpv --start=37 --length=2 --profile=gpu-hq foo.mp4 ; mpv --start=41 --length=2 --profile=gpu-hq foo.mp4
There are several Lua scripts for MPV that handle playback controls and making clips and loops, but they generally don't handle input files and tags like these Bash scripts do. If this is something that interests you, then be sure to check it out!
Repository
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 1 of 1
Thread
-
Last edited by o770; 14th Sep 2024 at 02:49.
Similar Threads
-
Download streaming video from player on webpage using bash
By BosseB in forum Video Streaming DownloadingReplies: 12Last Post: 10th Nov 2023, 04:53 -
Linux full ffmpeg x264 bash script for quick & dirty & fast video encoding
By M.Shiver in forum LinuxReplies: 16Last Post: 6th Nov 2023, 10:30 -
Q fr newbie: Annotating vid clips in spreadsheet or Dbase w links to clips
By k9dr in forum Newbie / General discussionsReplies: 1Last Post: 23rd Sep 2023, 05:01 -
Using Avisynth to play specific clips in sequence?
By Asterra in forum Newbie / General discussionsReplies: 1Last Post: 9th Dec 2022, 08:48 -
Merge video, audio and subtitles in one folder using ffmpeg + bash script?
By oknchm in forum Newbie / General discussionsReplies: 1Last Post: 16th Nov 2022, 00:58