I use the following code to convert .webm
videos to .mp4
using the FFMPEG library:
ffmpeg -i video.webm -vcodec h264 -acodec aac -strict experimental video.mp4
This works flawless when playing the converted video in Windows (Chrome/Firefox), Mac (Safari/Chrome), Android (Chrome) but it does not work when watching through iOS (Safari/Chrome).
At first I thought it might be an mp4
problem? But then I played without any problems in my iOS Safari this video https://www.w3schools.com/html/mov_bbb.mp4 which is also a mp4
.
So this tells me that something is not quite right about the conversion.
What am I missing in the conversion?
Log from PuTTy: https://pastebin.com/VLSPL0nC
ffmpeg
is ancient. Download or compile a new version. Then remove-strict experimental
(that's only needed for really old builds), add-movflags +faststart
, and try again. If it still fails add-profile:v main
.-profile:v main -level 3.1
and it worked. And I just saw that-strict experimental
was removed in 2015 or something!!-level
.