-
Notifications
You must be signed in to change notification settings - Fork 58
Video decoding & encoding
It is possible to use Android software audio/video decoders & encoders, FFmpeg software audio/video decoders, FFmpeg H.264/H.265 hardware video decoders, or v4l2_codec2 H.264 hardware video decoder & encoder. Codec ranks are use to determine which decoder/encoder is used. Default rank for Android software video decoders & encoders is 512
and software audio decoders & encoders is 8
. Use a higher rank to prefer some other decoder.
With the following default settings Android software audio decoders & encoders are preferred over FFmpeg software audio decoders, FFmpeg software video decoders are preferred over Android software video decoders, FFmpeg H.265 hardware decoder is used, and v4l2_codec2 H.264 hardware video decoder & encoder is preferred over others.
Edit device/brcm/rpi4/vendor.prop and adjust values of following properties.
# FFmpeg
persist.ffmpeg_codec2.rank.audio=16
persist.ffmpeg_codec2.rank.video=256
persist.ffmpeg_codec2.v4l2.h264=false
persist.ffmpeg_codec2.v4l2.h265=true
# V4L2
persist.v4l2_codec2.rank.decoder=128
persist.v4l2_codec2.rank.encoder=128