Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Downloading segment of video using --postprocessor #25951
Comments
|
I haven't been able to find the duplicate to this issue. Has it been resolved? |
Question
This works fine:
youtube-dl -f "best[height<=240]" --format mp4 --output "~/Desktop/%(title)s.%(ext)s" URLLet's say I want to extract a segment of that video using the
--postprocessorarg with same settings. I add the postprocessor arg. However this downloads the whole video:youtube-dl -f "best[height<=240]" --format mp4 --output "~/Desktop/%(title)s.%(ext)s" --postprocessor-args "-ss 0:58:58 -to 0:59:06" URLNow, I use the simplest form (only postprocessor) and it works (it extract the segment):
youtube-dl --postprocessor-args "-ss 0:58:58 -to 0:59:06" --output "~/Desktop/%(title)s.%(ext)s" URLI'm wondering whether what I want to do is possible / whether I am using the wrong combo of arguments.
My aim is to download only the segment with the video/audio quality and extension specified.
Thanks in advance!