react-media-recorder icon indicating copy to clipboard operation
react-media-recorder copied to clipboard

Audio recorded in mimeType audio/x-matroska despite specifying blobPropertyBag as audio/mpeg

Open mayurc137 opened this issue 2 years ago • 2 comments

Here is an example of the file generated using the media recorder-> https://botspace-inbox.s3.ap-south-1.amazonaws.com/assets/5f64256823133d00d13d7b19_1650675975443.mp3

On checking the metadata from -> https://exifmeta.com/ the results are as follows -> https://cln.sh/j6bBwz

The file mimeType is set to audio/x-matroska, I want the file mimeType to be audio/mpeg.

const { status, startRecording, stopRecording, mediaBlobUrl, } = useReactMediaRecorder({ audio: true, blobPropertyBag: { type: "audio/mpeg" } });

mayurc137 avatar Apr 23 '22 01:04 mayurc137

any update on this?

VishalSalunke avatar Jul 04 '22 08:07 VishalSalunke

Any update on this? Trying to set audio codec to AAC but neither mediaRecorderOptions nor options works.

<ReactMediaRecorder
               mediaRecorderOptions={{CODEC specified here}}
               options={{CODEC specified here}}
                video
                ...
                render={({
                ....}) => 
/>

It would be great to change the default audio codec from OPUS to other protocols.

mannyakosah avatar Oct 18 '22 18:10 mannyakosah