Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading segment of video using --postprocessor #25951

Closed
iburunat opened this issue Jul 10, 2020 · 1 comment
Closed

Downloading segment of video using --postprocessor #25951

iburunat opened this issue Jul 10, 2020 · 1 comment

Comments

@iburunat
Copy link

@iburunat iburunat commented Jul 10, 2020

Question

This works fine:

youtube-dl -f "best[height<=240]" --format mp4 --output "~/Desktop/%(title)s.%(ext)s" URL

Let's say I want to extract a segment of that video using the --postprocessor arg 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" URL
Now, 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" URL

I'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!

@iburunat iburunat added the question label Jul 10, 2020
@dstftw dstftw closed this Jul 10, 2020
@dstftw dstftw added the duplicate label Jul 10, 2020
@iburunat
Copy link
Author

@iburunat iburunat commented Jul 10, 2020

I haven't been able to find the duplicate to this issue. Has it been resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.