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

How do I download youtube videos for a specified time period #32488

Closed
1 of 2 tasks
GuanghuiSong opened this issue Jul 31, 2023 · 2 comments
Closed
1 of 2 tasks

How do I download youtube videos for a specified time period #32488

GuanghuiSong opened this issue Jul 31, 2023 · 2 comments

Comments

@GuanghuiSong
Copy link

GuanghuiSong commented Jul 31, 2023

Checklist

  • [ x] I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

Can someone help me, please

@GuanghuiSong
Copy link
Author

I have used the following two forms of parameters, neither of which worked
ydl_opts = {
'path':"/home/sgh/code/Text-To-Video-Finetuning/datasets/download_videos",
'outtmpl':caption,
'merge_output_format':'mp4',
'format':format_id,
'skip_download':False,
'quiet':True,
"download_ranges": download_range_func(None, [[start_time, end_time]] ),
"force_keyframes_at_cuts": True
}
and

ydl_opts = {
'path':"/home/sgh/code/Text-To-Video-Finetuning/datasets/download_videos",
'outtmpl':caption,
'merge_output_format':'mp4',
'format':format_id,
'skip_download':False,
'quiet':True,
"external_downloader": "ffmpeg",
"external_downloader_args": {"ffmpeg_i": ["-ss", str(start_time)."-to", str(end_time)]},
}

@dirkf
Copy link
Contributor

dirkf commented Jul 31, 2023

[ ] I've searched the bugtracker for similar questions including closed ones

Why do you think this checklist item is there? #30839, #4821, #31448 (comment).

@dirkf dirkf closed this as not planned Won't fix, can't repro, duplicate, stale Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants