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년 전398회 조회
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?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠