Skip to content

Collection of batches I made implementing custom ffmpeg and yt-dlp commands

Notifications You must be signed in to change notification settings

laaners/ffmpeg-yt-dlp-batch-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ffmpeg and yt-dlp utils batches

Batches I made implementing custom ffmpeg and yt-dlp commands

Quite the spaghetti code, mostly for personal archive

Prerequisities: ffmpeg and yt-dlp, preferably added to path

Batches:

frames

# Create a frames folder containing all frames of the video
C:\folder>frames "video"

joiner

# Uses -f concat -safe to join all the videos/audios in the selected folder, default extension .mp4
C:\folder>joiner "folder_name" [.ext]

joinersubdiv

# In a folder with various subfolders of the beforementioned kind, joins all videos/audios of subfolders creating videos/audios for each subfolders
C:\folder_with_subfolders>joinersubdiv

splitter

# Cuts a video file according to timestamps specified in a .txt file, splitter -h for more info
C:\folder>splitter -h

# Spawns 0 parallel processes and cuts video.mp4 according to timestamps in splitter.txt, timestamps specified in [hh:]mm:ss-[hh:]mm:ss or in ss.ms-ss.ms, with -c copy
C:\folder>splitter -r 0 "video.mp4" splitter.txt

# Spawns 2 parallel processes and cuts video.mp4 according to timestamps in splitter.txt, with -preset veryfast, -c:v libx264 and -c:a aac
C:\folder>splitter -p 2 "video.mp4" splitter.txt veryfast

silencer

Requires the beforementioned splitter and joiner

# Removes all video parts with audio below a certain threshold, needs splitter and joiner in path, silencer -h for more info
C:\folder>silencer -h

# Removes all moments with audio below -10dB and duration of at least 2 seconds, traslating the removing startpoint 0.5 seconds before the original startpoint the removing endpoint 0.7 seconds after the original endpoint
C:\folder>silencer -t "video.mp4" -10dB 2 0.6-0.7

timesum

# Sums all times or timestamps in a .txt file, timesum -h for more info
C:\folder>timesum -h

ytsplitter

# Downloads directly the clips specified by a .txt file from a downloadable video with yt-dlp, timestamps specified in [hh:]mm:ss-[hh:]mm:ss
C:\folder>ytsplitter "video_url" "timestamps.txt"

zaria2c

# Downloads file with aria2c by specifying only yt-dlp options
C:\folder>zaria2c "-f 248+140 video_url"

elgato

# Batch for elgato 60HD recording/streaming, elgato -h for more info
C:\folder>elgato -h

About

Collection of batches I made implementing custom ffmpeg and yt-dlp commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published