Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MP4 file missing all meta info #113

Open
aviramroi opened this issue Oct 19, 2022 · 6 comments
Open

MP4 file missing all meta info #113

aviramroi opened this issue Oct 19, 2022 · 6 comments

Comments

@aviramroi
Copy link

aviramroi commented Oct 19, 2022

Im downloading file from the blobUrl
and I missing some meta info
Screen Shot 2022-10-19 at 16 00 34
on the left the file downloaded using the media recorder, in the right some mp4 file.

usage:

  const handleStop = (blobUrl: any, blob: any) => {
    var a = window.document.createElement("a");
    a.href = blobUrl;
    a.download = "vide.mp4";
    document.body.appendChild(a);
    a.click();
    document.body.removeChild(a);
}


  const {
    status,
    startRecording,
    pauseRecording,
    resumeRecording,
    stopRecording,
    mediaBlobUrl,
    muteAudio,
    isAudioMuted,
  } = useReactMediaRecorder({
    blobPropertyBag: {
      type: "video/mp4",
    },
    audio: router.query.m === "true",
    video: false,
    screen: true,
    onStop: handleStop,
  });
@RNZ01
Copy link

RNZ01 commented Oct 25, 2022

+1
I can confirm this issue, somehow the mp4 file cannot be played on iPhone nor mac QuickTime,
Only VLC is able to play it.

@marviobezerra
Copy link

I faced that too. Safari is the only browser (at least that I know) that records using MP4 format, all other browsers (like Chrome) records using WebM format.

My solution was implementing a video converter on the serve for all videos not recorded by safari.

@veewoo
Copy link

veewoo commented Nov 3, 2023

Hello everyone, I've run into this issue too

@shomerj
Copy link

shomerj commented Mar 27, 2024

Hi everyone, I am running into the same issue. It seems like the encoder is not properly storing metadata. Attached is the output of ffprobe -i
Screenshot 2024-03-27 at 2 54 39 PM

@flexingCode
Copy link

same issue, the problem is that if i want to get the duration into the code i got Infinity by the missing metadata, you found some fix?

@codingforpleasure
Copy link

codingforpleasure commented Aug 19, 2024

Same issue here, I can't get neither frame size or duration of the video.
Hey all, any suggestions? Therefore I can't even start re-scaling the video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants