-
Notifications
You must be signed in to change notification settings - Fork 3
Video configuration
##Install stuff
sudo apt-get install ivtv-utils gstreamer0.10-x gstreamer-tools gstreamer0.10-plugins-good
##GStreamer pipeline
Here's a gst pipeline which will both display video and save it to disk:
gst-launch v4l2src ! 'video/x-raw-yuv,width=720,height=480,framerate=30000/1001' ! \
tee name=t_vid ! queue ! videoflip method=horizontal-flip ! \
xvimagesink sync=false t_vid. ! queue ! \
videorate ! 'video/x-raw-yuv,framerate=30000/1001' ! deinterlace ! queue ! mux. \
alsasrc ! audio/x-raw-int,rate=48000,channels=2,depth=16 ! queue ! \
audioconvert ! queue ! mux. avimux name=mux ! \
filesink location=test.avi
##x264 in Ubuntu
sudo apt-get install build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev libtheora-dev libopencore-amrwb-dev libxvidcore-dev
git clone git://git.videolan.org/x264.git
cd x264
./configure
make
sudo make install
sudo checkinstall --pkgname=x264 --pkgversion "2:0.grep X264_BUILD x264.h -m1 | cut -d' ' -f3
.git rev-list HEAD | wc -l
+gitgit rev-list HEAD -n 1 | head -c 7
" --backup=no --default
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
make
sudo make install
sudo checkinstall --pkgname=ffmpeg --pkgversion "4:SVN-rsvn info | grep vision | awk '{ print $NF }'
" --backup=no --default hash x264 ffmpeg
##Todos:
- Fix audio (currently no audio devices are detected and trying to use alsasrc throws an error)
- Variable zoom speeds
- Figure out why video needs to be started before daemon
- I suspect this has something to do with AMQP