>>779620I use:
ytclip() {
if [ "$#" -lt 3 ]; then
echo "Usage: ytclip <URL> <start_time> <end_time> [output_name]"
return 1
fi
local URL="$1"
local START="$2"
local END="$3"
local OUT="${4:-clip.mp4}"
yt-dlp \
--download-sections "*${START}-${END}" \
--force-keyframes-at-cuts \
-f "bv*[height=1080][vcodec^=avc1]+ba/bv*[height<=1080][vcodec^=avc1]+ba/bv*[height=1080]+ba/bv*[height<=1080]+ba/best[height<=1080]/best" \
--merge-output-format mp4 \
--embed-metadata \
--embed-chapters \
--embed-thumbnail \
-o "$OUT" \
"$URL"
}
as a function to download for example ytclip "url" 00:05 00:008 nameofclip
then i clip in davinci resolve (free version) because its 100 times easier than guessing and its quick too. you can still output to mp4 in the deliver tab.