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?

demandé il y a 2 ans398 vues
1 réponse
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
répondu il y a 2 ans
  • 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?

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions