Mercurial > repos > greg > ffmpeg
comparison ffmpeg.xml @ 5:6c1b7f249352 draft
Uploaded
| author | greg |
|---|---|
| date | Tue, 17 Oct 2017 14:07:44 -0400 |
| parents | af39d74b5595 |
| children | ebfec8e5e838 |
comparison
equal
deleted
inserted
replaced
| 4:af39d74b5595 | 5:6c1b7f249352 |
|---|---|
| 1 <tool id="ffmpeg" name="FFMPEG" version="3.2.4"> | 1 <tool id="ffmpeg" name="FFMPEG" version="3.2.4"> |
| 2 <description> video to image converter</description> | 2 <description> video / image converter</description> |
| 3 <requirements> | 3 <requirements> |
| 4 <requirement type="package" version="3.2.4">ffmpeg</requirement> | 4 <requirement type="package" version="3.2.4">ffmpeg</requirement> |
| 5 </requirements> | 5 </requirements> |
| 6 <command detect_errors="exit_code"><![CDATA[ | 6 <command detect_errors="exit_code"><![CDATA[ |
| 7 mkdir output && | 7 #if str($conversion_cond) == "video": |
| 8 ffmpeg -i '$input' -filter:v fps=fps=1/$sbf 2>/dev/null output/%05d.jpg | 8 mkdir output && |
| 9 ffmpeg -i '$input' -filter:v fps=fps=1/$sbf 2>/dev/null output/%05d.$ext | |
| 10 #else: | |
| 11 #end if | |
| 9 ]]></command> | 12 ]]></command> |
| 10 <inputs> | 13 <inputs> |
| 11 <param name="input" type="data" format="avi,mpg" label="Select input video" /> | 14 <conditional name="conversion_cond"> |
| 12 <param name="sbf" type="integer" value="1" label="Number of seconds between frames" /> | 15 <param name="conversion" type="select" label="Convert"> |
| 16 <option value="video" selected="true">video to images</option> | |
| 17 <option value="images">images to video</option> | |
| 18 </param> | |
| 19 <when value="video"> | |
| 20 <param name="input" type="data" format="avi,mpg" label="Select input video"/> | |
| 21 <param name="sbf" type="integer" value="1" label="Number of seconds between frames"/> | |
| 22 <param name="ext" type="select" label="Image format"> | |
| 23 <option value="jpg" selected="true">Jpg</option> | |
| 24 <option value="png">Png</option> | |
| 25 <option value="bmp">bmp</option> | |
| 26 </param> | |
| 27 </when> | |
| 28 </conditional> | |
| 13 </inputs> | 29 </inputs> |
| 14 <outputs> | 30 <outputs> |
| 15 <collection name="output" type="list"> | 31 <collection name="output_from_video" type="list"> |
| 16 <discover_datasets pattern="__name__" directory="output" format="jpg" /> | 32 <discover_datasets pattern="__name__" directory="output" format="jpg"/> |
| 33 <filter>conversion_cond['conversion'] == 'video'</filter> | |
| 34 <change_format> | |
| 35 <when input="conversion_cond.ext" value="png" format="png"/> | |
| 36 <when input="conversion_cond.ext" value="bmp" format="bmp"/> | |
| 37 </change_format> | |
| 17 </collection> | 38 </collection> |
| 18 </outputs> | 39 </outputs> |
| 19 <tests> | 40 <tests> |
| 20 <test> | 41 <test> |
| 21 </test> | 42 </test> |
| 22 </tests> | 43 </tests> |
| 23 <help> | 44 <help> |
| 24 **What it does** | 45 **What it does** |
| 25 | 46 |
| 26 Converts video files to images. | 47 Converts video files to images and image files to video files. |
| 27 | 48 |
| 28 ----- | 49 ----- |
| 29 | 50 |
| 30 **Options** | 51 **Options** |
| 31 | 52 |
