MediaRecorder not respecting audioBitsPerSecond
Reported by
petros.r...@gmail.com,
Jun 25 2017
|
|||||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Steps to reproduce the problem:
1. Set const options = {
audioBitsPerSecond : 16000,
mimeType : "audio/webm;codecs=opus"
}
mediaRecorder = new MediaRecorder(str,options);
2. Save blob to file
3. validate encoded bitrate for opus
What is the expected behavior?
Expected to return 16000 encoded opus audio
What went wrong?
Instead seems to return:
avprobe ~/Downloads/audio.mp3
ffprobe version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2007-2017 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, matroska,webm, from '/home/prizos/Downloads/audio.mp3':
Metadata:
encoder : Chrome
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0(eng): Audio: opus, 48000 Hz, mono, fltp (default)
Did this work before? No
Does this work in other browsers? N/A
Chrome version: 58.0.3029.110 Channel: stable
OS Version: ubuntu 16.04
Flash Version:
MediaRecorder.MediaRecorder constructor seems to be generating 48k streams regardless of constructor parameters in audio/webm;codecs=opus for example using audioBitsPerSecond=16000 seems to be respected, and setting out of bounds bitrates even seems to be correctly caught and set to minimum or maximum bitrates, however all bitstreams when tested with avprobe report 48k from the blob.
Am I missing something ?
,
Jun 29 2017
,
Jul 4 2017
As it is Media Recorder bit rates related issue,could some one from dev team please look into this issue.Hence marking as 'TE-NeedsTriageHelp' for further investigation. Thanks in advance..!!
,
Sep 11 2017
Is the problem that you requested "audioBitsPerSecond : 16000", but you're getting a recording at 48000Hz? Note that "bits per second" and "sample rate" are not at all the same thing. I'm not sure that 16000 is a reasonable value for bits per second. People typically use >=128kBps, but sample rate is rarely higher than 48kHz.
,
Oct 18 2017
,
Oct 31 2017
no response from bug opener. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by petros.r...@gmail.com
, Jun 25 2017