Created
July 7, 2021 15:39
-
-
Save vinodnimbalkar/107de5dbce669ec3f1c0d500158c7a8d to your computer and use it in GitHub Desktop.
Create Video clip from youtube video
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# make sure you have 'ffmpeg & youtube-dl' installed. | |
# Create Video clip from youtube video | |
read -p "Enter Url to Create Video Clip : " URL | |
read -p "Enter start time in HH:MM:SS format : " start_time | |
read -p "Enter duration in seconds from start time : " duration | |
read -p "Enter Video Clip name with .mp4 extension : " filename | |
ffmpeg -i $(youtube-dl -f best --get-url "$URL")\ | |
-ss $start_time -t $duration $filename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment