0
|
1 <tool id="ffmpeg" name="FFMPEG" version="3.2.4">
|
5
|
2 <description> video / image converter</description>
|
0
|
3 <requirements>
|
|
4 <requirement type="package" version="3.2.4">ffmpeg</requirement>
|
|
5 </requirements>
|
|
6 <command detect_errors="exit_code"><![CDATA[
|
7
|
7 #if str($conversion_cond.conversion) == "video":
|
5
|
8 mkdir output &&
|
8
|
9 ffmpeg -i '$conversion_cond.input' -filter:v fps=fps=1/$conversion_cond.sbf 2>/dev/null output/%05d.jpg
|
5
|
10 #end if
|
0
|
11 ]]></command>
|
|
12 <inputs>
|
5
|
13 <conditional name="conversion_cond">
|
|
14 <param name="conversion" type="select" label="Convert">
|
|
15 <option value="video" selected="true">video to images</option>
|
|
16 <option value="images">images to video</option>
|
|
17 </param>
|
|
18 <when value="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"/>
|
|
21 </when>
|
|
22 </conditional>
|
0
|
23 </inputs>
|
|
24 <outputs>
|
5
|
25 <collection name="output_from_video" type="list">
|
|
26 <discover_datasets pattern="__name__" directory="output" format="jpg"/>
|
|
27 <filter>conversion_cond['conversion'] == 'video'</filter>
|
0
|
28 </collection>
|
|
29 </outputs>
|
|
30 <tests>
|
|
31 <test>
|
|
32 </test>
|
|
33 </tests>
|
|
34 <help>
|
|
35 **What it does**
|
|
36
|
5
|
37 Converts video files to images and image files to video files.
|
0
|
38
|
|
39 -----
|
|
40
|
|
41 **Options**
|
|
42
|
|
43 </help>
|
|
44 <citations>
|
|
45 </citations>
|
|
46 </tool>
|