-
Notifications
You must be signed in to change notification settings - Fork 213
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
Recorded file's duration is zero [m4a format, aacLc] #253
Comments
Same problem |
I'm having the same issue too... |
|
Still have a problem with zero record duration, record_android 1.04 |
This issue is very unclear to me. I don't reproduce any issue with the duration. I updated the example in the repository to show the audio duration before playing it. If other participants have more or other info to share, it is time before I close this. |
I agree that we should rely on streams to get duration. But, |
When compile and build your example I've got duration 00:00:00.023 on Android real device in any way. Flutter (Channel stable, 3.16.5, on macOS 13.6.1 22G313 darwin-x64) Problem only with codecs aacLc, aacEld, aacHe Plugin output: I/MediaCodec(11566): Codec shutdown complete |
I have the same issue. |
@llfbandit This is a major issue as it's linked to the default settings of the RecordConfig(). Android files are corrupted and unreadable from the backend. |
I can't reproduce this issue with the two devices I own. Here's what I get when using default settings.
Can someone send me audio files for comparison? |
The Android file get recognized as a Video file. Perhaps that's why it's unreadable with an audio decoder Try using the android Emulator to reproduce the issue. |
Please, send me the files. |
To whomever is using this package and |
@llfbandit I have an example file here:
|
Could someone test with current code of |
I still have this problem in record: ^5.1.0. How did you solve it? |
Hi everyone, Is there any garantee for the 5.1.1 Because of the recording our app main feature, I cannot get risk to update package version. |
@Shawn-sudo , @shichunlei , @llfbandit and @blok5025 can you share how is going on last version of the record package 5.1.2 ? |
hi @arreshashikant , How did you solve the problem. Can you update package to latest version without problem ? |
Package version
record: ^5.0.1
Environment
Describe the bug
Recording works fine. But, when we try to get the duration of recorded file (either through ffmpeg or audioplayers plugin), it returns Zero Duration.
RecordConfig - Default
To Reproduce
Steps to reproduce the behavior:
Sample repository -
https://github.com/arreshashikant/buggy_repo/tree/recordDurationZero
branch -
recordDurationZero
Expected behavior
Return valid duration of the recorded file
Additional context
The recorded bytes returns valid duration if we start recording with
startStream
The text was updated successfully, but these errors were encountered: