Skip to content

ph1ee/ffmpeg-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Cross Compiling FFmpeg for Raspberry Pi

Simply run ./build_ffmpeg.sh, then copy ffmpeg to your Pi.

All FFmpeg executables link external libraries statically.

You're ready to broadcasting your Pi if you have RPi camera.

raspivid -o - \ # pipe to stdout
-t 0 \ # don't stop
-w 1280 -h 720 \ # 1280x720
-fps 30 \ # 30 fps
-b 1000000 \ # 1000 Kbps
-g 30 \ # I-frame interval
-pf main \ # main profile
| \
ffmpeg -v info \
-ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero \
-f h264 -i - \
-vcodec copy -acodec aac -ab 128k -strict experimental \
-f flv "$RTMP_ENDPOINT"

About

FFmpeg on Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages