VideoHelp Forum
+ Reply to Thread
Results 1 to 1 of 1
Thread
  1. 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
    Last edited by o770; 14th Sep 2024 at 03:49.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!