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 年前檢視次數 384 次
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?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南