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

Option to cut end of a video #16447

Closed
jkufner opened this issue May 13, 2018 · 1 comment
Closed

Option to cut end of a video #16447

jkufner opened this issue May 13, 2018 · 1 comment

Comments

@jkufner
Copy link

@jkufner jkufner commented May 13, 2018

What is the purpose of your issue?

  • Feature request (request for a new functionality)

Description

Since many videos have stupid annoying garbage on the end, it would be useful to have an option to cut away the garbage.

For example, if I wish to download https://www.youtube.com/watch?v=YKSU82afy1w, then I get some garbage starting at 0:57. So I can then run this command to remove the garbage:

youtube-dl 'https://www.youtube.com/watch?v=YKSU82afy1w' -o song.mkv
ffmpeg -i song.mkv -t 0:57 -c copy song.cut.mkv

It would be much better if I cud do simply this:

youtube-dl --end-at 0:57 https://www.youtube.com/watch?v=YKSU82afy1w

Basically the desired --end-at $T option equals -t $T -c copy of ffmpeg. Note the ffmpeg with -t but without -c copy will reencode the video. It's fine to be inaccurate and cut on the nearest key-frame since the garbage is usually a large change in the video anyway.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented May 13, 2018

Duplicate of #622.

@remitamine remitamine closed this May 13, 2018
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.