Small script that changing spaces to underscores, convert video to h265 mkv, merge mkv with sub and saving frames from video file.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Pavel Zhuravlev 18c664b1c5 Combined frames, convert, merge, getridofspaces in one mode argument and video, folder in path argument. 10 months ago
testdata Add tests 12 months ago
.gitignore Refactor code. 10 months ago
README.md Combined frames, convert, merge, getridofspaces in one mode argument and video, folder in path argument. 10 months ago
requirements.txt Add CRF and Preset. 10 months ago
rvt.py Combined frames, convert, merge, getridofspaces in one mode argument and video, folder in path argument. 10 months ago
test_rvt.py Add tests 12 months ago

README.md

RaZZlom Video Tool

About

Small script that changing spaces to underscore, convert video to h265 mkv, merge mkv with a subtitle and saving frames from a video file.

Install

sudo pacman -S ffmpeg
sudo pacman -S mkvtoolnix-cli
pip install moviepy
git clone https://codeberg.org/RaZZlom/razzlom_video_tool.git

Usage

chmod +x rvt.py

Maybe you need change #!/usr/bin/python to #!/usr/bin/python3.

Change crf, preset and audioid in settings if you want.

For example, you have video file with two audio tracks.

  • Video - ID 0
  • Audio 1 - ID 1
  • Audio 2 - ID 2

Saving frames from video

./rvt.py -m frames -p /path/to/video.mkv

Saves 10 frames from video.

Convert one video

./rvt.py -m convert -p /path/to/video.avi

Convert all videos from folder

./rvt.py -m convert -p /path/to/folder/

Merge one mkv video with subtitle

./rvt.py -m merge -p /path/to/video -s /path/to/subtitle

Merging all mkv with subtitles

./rvt.py -m merge -p /path/to/folder/

Get rid of spaces for all videos in folder

./rvt.py -m getridofspaces -p /path/to/folder/

Feedback

All your questions please send to my fediverse account