Closed mxochicale closed 12 months ago
Resolved with crop=trunc(iw/2)*2:trunc(ih/2)*2"
ffmpeg -framerate 30 -pattern_type glob -i 'Kvasir-SEG/selected-ck2bxknhjvs1x0794iogrq49k-512x-512x-05-frames/*.jpg' -c:v libx264 -vf "crop=trunc(iw/2)*2:trunc(ih/2)*2" out512x512-selected-ck2bxknhjvs1x0794iogrq49k-05-frames.mp4
More info here https://github.com/SciKit-Surgery/cmicHACKS2/tree/main/data/polyp-dataset
🐛Bug
I think we need to resize image to convert them to video? Otherwise, we get this errors
ffmpeg -framerate 1 -pattern_type glob -i 'Kvasir-SEG/images/ck*.jpg' -c:v libx264 out720x576.mp4