Changes between Version 3 and Version 4 of doc/app/img2video


Ignore:
Timestamp:
Oct 15, 2010 1:05:09 PM (15 years ago)
Author:
maronga
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/app/img2video

    v3 v4  
    14141. Prepare a folder with your input files. \\e.g. “/localdata/dvrp/video” containing the files “image0000.tiff”  to “image3999.tiff” in TIFF format (as used by the DVRP software).
    1515
    16 2. Run img2video with at least the -i and -n parameter from command line, \\e.g. “./img2video -i /localdata/dvrp/video -n image”. Other parameters can be used as follows:\\[[#a|-a..]] [[#c|-c..]] [[#C|-C..]] [[#f|-f..]] [[#h|-h]] [[#i|-i..]] [[#k|-k]] [[#n|-n..]] [[#o|-o..]] [[#r|-r]] [[#R|-R]] [[#s|-s..]] [[#S|-S..]] [[#t|-t..]] [[#w|-w]] [[#X|-X]] \\
     162. Run img2video with at least the -i and -n parameter from command line, \\e.g. “./img2video -i /localdata/dvrp/video -n image”. You can get a short list of all parameters from command line typing “img2video ?”.\\\\Full list of parameters with description:\\[[#a|-a..]] [[#c|-c..]] [[#C|-C..]] [[#f|-f..]] [[#h|-h]] [[#i|-i..]] [[#k|-k]] [[#n|-n..]] [[#o|-o..]] [[#r|-r]] [[#R|-R]] [[#s|-s..]] [[#S|-S..]] [[#t|-t..]] [[#w|-w]] [[#X|-X]] \\
    1717||='''Parameter Name'''  =||='''Default Value'''  =||='''Explanation'''  =||
    1818|----------------
     
    197197}}}
    198198
    199 You can get a short list of these parameters from command line typing “img2video ?”.
    200 
    2011993. When img2video is finished, check your output_path. If no error occurred, you will find your animation as well as a preview image.
    202200
     201== Notes ==
     202
     203The conversion of the original images (e.g. from TIFF) takes some time, especially when using animated gif. Thus, using the “-k” parameters should only be used with care, otherwise your JPEG files will be lost. Running img2video on the file system where your input files are located is the best choice. The output_path should be located on the same file system. This will speed up the conversion.\\
     204\\
     205The preview image might be helpful and is necessary for the web page presentation. It shows the last frame of the simulation.\\
     206\\
     207For the file conversion, the input files don't need to have file extensions (karman***** will work as good as karman*****.tiff), if the option "-t" was set properly.\\
     208\\
     209img2video uses cycle numbers if an video with the same filename already exists, e.g.  {{{cube_1acc_mpeg.avi -->  cube_1acc_mpeg_1.avi}}}.
     210
     211== Examples ==
     212
     213Example joblines for producing videos from images located in the folder “/localdata/dvrp/karman”, named “karman0000” to “karman3999”  might look like this:
     214
     2151. Standard settings for a mjpeg animation:\\{{{img2video -c mjpeg -i /localdata/dvrp/karman -n karman}}}
     216
     2172. Settings for an animated gif with a speed-up of factor 2:\\{{{img2video -c gif -i /localdata/dvrp/karman -n karman -S 2}}}
     218
     2193. Settings for an animated gif of a few EPS files (2 images per seconds displayed):\\{{{img2video -c gif -i /localdata/dvrp/karman -n karman -t "eps" -a 2}}}
     220
     221Example of the img2video shell interface\\{{{img2video -n "cube" -i /home/maronga/scripts/img2video/testfilm -c mpeg}}}\\\\
     222{{{
     223#--------------------------------------------------------------#
     224| img2video  Rev: 1 $            Fri Jul 23 18:02:34 CEST 2010 |
     225|                                                              |
     226| Initialization parameters                                    |
     227| Jobname:            cube                                     |
     228| Input path:         /home/maronga/scripts/img2video/testfilm |
     229| Output path:        /home/maronga/scripts/img2video/testfilm |
     230|                     /cube                                    |
     231| Video codec:        mpeg (msmpeg4v2)                         |
     232| Input file type:    tiff                                     |
     233| Video speed-up:     1                                        |
     234| fps:                25                                       |
     235| Scaling video to    1024px width                             |
     236| Watermark           disabled                                 |
     237| HQ-options:         disabled                                 |
     238|                                                              |
     239| Additional settings                                          |
     240| - Image files will be stored at the end.                     |
     241| - img2video will generate new images.                        |
     242|                                                              |
     243| Video will be saved as cube_1acc_mpeg.avi                    |
     244|                                                              |
     245#--------------------------------------------------------------#
     246 *** Creating directory: /home/maronga/scripts/img2video/testfilm/
     247     cube/images_jpg... done.
     248 *** Outdated images will be deleted in /home/maronga/scripts/img2video/
     249     testfilm/cube/images_jpg... done.
     250 *** Converting images... done.
     251 --> Converted 101 images.
     252 *** Encoding video... done.
     253 --> All actions finished. Video saved as /home/maronga/scripts/
     254     img2video/testfilm/cube/cube_1acc_mpeg.avi.
     255}}}