question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Description

  • I have my mimes set to:
                audioMimeType: 'audio/wav',
                videoMimeType: 'video/webm;codes=H264',

however when i ffprobe the downloaded file i still see screen shot 2019-01-19 at 3 48 55 pm .opus audio, do i need wavesurfer in order to change the audio codec?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
thijstriemstracommented, Jan 20, 2019

I think this is the issue: https://github.com/muaz-khan/RecordRTC/blob/5.5.2/dev/MRecordRTC.js#L164 Also see https://github.com/muaz-khan/RecordRTC/issues/64

Prevents this from working:

var options = {
    controls: true,
    width: 320,
    height: 240,
    fluid: false,
    plugins: {
        record: {
            audio: true,
            video: true,
            audioMimeType: 'audio/wav',
            audioRecorderType: StereoAudioRecorder,
            videoMimeType: 'video/webm;codes=H264',
            maxLength: 10,
            debug: true
        }
    }
};

Same with Mrecordrtc standalone:

        var mRecordRTC = new MRecordRTC();
        mRecordRTC.mediaType = {
            audio: StereoAudioRecorder, // or StereoAudioRecorder or MediaStreamRecorder
            video: MediaStreamRecorder  // or WhammyRecorder      or MediaStreamRecorder
        };
        mRecordRTC.mimeType = {
            audio: 'audio/wav',
            video: 'video/webm',
            gif:   'image/gif'
        };

Should a new recordrtc.js ticket be opened @muaz-khan ?

0reactions
jacobzlogarcommented, Jan 20, 2019

No problem, thanks for the info @thijstriemstra

Read more comments on GitHub >

github_iconTop Results From Across the Web

The "codecs" parameter in common media types
The MIME type for a container format is expressed by stating the type of media ( audio , video , etc.), then a...
Read more >
Media MIME Support - GitHub Pages
You can check General MIME Types, General track codecs, Audio codecs and Video codecs, in particular all AVC profiles, AV1 profiles or other...
Read more >
Audio File MIME Types - ThoughtCo
A list of the common sound files and their MIME types for use in embedding sound in Web pages.
Read more >
MIME Type Mapping - Dialogic
You can re-define any audio MIME type without having to define a new MIME type. For each MIME type, you can set rate...
Read more >
RFC 2586 - The Audio/L16 MIME content type - IETF Datatracker
The Audio/L16 MIME content type (RFC 2586, May 1999. ... Introduction This document defines the audio/L16 MIME type, a reasonable quality audio format...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found