Mp3 To Wav Migrate QA CLI List Test
Created: 2012-11-05 11:43:51
Last updated: 2012-11-13 10:54:26
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Bolette A. Jurik, Statsbiblioteket |
Titles (1)
Descriptions (0)
Dependencies (0)
Inputs (2)
Name |
Description |
mp3_list |
Fileurl as Value with list of MP3 input files
|
outputdir |
|
Processors (5)
Name |
Type |
Description |
Mp3_to_Wav_Migrate_Validate_Compare |
workflow |
|
Input_file_to_mp3_file_list |
localworker |
ScriptList split = new ArrayList();
if (!string.equals("")) {
String regexString = ",";
if (regex != void) {
regexString = regex;
}
String[] result = string.split(regexString);
for (int i = 0; i < result.length; i++) {
split.add(result[i]);
}
}
|
regex_value |
stringconstant |
Value\n |
Read_Text_File |
localworker |
ScriptBufferedReader getReader (String fileUrl, String encoding) throws IOException {
InputStreamReader reader;
try {
if (encoding == null) {
reader = new FileReader(fileUrl);
} else {
reader = new InputStreamReader(new FileInputStream(fileUrl),encoding);
}
}
catch (FileNotFoundException e) {
// try a real URL instead
URL url = new URL(fileUrl);
if (encoding == null) {
reader = new InputStreamReader (url.openStream());
} else {
reader = new InputStreamReader (url.openStream(), encoding);
}
}
return new BufferedReader(reader);
}
StringBuffer sb = new StringBuffer(4000);
if (encoding == void) {
encoding = null;
}
BufferedReader in = getReader(fileurl, encoding);
String str;
String lineEnding = System.getProperty("line.separator");
while ((str = in.readLine()) != null) {
sb.append(str);
sb.append(lineEnding);
}
in.close();
filecontents = sb.toString();
|
encoding_value |
stringconstant |
Valueutf8 |
Beanshells (14)
Name |
Description |
Inputs |
Outputs |
ExtractFromFFprobe |
|
ffprobe_output
|
duration
hz
channels
bitsPerSample
bitrate
|
ExtractFromFFprobe_2 |
|
ffprobe_output
|
duration
hz
channels
bitsPerSample
bitrate
|
compareBitsPerSample |
|
first
second
|
equals
|
compareHz |
|
first
second
|
equals
|
compareDuration |
|
first
second
maxDiff
|
similar
firstLong
secondLong
|
compareChannels |
|
first
second
|
equals
|
and |
|
inputvaerdier
|
and
|
BeanshellIfElse |
|
nodelist
|
trueOut
falseOut
|
BeanshellCopy |
|
run
filename
|
fileout
|
MPG321WavOutputFileName |
|
mp3
dir
|
wav
|
waiter |
|
wait
passThru
|
passed
|
waiter_2 |
|
wait
passThru
|
passed
|
waiter_3 |
|
wait
passThru
|
passed
|
Beanshell |
|
wait
passThru
|
passed
|
Outputs (1)
Name |
Description |
Mp3_to_Wav_Migrate_Validate_Compare_Write_deleteSuccessfull_STDOUT |
|
Datalinks (6)
Source |
Sink |
Input_file_to_mp3_file_list:split |
Mp3_to_Wav_Migrate_Validate_Compare:input_mp3 |
regex_value:value |
Input_file_to_mp3_file_list:regex |
Read_Text_File:filecontents |
Input_file_to_mp3_file_list:string |
mp3_list |
Read_Text_File:fileurl |
encoding_value:value |
Read_Text_File:encoding |
Mp3_to_Wav_Migrate_Validate_Compare:Write_deleteSuccessfull_STDOUT |
Mp3_to_Wav_Migrate_Validate_Compare_Write_deleteSuccessfull_STDOUT |
Uploader
License
All versions of this Workflow are
licensed under:
Version 2
(of 4)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (1)
Featured In Packs (0)
None
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment