sox analyze failure on silent audio

Steps to reproduce

Steps to reproduce:
1. Ingest a mediapackage with a completely empty (silent) flac audio file
2. Include a sox analyze step in the workflow

Actual Results:

workflow operation fails with uncaught exception:

Caused by: org.opencastproject.sox.api.SoxException:
java.lang.NumberFormatException: For input string: "-inf"

Expected Results:

Operation should detect this and handle gracefully.

Workaround (if any):

Don't process videos with empty audio if using sox analyze / normalize operations.

Activity

Show:
Stephen Marquard
March 7, 2017, 7:57 PM

$ sox silent.flac -n remix - stats
DC offset 0.000000
Min level 0.000000
Max level 0.000000
Pk lev dB -inf
RMS lev dB -inf
RMS Pk dB -inf
RMS Tr dB -inf
Crest factor 1.00
Flat factor 106.87
Pk count 441k
Bit-depth 0/0
Num samples 220k
Length s 5.000
Scale max 1.000000
Window s 0.050

Assignee

Unassigned

Reporter

Stephen Marquard

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

None

Components

Affects versions

Priority

Minor
Configure