Mp3 To Wav Migrate QA CLI List Test
Created: 2012-11-05 11:43:51
Last updated: 2012-11-13 10:54:26
Migrates Mp3 files from input List to Wav files and performs QA. The QA steps include File Format Validation, Significant Property Comparison and migrationQA file content comparison (all CLI). As this is a Test workflow, the (very large) Wav files are deleted, and only the QA results and log files are saved for analysis.
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 |
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
|
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
|
Outputs (1)
Name |
Description |
Mp3_to_Wav_Migrate_Validate_Compare_Write_deleteSuccessfull_STDOUT |
|
Datalinks (7)
Source |
Sink |
Input_file_to_mp3_file_list:split |
Mp3_to_Wav_Migrate_Validate_Compare:input_mp3 |
outputdir |
Mp3_to_Wav_Migrate_Validate_Compare:output_dir |
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 1 (earliest)
(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