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

whats the command that i want to download the 30 seconds of video thank you #19139

Closed
asssdasad opened this issue Feb 5, 2019 · 3 comments
Closed

Comments

@asssdasad
Copy link

@asssdasad asssdasad commented Feb 5, 2019

whats the command that i want to download the 30 seconds of video thank you

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 5, 2019

No such comand.

@dstftw dstftw closed this Feb 5, 2019
@alexvong1995
Copy link
Contributor

@alexvong1995 alexvong1995 commented Feb 7, 2019

@asssdasad

You can first download with youtube-dl and then use ffmpeg to cut the first
30 seconds of the video. See https://unix.stackexchange.com/questions/1670/how-can-i-use-ffmpeg-to-split-mpeg-video-into-10-minute-chunks for details.

@alexvong1995
Copy link
Contributor

@alexvong1995 alexvong1995 commented Feb 8, 2019

@asssdasad

I figure out how to download only the first 30 seconds of the video without
cutting in #19166.

Assuming you have ffmpeg installed. The following shell command should
download the first 30 seconds of the video and output it as out.mkv:

youtube-dl -o - -f best 'https://www.youtube.com/watch?v=BaW_jenozKc' | ffmpeg -i - -ss 0 -t 30 -c copy out.mkv

Does it work for you?

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
3 participants
You can’t perform that action at this time.