-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Duration audio Infinity #274
Comments
Did you record using the MediaStreamRecorder? 10 seconds: |
I want to capture in mp3 format to upload it to firebase but I get error in infinite audio |
@gdurga can you provide a part of code how you get duration? |
@vladpoltorin Sure! Here is the code
Then convert the file using ffmpeg to fix the infinite audio duration The resulting file are pretty much the same file size of the original and it has a defined duration |
Also, when I try to record video with MediaStreamRecorder or MultiStreamRecorder I get infinity duration. StereoAudioRecorder works fine, giving the duration of the audio recording and WhammyRecorder results in a valid duration also. @gdurga |
Hi @nikosgi, unfortunately the only way I found to get the duration using the MediaStreamRecorder is using ffmpeg to convert the file after the record :/ |
Here is a very basic example with Django -> https://github.com/gdurga/Django-RecordRTC-example |
Someone mentioned this as well, however I didn't try it myself yet:
Can someone make it work without |
When I record the screen using throw the recordRTC but video length is infinite. Could you please tell me what should I do? |
Did anyone get a solution? |
I have integrated below solution. (It's working fine in desktop Chrome Version 100.0.4896.75 (Official Build) (64-bit)) In order to get the duration inside recorded file we have to add ts-ebml dependency. By integrating above solution it's fixed my recording duration issue but still need to test in other OS and browsers. |
I did some test in android and IOS latest version by today date (14/04/2022). It's working fine. |
can this be used for audio recording as well? |
This works for me!
|
In the following function I send the URL, my problem is that the audio.duration gives me Infinity.
The text was updated successfully, but these errors were encountered: