I try to cut and download part of an online video from vk.com, using yt-dlp and ffmpeg.
I tried
-
ffmpeg $(yt-dlp -g 'https://vk.com/video302700968_456241462' | sed 's/^/-ss 05:00 -i /') -t 00:30 -c copy output.mkv
and -
ffmpeg -ss 00:05:00 -to 00:05:30 -i "$(yt-dlp --get-url 'https://vk.com/video302700968_456241462')" -c:v copy -c:a copy output.mp4
But either command returns Error opening input files: Server returned 400 Bad Request
.
How to make it work?
Don’t worry, the video was created in 1916 and is not protected by copyright.