Posted On 2023-01-18

How I converted a video for use on the web

deon 0 comments
9W7.NET – Personal Playground >> Uncategorized >> How I converted a video for use on the web

Just a brain dump to future me, hi future me!, I had a 140mb MP4 file but it failed to upload via wordpress’s media page, got to like 10% and stalled. So I uploaded it via sftp and I used a plugin to integrate it into wordpress. Only to find the mp4 doesn’t play. Odd, it said it was a mp4 file, but maybe it uses HEVC encoding or something else “weird”. So I eventually converted it to something more “standard” and web friendly using this command (which is the only reason you came to this page right?):

ffmpeg -i SourceVideo.mp4 -movflags faststart -crf 26 DestVideo.mp4

Interestingly, the resulting file was about 47mb, so it was smaller. I uploaded it successfully using WordPress’s UI this time and it seems to play.

https://blog.addpipe.com/converting-webm-to-mp4-with-ffmpeg/

Copied the command from that page above ^.

Related Post

Linux Mint – They just get it right

One of my jobs actually required I install Ubuntu Desktop on my newly issued Dell…

The good old days of internet traffic

Ah I remember the good old days of internet traffic. Back in the 90's people…

How I broke up a large video into a smaller one

https://itsfoss.com/losslesscut-video-cutter/ Using the "LosslessCut" Video cutter software, which I found a linux appimage for (so…