shogo4405 / HaishinKit.dart

Camera and Microphone streaming library via RTMP for Flutter.
https://pub.dev/packages/haishin_kit
BSD 3-Clause "New" or "Revised" License
31 stars 19 forks source link

Camera quality #59

Closed ting28418 closed 3 months ago

ting28418 commented 3 months ago

Describe the bug

Camera resolution was blur Screenshot_20240524_100423_com example flutter_application_3

To Reproduce

How to modify to get clear resolution

Expected behavior

Setting for video

`

RtmpStream stream = await RtmpStream.create(connection); stream.audioSettings = AudioSettings(bitrate: 64 1000); stream.videoSettings = VideoSettings(   width: 1920,   height: 1080,   bitrate: 2700 1000,    profileLevel: ProfileLevel.h264HighAutoLevel, ); stream.attachAudio(AudioSource()); stream.attachVideo(VideoSource(position: currentPosition));

`

Version

Flutter 3.19.0

Smartphone info.

Android Huawei

Additional context

No response

Screenshots

No response

Relevant log output

No response