mirror of
https://github.com/pion/mediadevices.git
synced 2025-10-05 08:36:55 +08:00

* Added the set bitrate function for openh264 * add examples * Format --------- Co-authored-by: Jingyang Kang <3drxkjy@gmail.com>
Instructions
Install required codecs
In this example, we'll be using openh264 as our video codec. Therefore, we need to make sure that these codecs are installed within our system.
Installation steps:
Download archive examplee
git clone https://github.com/pion/mediadevices.git
Run openh264 example
Run cd mediadevices/examples/openh264 && go build && ./openh264 recorded.h264
set bitrate ,first press Ctrl+c
or send a SIGINT signal.
To stop recording,second press Ctrl+c
or send a SIGINT signal.