| 201 | == Notes == |
| 202 | |
| 203 | The 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 | \\ |
| 205 | The preview image might be helpful and is necessary for the web page presentation. It shows the last frame of the simulation.\\ |
| 206 | \\ |
| 207 | For 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 | \\ |
| 209 | img2video 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 | |
| 213 | Example joblines for producing videos from images located in the folder “/localdata/dvrp/karman”, named “karman0000” to “karman3999” might look like this: |
| 214 | |
| 215 | 1. Standard settings for a mjpeg animation:\\{{{img2video -c mjpeg -i /localdata/dvrp/karman -n karman}}} |
| 216 | |
| 217 | 2. Settings for an animated gif with a speed-up of factor 2:\\{{{img2video -c gif -i /localdata/dvrp/karman -n karman -S 2}}} |
| 218 | |
| 219 | 3. 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 | |
| 221 | Example 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 | }}} |