-
1Enabling Camera and hardware h264 encoding
From a 5.35 raspbian image for the orange pi one
sudo apt-get install libgd2-xpm-dev libjpeg-dev libpng-dev libva-dev libv4l-dev libpulse-dev libx264-dev libmp3lame-dev libfreetype6-dev -y git clone https://github.com/avafinger/ffmpeg_cedrus264_H3_Armbian_5.23.git sudo dpkg -i ./ffmpeg_cedrus264_H3_Armbian_5.23/ffmpeg-3.1.4_1.0-3.deb modprobe -r -v vfe_v4l2 modprobe -r -v gc2035 modprobe gc2035 modprobe vfe_v4l2 echo "gc2035" | sudo tee -a /etc/modules echo "vfe_v4l2" | sudo tee -a /etc/modules
now we can start playing with the webcam in a meaningful way
sudo ffmpeg-3.1.4 -f v4l2 -channel 0 -video_size 1920x1080 -i /dev/video0 -pix_fmt nv12 -r 22 -c:v cedrus264 night_video_test4_1920x1080.mp4
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.