VideoRecorder.wiki
changeset 687 fe70504acfc2
parent 252 4c9881425131
child 763 d500b178f871
equal deleted inserted replaced
686:9971f0387cd3 687:fe70504acfc2
     1 #summary How to compile/use video recorder
     1 #summary How to use video recorder
     2 
       
     3 = How to compile? =
       
     4 
       
     5 Source is available at http://code.google.com/r/stepik-777-videorec/source/checkout
       
     6 
       
     7 To compile it you will need the following libraries:
       
     8 
       
     9  # libavcodec, libavformat, libavutil.
       
    10  # freeglut or glut.
       
    11 
       
    12 *For Linux* the following command should be enough:
       
    13 
       
    14  _apt-get install libavcodec-dev libavformat-dev libavutil-dev freeglut3-dev_
       
    15 
       
    16 *For Windows*:
       
    17 
       
    18 1. ffmpeg/libav
       
    19 
       
    20  ffmpeg download page (http://ffmpeg.org/download.html) recommends to download wibdows binaries from http://ffmpeg.zeranoe.com/builds/
       
    21 
       
    22  You will need shared and dev builds.
       
    23 
       
    24  Put *avcodec-54.dll*, *avformat-54.dll* and *avutil-51.dll* from shared build to your hedgewars bin directory.
       
    25 
       
    26  Put *libavcodec.dll.a*, *libavformat.dll.a*, *libavutil.dll.a* from dev build to _<your local clone>\misc\winutils\lib_ 
       
    27 
       
    28  Put include directories (only *libavcodec*, *libavformat* and *libavutil*) from dev build to _<your local clone>\misc\winutils\include_
       
    29 
       
    30  You can also try libav (http://www.libav.org/download.html) instead of ffmpeg, it should work, but their windows binaries are unreasonably large.
       
    31 
       
    32 2. glut
       
    33 
       
    34  This page (http://wiki.freepascal.org/OpenGL_Tutorial) suggests to download glut from here: http://user.xmission.com/~nate/glut.html
       
    35 
       
    36  Just put *glut32.dll* from *glut-3.7.6-bin.zip* to your hedgewars bin directory.
       
    37 
     2 
    38 = How to use it? =
     3 = How to use it? =
    39 
     4 
    40 Options can be set in special page, you can access it using button left to 'game settings' button. Currently, it contains only options, but later it will also contain list of recorded videos. To record video you must press ‘R’ during playing a game or watching a demo; then press ‘R’ again to stop recording. Recorded videos are saved to _<user data path>/Videos_ (_~/.hedgewars/Videos_ or _C:\Documents and settings\<user name>\Hedgewars\Videos_). Note that video encoding is not real-time; actually, it will occur after you have closed game engine; it takes some time so you must not close frontend after you have closed game engine or you may get damaged video files.
     5 Options can be set in special page, you can access it using button left to 'game settings' button. Currently, it contains only options, but later it will also contain list of recorded videos. To record video you must press ‘R’ during playing a game or watching a demo; then press ‘R’ again to stop recording. Recorded videos are saved to _<user data path>/Videos_ (_~/.hedgewars/Videos_ or _C:\Documents and settings\<user name>\Hedgewars\Videos_). Note that video encoding is not real-time; actually, it will occur after you have closed game engine; it takes some time so you must not close frontend after you have closed game engine or you may get damaged video files.
    41 
     6