Mercurial > repos > greg > ffmpeg
comparison ffmpeg.xml @ 8:ee77c85ef867 draft
Uploaded
| author | greg |
|---|---|
| date | Wed, 18 Oct 2017 08:07:37 -0400 |
| parents | 9c1d2cbf6661 |
| children | 03581ee71fb9 |
comparison
equal
deleted
inserted
replaced
| 7:9c1d2cbf6661 | 8:ee77c85ef867 |
|---|---|
| 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 #if str($conversion_cond.conversion) == "video": | 7 #if str($conversion_cond.conversion) == "video": |
| 8 mkdir output && | 8 mkdir output && |
| 9 ffmpeg -i '$input' -filter:v fps=fps=1/$sbf 2>/dev/null output/%05d.$ext | 9 ffmpeg -i '$conversion_cond.input' -filter:v fps=fps=1/$conversion_cond.sbf 2>/dev/null output/%05d.jpg |
| 10 #end if | 10 #end if |
| 11 ]]></command> | 11 ]]></command> |
| 12 <inputs> | 12 <inputs> |
| 13 <conditional name="conversion_cond"> | 13 <conditional name="conversion_cond"> |
| 14 <param name="conversion" type="select" label="Convert"> | 14 <param name="conversion" type="select" label="Convert"> |
| 16 <option value="images">images to video</option> | 16 <option value="images">images to video</option> |
| 17 </param> | 17 </param> |
| 18 <when value="video"> | 18 <when value="video"> |
| 19 <param name="input" type="data" format="avi,mpg" label="Select input video"/> | 19 <param name="input" type="data" format="avi,mpg" label="Select input video"/> |
| 20 <param name="sbf" type="integer" value="1" label="Number of seconds between frames"/> | 20 <param name="sbf" type="integer" value="1" label="Number of seconds between frames"/> |
| 21 <param name="ext" type="select" label="Image format"> | |
| 22 <option value="jpg" selected="true">Jpg</option> | |
| 23 <option value="png">Png</option> | |
| 24 <option value="bmp">bmp</option> | |
| 25 </param> | |
| 26 </when> | 21 </when> |
| 27 </conditional> | 22 </conditional> |
| 28 </inputs> | 23 </inputs> |
| 29 <outputs> | 24 <outputs> |
| 30 <collection name="output_from_video" type="list"> | 25 <collection name="output_from_video" type="list"> |
| 31 <discover_datasets pattern="__name__" directory="output" format="jpg"/> | 26 <discover_datasets pattern="__name__" directory="output" format="jpg"/> |
| 32 <filter>conversion_cond['conversion'] == 'video'</filter> | 27 <filter>conversion_cond['conversion'] == 'video'</filter> |
| 33 <change_format> | |
| 34 <when input="conversion_cond.ext" value="png" format="png"/> | |
| 35 <when input="conversion_cond.ext" value="bmp" format="bmp"/> | |
| 36 </change_format> | |
| 37 </collection> | 28 </collection> |
| 38 </outputs> | 29 </outputs> |
| 39 <tests> | 30 <tests> |
| 40 <test> | 31 <test> |
| 41 </test> | 32 </test> |
