quang minh
unread,4:52 AM (12 hours ago) 4:52 AMSign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to discuss-webrtc
Recording WebRTC stream using MediaRecorder fails on Android devices.
The recorder cannot start because encoder configuration fails.
Log output:
W/VideoFileRenderer: Failed to configure encoder for config: 426x240, bitrate: 1000000, profile: 8, error: Error 0x80001001
E/VideoFileRenderer: Failed to configure and start encoder with any supported configuration.
E/VideoFileRenderer: drawer is null — skipping frame render
As a result:
Recording does not start
No output video file is generated
Save to gallery fails because there is no recorded file
To Reproduce
final MediaRecorder _streamRecorder =
MediaRecorder(albumName: 'Vivoo');
await _streamRecorder.start(
filePath,
videoTrack: videoTracks.first,
audioChannel: RecorderAudioChannel.OUTPUT,
);
Steps:
Connect to WebRTC stream
Start recording using MediaRecorder
Android encoder configuration fails
Recording never starts
Expected behavior
Recording should successfully start and generate mp4 output file on Android devices.
Additional notes
The issue seems related to Android MediaCodec encoder configuration:
resolution: 426x240
bitrate: 1000000
profile: 8
Possibly unsupported encoder profile/configuration on some Android devices.
Platform information
Flutter version: 3.27.4
Plugin version: flutter_webrtc 1.4.0
OS: Android