![]() But you can't directly upload the binary to Cloud environments like Google Cloud Functions/AWS lambda without a lot of preprocessing and testing on your end. If it's your own server, you can upload it there manually and it'll work. What I mean by this is that in a real world application, you'll be deploying the code on cloud/servers, and you'd need FFMPEG there too. And we'll need to download the right binary. We'll require a binary of ffmpeg and will have to figure how to use it. However, you'll have to manually run this on every single GIF.īut we, the developers don't like to do that?. ![]() What are those weird options? I'll explain later. You can convert a GIF to MP4 by running this commandĬOPY ffmpeg -i harry-eats-cupcake.gif -pix_fmt yuv420p -c:v libx264 -movflags faststart -filter:v crop='floor(in_w/2)*2:floor(in_h/2)*2' output.mp4 Even the oldest of devices will play it easily How to convert ![]() This number may not seem huge, but it's MP4 version is only 132kb.Īnd it barely eats any CPU. This GIF above ? is 890kb when downloaded. They eat up loads of CPU and GPU power, are huge in file size. Who doesn't love these awesome GIFs? These are used heavily on social media, and many among us(*cough Myself \cough*) couldn't live without these (Prove me wrong ?) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |