iejMac / video2dataset

Easily create large video dataset from video urls
MIT License
533 stars 65 forks source link

How can I use video2dataset to down load the specific clip of the youtube video? #338

Open linhaojia13 opened 5 months ago

linhaojia13 commented 5 months ago

I run this command:

video2dataset --url_list="test.csv" \
        --input_format="csv" \
        --output-format="webdataset" \
        --output_folder="downloaded_youtube_videos2" \
        --url_col="url" \
        --caption_col="caption" \
        --save_additional_columns='[videoid,start,end]' \
        --enable_wandb=False \
        --config=default

the test.csv:

videoid,start,end,caption,url
qJrOyggIB-w,190.567,192.200,Travel blogger shoot a story on top of mountains. young man holds camera in forest.,https://www.youtube.com/watch?v=qJrOyggIB-w

However, it download the whole video rather than the clip that I specified.