'Videos created with FFMPEG do not play on IOS/Safari
I have a video file, and I wanted to do a few operations on the video file with ffmpeg, but I realized that after I input the video to ffmpeg, the output video doesn't work on IOS.
I noticed that this is the same when I don't give any settings to ffmpeg or some codecs.
Links to the videos:
Someone had a similar issue before, but the solution there is not working for me.
Note: Here are the ffmpeg settings of the processed video:
ffmpeg -i path/to/file.mp4 path/to/out.mp4
Note2: I noticed the original video is 15mb and the processed video is 5mb. Obviously, the quality of the video is going away. How can I keep the quality the same?
Solution 1:[1]
So I noticed this problem is not related with the FFMPEG.
While uploading something to the GCS, I was setting GZIP option to true. Sometimes the video uploaded with gzip: true cannot be played. (I couldn't find what it was about)
The problem was fixed when I did gzip: false while the video was uploading.
options = {
destination: key,
gzip: false,
public: true,
};
return await bucket.upload(localFilePath, options);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Murat Colyaran |
