Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

5.54 MB, 1920 × 1080, .gif - :(

`ffmpeg -i 6069b7c2057597000422abc7_original.gif -c:v libx264 -crf 30 -pix_fmt yuv420p output.mp4`

791 KB - :)



I once wrote a social media website and one optimization we had is we would take gifs, mark them for processing, have a celery task queue run this command, and replace the gif with a mp4.

Worked wonders. A few years later gifycat exploded and we were all kicking ourselves xD




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: