first-order-model icon indicating copy to clipboard operation
first-order-model copied to clipboard

Change the result.mp4 resolution

Open ElmiraNa opened this issue 2 years ago • 3 comments

Hello I need to rescale the video result.mp4 in a rectangular form. In which file I can obtain the result.mp4 to use it as an input for my opencv based code?

ElmiraNa avatar Jul 10 '21 06:07 ElmiraNa

I don't get what you want. Probably demo.py

AliaksandrSiarohin avatar Jul 10 '21 10:07 AliaksandrSiarohin

thank you for your responding. I mean the result of code save in a video named result.mp4. it is in a form of 256 * 256 pixel. if i want change the video resolution for example in form of 400 * 200 , how can i do it? how can i get the result.mp4? is there any solution to resize the output without destroy the video?

ElmiraNa avatar Jul 10 '21 11:07 ElmiraNa

ffmpeg -i result.mp4 -vf scale=400:200 result2.mp4

AliaksandrSiarohin avatar Jul 10 '21 18:07 AliaksandrSiarohin