MediaConvert cannot handle input video recorded in Safari Media Recorder

1

We noticed an issue with MediaConvert when we provide an input file that comes from Safari Media Recorder API (https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder). Apparently Safari records these as a "fragmented mp4" (mp4 file with multiple moov/moof/mdat markers).

MediaConvert doesn't fail, but the output video it produces is very jerky/stuttery and it seems to be incorrectly interpreting the source frame rate, and duplicating frames to provide a jerky output video.

If we run the problem input file through a local FFMPEG stream copy command first:

ffmpeg -i safari_recorded_file.mp4 -c copy stream_copy.mp4

and then supply the stream_copy.mp4 file as the input to MediaConvert, it does work as expected.

However, this extra step of having to run ffmpeg on a local machine is not desirable, since we're trying to use MediaConvert for this!

Has anyone run into this, or have a better workaround? Thanks.

  • @boast-kevin, can you indicate if the Safari Media Recorder was producing variable frame rates (VFR) or constant frame rates (CFR)? Certain configurations of VFR may cause the issues you are experiencing. Would you be able to provide the version of the OS and the Safari Recorder? Also, are you able to provide an example file that has this issue?

已提问 2 年前402 查看次数
1 回答
0

Reposting this answer. @boast-kevin, can you indicate if the Safari Media Recorder was producing variable frame rates (VFR) or constant frame rates (CFR)? Certain configurations of VFR may cause the issues you are experiencing. Would you be able to provide the version of the OS and the Safari Recorder? Also, are you able to provide an example file that has this issue?

AWS
Mike-ME
已回答 2 年前
  • Mike, I was using Mac OS 12.1 and Safari 15.2 for the MediaRecorder. I can provide an example file, what's the best way to share the file here?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则