~npisanti/npisantidotcomssg

npisantidotcomssg/memo.md -rw-r--r-- 560 bytes
92157a2aNicola Pisanti corrects typo an hour ago

for video conversion:

ffmpeg -i input.mp4 -c:v libx264 output.mp4

or

ffmpeg -i input.mkv -codec copy output.mp4

or

ffmpeg -i input.mp4 -pix_fmt yuv420p -c:v libx264 -movflags +faststart output.mp4

lately i encode to HD

ffmpeg -i input.mp4 -b 1200k -vf scale=1280:720 output.mp4

for getting the thumbnails:

ffmpeg -i input.mp4 thumb%04d.jpg -hide_banner

for lofi images (after copying original in lofi folders )

mogrify -resize 600x1200 -format jpg *.png && rm *.png