Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
4 presets for live streaming through Yi 4k
# All multiplicators are the same for example purpose
# Change them to suit your needs with
# https://gist.github.com/psolyca/722b9b9e32e6c66e29f9b4c5788ea50f to choose a base bitrate
# https://gist.github.com/psolyca/57a4025b0bba5216db728e1054c04a2d to choose bitrate multiplicators
# https://gist.github.com/psolyca/d83bd3594c94c6e3fd17d7ae636678ff to choose a resolution and the number associate
# Resolution depend on the choice between NTSC and PAL on the cam.
# Following resolutions are NTSC format.
# Only one base multiplicator for all presets
writel 0xA011B8E0 0x49927C00 # base of the bitrate 1.20 Mbps
# 1rst preset : 1920x1440 60P 4:3 NTSC
# Choose 1080p on your phone or by telnet `SendToRTOS rtmp 81`
# Change the 0x10 to set an other resolution
writeb 0xA011CF80 0x10 # 1920x1440 60P 4:3
# 1rst address is the one for live 1080p bitrate (not the resolution preset address)
# Change the resolution multiplicator to set other quality
writel 0xA06E50BC 0x4029999A # 2.65 - multiplicator high quality settings 3180
writel 0xA06E50CC 0x3FF33333 # 1.9 - multiplicator middle quality settings 2280
writel 0xA06E50DC 0x3FA66666 # 1.3 multiplicator low quality settings 1560
# 2nd preset 1280x720 60P 16:9
# Choose 720p on your phone or by telnet `SendToRTOS rtmp 80`
writeb 0xA011CFAC 0x23 # 1280x720 60P 16:9
# 1rst address is the one for live 720p bitrate (not the resolution preset address)
writel 0xA06E50FC 0x4029999A # 2.65 - multiplicator high quality settings 3180
writel 0xA06E510C 0x3FF33333 # 1.9 - multiplicator middle quality settings 2280
writel 0xA06E511C 0x3FA66666 # 1.3 multiplicator low quality settings 1560
# 3rd preset 1280x720 240P 16:9
# Choose 480p on your phone or by telnet `SendToRTOS rtmp 82`
writeb 0xA011CF54 0x48 # 1280x720 240P 16:9
# 1rst address is the one for live 480p bitrate (not the resolution preset address)
writel 0xA06E513C 0x4029999A # 2.65 - multiplicator high quality settings 3180
writel 0xA06E514C 0x3FF33333 # 1.9 - multiplicator middle quality settings 2280
writel 0xA06E515C 0x3FA66666 # 1.3 multiplicator low quality settings 1560
# 4th preset 848x480 60P 16:9 super
# Can be activated only by telnet `SendToRTOS rtmp 83`
writeb 0xA011CF28 0x29 # 848x480 60P 16:9 super
# 1rst address is the one for live 480p bitrate (not the resolution preset address)
writel 0xA06E517C 0x4029999A # 2.65 - multiplicator high quality settings 3180
writel 0xA06E518C 0x3FF33333 # 1.9 - multiplicator middle quality settings 2280
writel 0xA06E519C 0x3FA66666 # 1.3 multiplicator low quality settings 1560
@715209

This comment has been minimized.

Copy link

commented Nov 15, 2018

Awesome thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.