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">
|
9
|
19 <param name="input" type="data" format="avi,mpg,mp4" label="Select input video"/>
|
5
|
20 <param name="sbf" type="integer" value="1" label="Number of seconds between frames"/>
|
|
21 </when>
|
|
22 </conditional>
|
9
|
23 <param name="output_process_log" type="select" display="radio" label="Output process log?">
|
|
24 <option value="no" selected="true">No</option>
|
|
25 <option value="yes">Yes</option>
|
|
26 </param>
|
0
|
27 </inputs>
|
|
28 <outputs>
|
9
|
29 <collection name="output_from_video" type="list" label="${tool.name} (images) on ${on_string}">
|
5
|
30 <discover_datasets pattern="__name__" directory="output" format="jpg"/>
|
|
31 <filter>conversion_cond['conversion'] == 'video'</filter>
|
0
|
32 </collection>
|
9
|
33 <data name="output_log" format="txt" label="${tool.name} (process log) on ${on_string}">
|
|
34 <filter>output_process_log == 'yes'</filter>
|
|
35 </data>
|
0
|
36 </outputs>
|
|
37 <tests>
|
|
38 <test>
|
|
39 </test>
|
|
40 </tests>
|
|
41 <help>
|
|
42 **What it does**
|
|
43
|
5
|
44 Converts video files to images and image files to video files.
|
0
|
45
|
|
46 -----
|
|
47
|
|
48 **Options**
|
|
49
|
|
50 </help>
|
|
51 <citations>
|
|
52 </citations>
|
|
53 </tool>
|