Skip to content
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

M4A file being recorded as WAV pcm_s16le file #67

Open
meghead opened this issue Jul 27, 2021 · 0 comments
Open

M4A file being recorded as WAV pcm_s16le file #67

meghead opened this issue Jul 27, 2021 · 0 comments

Comments

@meghead
Copy link

meghead commented Jul 27, 2021

When trying to extract a section of audio using FFMPEG, I discovered that the .M4A file was actually being recorded as a WAV file. Here's what FFMPEG reports;

  Guessed Channel Layout for Input Stream #0.0 : mono
  Input #0, wav, from 'myaudio.m4a':
  Duration: 00:00:04.02, bitrate: 705 kb/s
  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s 

I'm guessing it's because I've boosted the sample rate up to 44K in order to achieve higher quality.

_recorder = FlutterAudioRecorder(customPath, audioFormat: AudioFormat.AAC, sampleRate: 44100);

Here's a discussion I've started at Stackoverflow with some useful comments;

https://stackoverflow.com/questions/68542728/flutter-audio-recorder-plugin-records-m4a-as-wav-file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant