All Projects → Ajatt-Tools → videoclip

Ajatt-Tools / videoclip

Licence: GPL-3.0 license
Easily create videoclips with mpv.

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to videoclip

mpvacious
Adds mpv keybindings to create Anki cards from movies and TV shows.
Stars: ✭ 286 (+483.67%)
Mutual labels:  mpv, mpv-script
mpv-youtube-upnext
A userscript for MPV that allows you to play "up next"/recommended youtube videos ⏭️
Stars: ✭ 29 (-40.82%)
Mutual labels:  mpv, mpv-script
mpv-osc-morden
Another mpv osc script
Stars: ✭ 149 (+204.08%)
Mutual labels:  mpv, mpv-script
mpv crop script
A Lua script to take cropped screenshots in mpv, sans external dependencies
Stars: ✭ 77 (+57.14%)
Mutual labels:  mpv, mpv-script
Ff2mpv
A Firefox add-on for playing URLs in mpv.
Stars: ✭ 149 (+204.08%)
Mutual labels:  addon, mpv
mpv-search-page
An in-window search page for mpv player
Stars: ✭ 32 (-34.69%)
Mutual labels:  mpv, mpv-script
mpv-gif-generator
Creates animated gifs using mpv hotkeys
Stars: ✭ 32 (-34.69%)
Mutual labels:  mpv, mpv-script
mpv-repl
A graphical REPL for mpv input commands
Stars: ✭ 70 (+42.86%)
Mutual labels:  mpv, mpv-script
mpv-youtube-download
A userscript for MPV that allows you to download youtube audio and video with one key press 💾
Stars: ✭ 16 (-67.35%)
Mutual labels:  mpv, mpv-script
immersive
Language learning mpv script for looking up words within mpv and generating Anki cards
Stars: ✭ 43 (-12.24%)
Mutual labels:  mpv, mpv-script
MPV lazy
🔄 mpv player 播放器折腾记录 windows conf ; 中文注释配置 快速帮助萌新入门 ; mpv-lazy 懒人包 win10 x64
Stars: ✭ 615 (+1155.1%)
Mutual labels:  mpv, mpv-script
mpv-scripts
A collection of scripts for mpv player
Stars: ✭ 138 (+181.63%)
Mutual labels:  mpv, mpv-script
mpv-ytdlautoformat
A simple mpv script to auto change ytdl-format for Youtube and Twitch
Stars: ✭ 30 (-38.78%)
Mutual labels:  mpv, mpv-script
cfg
my dotfiles
Stars: ✭ 26 (-46.94%)
Mutual labels:  mpv, mpv-script
dotfiles
My tiling configs
Stars: ✭ 72 (+46.94%)
Mutual labels:  mpv
statamic-video-embed
A field type for embedding YouTube and Vimeo Videos
Stars: ✭ 16 (-67.35%)
Mutual labels:  addon
PopUpOFF
Chrome extension, providing better web experience.
Stars: ✭ 65 (+32.65%)
Mutual labels:  addon
service.addic7ed
Subtitles addon for Kodi Mediacenter
Stars: ✭ 20 (-59.18%)
Mutual labels:  addon
AIO
AIO is a pure lua server-client communication system for Eluna and WoW.
Stars: ✭ 50 (+2.04%)
Mutual labels:  addon
demo fullpage
🚀 Demonstriert eine Onepage-Website auf Basis von REDAXO 5, fullPage.js und UIkit
Stars: ✭ 36 (-26.53%)
Mutual labels:  addon

screenshot

videoclip

Chat GitHub GitHub top language Lines of code

Easily create video and audio clips with mpv in a few keypresses. Videoclips are saved as .mp4 or .webm. Subtitles can be embedded into the clips.

Installation

Manually

Download the repository and extract the folder containing videoclip.lua to your mpv scripts directory:

OS Location
GNU/Linux ~/.config/mpv/scripts/
Windows C:/Users/Username/AppData/Roaming/mpv/scripts/

Note: in Celluloid user scripts are installed by switching to the "Plugins" tab in the preferences dialog and dropping the files there.

Expected directory tree
~/.config/mpv/scripts
|-- other_addon_1
|-- other_addon_2
`-- videoclip
    |-- main.lua
    |-- ...
    `-- videoclip.lua

Using git

If you already have your dotfiles set up according to Arch Wiki recommendations, execute:

$ config submodule add 'https://github.com/Ajatt-Tools/videoclip.git' ~/.config/mpv/scripts/videoclip

If not, either proceed to Arch Wiki and come back when you're done, or simply clone the repo:

$ git clone 'https://github.com/Ajatt-Tools/videoclip.git' ~/.config/mpv/scripts/videoclip

Updating with git

Install method Command
Submodules $ config submodule update --remote --merge
Plain git $ cd ~/.config/mpv/scripts/videoclip && git pull

Configuration

The config file should be created by the user, if needed.

OS Config location
GNU/Linux ~/.config/mpv/script-opts/videoclip.conf
Windows C:/Users/Username/AppData/Roaming/mpv/script-opts/videoclip.conf

If a parameter is not specified in the config file, the default value will be used. mpv doesn't tolerate spaces before and after =.

Example configuration file:

# Absolute paths to the folders where generated clips will be placed.
# `~` or `$HOME` are not supported due to mpv limitations.
video_folder_path=/home/user/Videos
audio_folder_path=/home/user/Music

# Menu size
font_size=24
# Clean filenames (remove special characters) (yes or no)
clean_filename=yes

# Video settings
video_width=-2
video_height=480
video_bitrate=1M
# Available video formats: mp4, vp9, vp8
video_format=mp4
# The range of the scale is 0–51, where 0 is lossless,
# 23 is the default, and 51 is worst quality possible.
# Insane values like 9999 still work but produce the worst quality.
video_quality=23
# Use the slowest preset that you have patience for.
# https://trac.ffmpeg.org/wiki/Encode/H.264
preset=faster
# FPS / framerate. Set to "auto" or a number.
video_fps=auto
video_fps=60

# Audio settings
# Available formats: opus or aac
audio_format=opus
# Opus sounds good at low bitrates 32-64k, but aac requires 128-256k.
audio_bitrate=32k

Key bindings

OS Config location
GNU/Linux ~/.config/mpv/input.conf
Windows C:/Users/Username/AppData/Roaming/mpv/input.conf

Add this line if you want to change the key that opens the script's menu.

c script-binding videoclip-menu-open

Usage

  • Open a file in mpv and press c to open the script menu.
  • Follow the onscreen instructions. You need to set the start point, end point, and then press c to create the clip.

It is possible to create silent videoclips. To do that, first mute audio in mpv. The default key binding is m.

If a video has visible subtitles, they will be embedded automatically. Toggle them off in mpv if you don't want any subtitles to be visible. The default key binding is v.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].