Skip to content

shell script that extracts subtitles from a video file (or YouTube video) and reinserts them as hard-coded, larger, yellow subtitles on a black background,...

pocketvince/Videosrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Videosrt

Alt text

Videosrt is a shell script that extracts subtitles from a video file (or YouTube video) and reinserts them as hard-coded, larger, yellow subtitles on a black background.

Update

20230408: Cleaner code, now allowing the addition of subtitles in formats other than SRT, and some lines of yt-dlp code have been added to extract subtitles from YouTube videos as well.

20230409: Added two features:

• Convert-OV: Blur the original video, and superpose at maximum height the same video reduced by 25% and include the subtitles (as on the "convert" command)

• Convert-ST: Incorporates subtitles to the video and keeping standard size and color

Installation

Install ffmpeg & yt-dlp

apt-get install ffmpeg yt-dlp -y

Download the script and place it in /bin/videosrt

Usage

root@pocketvince:~# videosrt
videosrt info "video.mkv"
Displays information about the subtitles of the specified video

videosrt extract "video.mkv" "0:0"
Extracts subtitles from the specified video and saves them to an SRT file

videosrt convert "video.mkv" "video.mkv.srt"
Incorporates subtitles from an SRT file into a video in large, yellow and with a black background

videosrt convert-ov "video.mkv" "video.mkv.srt"
Blur the original video, and superpose at maximum height the same video reduced by 25% and include the subtitles (as on the "convert" command)

videosrt convert-st "video.mkv" "video.mkv.srt"
Incorporates subtitles to the video and keeping standard size and color

videosrt extract-yt "link"
Displays the list of available subtitles for a YTvideo, choose language & extracts the subtitles into an SRT file and downloads the video in mp4

Contributing

Readme generator: https://www.makeareadme.com/

Translate subtitles: https://subtitlestranslator.com/en/

Extra info

My television does not allow to change the color, font and size of the subtitles, script created to save my back 🥴

About

shell script that extracts subtitles from a video file (or YouTube video) and reinserts them as hard-coded, larger, yellow subtitles on a black background,...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages