-
Notifications
You must be signed in to change notification settings - Fork 2
Streaming video from android using ffmpeg
rngadam edited this page Apr 25, 2011
·
8 revisions
The Haipad uses a ov7670 sensor from which we want to capture video and stream to elsewhere
install Code Sourcery and Cygwin, use the following to build:
export CYGPATH=cygpath # [[https://support.codesourcery.com/GNUToolchain/kbentry46]]
Checkout and configure
git clone git://git.videolan.org/ffmpeg.git ffmpeg
cd ffmpeg
./configure --arch=arm --cross-prefix=/cygdrive/c/sourcery/bin/arm-none-linux-gnueabi- --extra-ldflags=-static --target -os=linux --enable-cross-compile
make -j4
on device:
mkdir /data/ffmpeg
push:
adb push ffserver /data/ffmpeg
set permissions
chmod 777 /data/ffmpeg/ffserver
running:
cd /data/ffmpeg
./ffmpeg -f video4linux2 -i /dev/video0 -f avi -vcodec mjmpeg tvffmpeg.avi
./ffmpeg -f video4linux2 -s 640x480 -i /dev/video0 webcam.mpg
./ffmpeg -f video4linux -s 640x480 -i /dev/video0 webcam.mpg
./ffmpeg -f video4linux2 -r 30 -s 640x480 -i /dev/video0 webcam.mpg
./ffmpeg -f video4linux2 -r 30 -s 640x480 -i /dev/video0 -f mp4 -y webcam.mp4