1

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:

Original

Processed

Someone had a similar issue before, but the solution there is not working for me.

Answer

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?

Murat Colyaran
  • 2,075
  • 2
  • 8
  • 27
  • 3
    The processed file works for me in iOS Safari. Because you omitted `-movflags +faststart` you have to wait for it to completely download before it plays. – llogan Oct 21 '21 at 16:58
  • I solved the problem and the source of the problem was not related to ffmpeg. I was uploading files to Google Cloud Storage and always tested from there. When uploading the file there, I was using the `gzip: true` setting. It wasn't working on IOS/Safari because of gzipping. Thanks for your attention and help! – Murat Colyaran Oct 21 '21 at 20:05

1 Answers1

0

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);
Murat Colyaran
  • 2,075
  • 2
  • 8
  • 27