MorenoLaQuatra / audiocaps-download

This package aims at simplifying the download of the AudioCaps dataset.
30 stars 4 forks source link

download video? #1

Closed xwhjy closed 1 year ago

xwhjy commented 1 year ago

Hi! Thanks for sharing this convenient download script. Do you happen to know how to download the company video using yt-dlp?

MorenoLaQuatra commented 1 year ago

Do you mean download it beyond the repo itself? I think you just need to use the command line interface

yt-dlp https://www.youtube.com/watch?v=VIDEO_ID

If you want to download it for AudioCaps you need to adapt this line according to your need.

xwhjy commented 1 year ago

this line

Yes! I need to download the video of each AudioCaps audio but I'm not sure how to only download the 10s clip by specifying the starting and ending seconds.

MorenoLaQuatra commented 1 year ago

You can use the same syntax I used in that line to specify the start-end.

yt-dlp https://www.youtube.com/watch?v=VIDEO_ID --postprocessor-args "-ss 1 -to 11"

for example, to download from second 1 to second 11