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.

ffmpeg.js plugin: record video+audio fails

See original GitHub issue

Description

So far If I want record video+audio, it seem need use the RecordRTC? If use other plugin such as “webm-wasm” it seem will only record video without sound. So I want to try use some converter, such as ffmpeg.js with RecordRTC? But seem not luck with many config I try. Do you mind provide a example for convert to mp4 (Video+Audio) with common codec such as h264?

Steps to reproduce

Some config I test

			convertOptions: ['-f', 'mp4', '-codec:a', 'aac', '-codec:v', 'libx264'],
			pluginLibraryOptions: {
				outputType: 'video/mpeg'
			},

Results

Expected

Convert success

Actual

Throw exception

Error output

uncaught exception: [object Object] ffmpeg-worker-mp4.js:17:59

Additional Information

It may be not a bug, may need a tips for demo how to use ffmpeg with videojs record with Video+Audio?

versions

videojs

4.0.0

browsers

Firefox 76.0.1

OSes

MacOS

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
thijstriemstracommented, May 25, 2020

I opened https://github.com/Kagami/ffmpeg.js/issues/111 for that unhandled error.

0reactions
thijstriemstracommented, Feb 5, 2021

yes follow the documentation, see development section.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to add audio using ffmpeg when recording video from ...
So I got the audio to work after a little bit of trial and error with ffmpeg. Not sure if this is the...
Read more >
Ffmpeg.js Audio/Video Encoding/Transcoding/Muxing
The audio-plus-canvas-recording.html demo does nothing for me when I press stop. Birendra Kumar • 7 years ago. Audio is not working using ...
Read more >
ffmpeg Documentation
As an output option, disables video recording i.e. automatic selection or mapping of any video stream. For full manual control see the -map...
Read more >
RecordRTC: WebRTC audio/video recording ® Muaz Khan
The biggest issue is that RecordRTC is unable to record both audio and video streams in single file. Do you know "RecordRTC" fails...
Read more >
Screenshots and Videos - Cypress Documentation
How Cypress captures screenshots of test failures automatically ... Video recording can be turned off entirely by setting video to false from within...
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