video.rst
changeset 1308 879d342c6e37
child 1309 0ea0a71c226d
equal deleted inserted replaced
1307:0bb716f32881 1308:879d342c6e37
       
     1 .. -*- coding: utf-8; -*-
       
     2 
       
     3 ========
       
     4  Video.
       
     5 ========
       
     6 
       
     7 Players for linux?
       
     8 ==================
       
     9 ::
       
    10 
       
    11   $ sudo apt-get install vlc
       
    12   $ sudo apt-get install mplayer
       
    13 
       
    14 Web camera.
       
    15 ===========
       
    16 
       
    17 To view image::
       
    18 
       
    19   $ mplayer tv://
       
    20   $ mplayer tv:// -tv driver=v4l2:width=640:height=480:fps=15:device=/dev/video0
       
    21   $ cheese
       
    22   $ camorama
       
    23 
       
    24 See:
       
    25 
       
    26   http://wiki.debian.org/Webcam
       
    27                 Debian wiki.
       
    28 
       
    29 How convert .3gp to .avi(mpeg)?
       
    30 ===============================
       
    31 ::
       
    32 
       
    33   $ sudo apt-get install ffmpeg
       
    34   $ ffmpeg -i test.3gp -f mpegvideo -ar 44100 -ac 1 -acodec mp3 test.mpg
       
    35   $ 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
       
    36   $ ffmpeg -i video-in.3gp -b 250 -s 160×120 -r 15 -f avi -an video-out.avi
       
    37   $ mencoder -oac mp3lame -ovc lavc -o video-out.avi -vf pp,2xsai,scale video-in.3gp
       
    38   $ mencoder -o video-in.avi -vf pp,2xsai,scale -ovc lavc video-out.3gp
       
    39   $ mencoder -o video-in.avi -vf rotate=2 -oac pcm -ovc divx4 video-out.3gp
       
    40 
       
    41 You need to compile FFmpeg with AMR support (--enable-amr_nb --enable-amr_wb).
       
    42 
       
    43 AMR WB FLOAT NOTICE ! Make sure you have downloaded TS26.204
       
    44 V5.1.0 from
       
    45 http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
       
    46 and extracted the source to libavcodec/amrwb_float
       
    47 
       
    48 
       
    49 AMR NB FLOAT NOTICE ! Make sure you have downloaded TS26.104
       
    50 REL-5 V5.1.0 from
       
    51 http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-5??.zip
       
    52 and extracted the source to libavcodec/amr_float
       
    53 and if u try this on an alpha, u may need to change Word32 to int in
       
    54 amr/typedef.h
       
    55 
       
    56 Video editor.
       
    57 =============
       
    58 
       
    59 Cinelerra.
       
    60 ----------
       
    61 
       
    62 Cinelerra is a prosumer non-linear video editing system. It is designed for the GNU/Linux operating
       
    63 system.
       
    64 
       
    65   http://cinelerra.org
       
    66                 Home page.
       
    67   http://ru.wikipedia.org/wiki/Cinelerra
       
    68                 Wikipedia page.
       
    69