AliaksandrSiarohin / first-order-model

This repository contains the source code for the paper First Order Motion Model for Image Animation
https://aliaksandrsiarohin.github.io/first-order-model-website/
MIT License
14.53k stars 3.22k forks source link

Where to find the croped video? #398

Open Nameer-Alkhayyat opened 3 years ago

Nameer-Alkhayyat commented 3 years ago

After running python crop-video.py --inp v.mp4 --cpu I get 146it [05:14, 2.15s/it] But I can't find the file

AliaksandrSiarohin commented 3 years ago

You should run the command that is outputted.

Nameer-Alkhayyat commented 3 years ago

@AliaksandrSiarohin Which command?

AliaksandrSiarohin commented 3 years ago

What is the script output?

Nameer-Alkhayyat commented 3 years ago

@AliaksandrSiarohin When I run the command to crop: (env) XIN858375:first-order-model nalkhayy$ python crop-video.py --inp v.mp4 --cpu I get back : 11it [00:24, 2.21s/it] then numbera keep increasing until 146it [05:14, 2.15s/it] and then it done!

AliaksandrSiarohin commented 3 years ago

The crop is not found. Try to set --min_frames=0

Nameer-Alkhayyat commented 3 years ago

@AliaksandrSiarohin I think it works, i got this now ffmpeg -i v.mp4 -ss 0.0 -t 5.64 -filter:v "crop=330:330:973:69, scale=256:256" crop.mp4 but still can not find the file anywhere on my meachine!

AliaksandrSiarohin commented 3 years ago

So now run ffmpeg -i v.mp4 -ss 0.0 -t 5.64 -filter:v "crop=330:330:973:69, scale=256:256" crop.mp4.

Nameer-Alkhayyat commented 3 years ago

@AliaksandrSiarohin Well, i get ffmpeg: command not found Thank you for being so helpful!

AliaksandrSiarohin commented 3 years ago

So you should install ffmpeg than.

Nameer-Alkhayyat commented 3 years ago

@AliaksandrSiarohin Thank you a lot! Works now! Would you be interested in a paid project collaboration regarding FOM? I would love to have a chat with you to give you more details.

AliaksandrSiarohin commented 3 years ago

@Nameer-Alkhayyat Sorry, have too much on my hands right now to start jump in a new project.

zhaochunhui-0723 commented 1 year ago

python crop-video.py --inp source.mp4 --min_frames=0 , i got these

"ffmpeg -i source.mp4 -ss 0.0 -t 0.6333333333333333 -filter:v "crop=203:203:409:226, scale=256:256" crop.mp4 ffmpeg -i source.mp4 -ss 0.0 -t 1.1333333333333333 -filter:v "crop=235:247:1045:236, scale=256:256" crop.mp4 ffmpeg -i source.mp4 -ss 0.8 -t 0.33333333333333326 -filter:v "crop=198:197:407:230, scale=256:256" crop.mp4 ffmpeg -i source.mp4 -ss 1.1666666666666667 -t 0.1333333333333333 -filter:v "crop=336:336:264:249, scale=256:256" crop.mp4 ffmpeg -i source.mp4 -ss 0.0 -t 4.833333333333333 -filter:v "crop=594:594:332:60, scale=256:256" crop.mp4 ffmpeg -i source.mp4 -ss 8.233333333333333 -t 0.03333333333333499 -filter:v "crop=65:74:0:337, scale=256:256" crop.mp4 ffmpeg -i source.mp4 -ss 9.433333333333334 -t 0.09999999999999964 -filter:v "crop=35:35:302:423, scale=256:256" crop.mp4" which one shoud i execute