# HG changeset patch # User Oleksandr Gavenko # Date 1340826581 -10800 # Node ID 879d342c6e3745390ac937485f234e76cf761d54 # Parent 0bb716f3288122927b44a34f26e1563f13931fd3 Web camera. diff -r 0bb716f32881 -r 879d342c6e37 video.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/video.rst Wed Jun 27 22:49:41 2012 +0300 @@ -0,0 +1,69 @@ +.. -*- coding: utf-8; -*- + +======== + Video. +======== + +Players for linux? +================== +:: + + $ sudo apt-get install vlc + $ sudo apt-get install mplayer + +Web camera. +=========== + +To view image:: + + $ mplayer tv:// + $ mplayer tv:// -tv driver=v4l2:width=640:height=480:fps=15:device=/dev/video0 + $ cheese + $ camorama + +See: + + http://wiki.debian.org/Webcam + Debian wiki. + +How convert .3gp to .avi(mpeg)? +=============================== +:: + + $ sudo apt-get install ffmpeg + $ ffmpeg -i test.3gp -f mpegvideo -ar 44100 -ac 1 -acodec mp3 test.mpg + $ for i in `ls -1 *.3gp | cut -d. -f1`; do ffmpeg -y -i $i.3gp -sameq -f mpegvideo -s cif -r 25 -ar 32000 -ac 1 mpegs/$i.mpg; done + $ ffmpeg -i video-in.3gp -b 250 -s 160×120 -r 15 -f avi -an video-out.avi + $ mencoder -oac mp3lame -ovc lavc -o video-out.avi -vf pp,2xsai,scale video-in.3gp + $ mencoder -o video-in.avi -vf pp,2xsai,scale -ovc lavc video-out.3gp + $ mencoder -o video-in.avi -vf rotate=2 -oac pcm -ovc divx4 video-out.3gp + +You need to compile FFmpeg with AMR support (--enable-amr_nb --enable-amr_wb). + +AMR WB FLOAT NOTICE ! Make sure you have downloaded TS26.204 +V5.1.0 from +http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip +and extracted the source to libavcodec/amrwb_float + + +AMR NB FLOAT NOTICE ! Make sure you have downloaded TS26.104 +REL-5 V5.1.0 from +http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-5??.zip +and extracted the source to libavcodec/amr_float +and if u try this on an alpha, u may need to change Word32 to int in +amr/typedef.h + +Video editor. +============= + +Cinelerra. +---------- + +Cinelerra is a prosumer non-linear video editing system. It is designed for the GNU/Linux operating +system. + + http://cinelerra.org + Home page. + http://ru.wikipedia.org/wiki/Cinelerra + Wikipedia page. +