Null bitrate can cause UI display of source media to fail

Steps to reproduce

Possible a cause of MH-11224, and

Steps to reproduce:
1. Upload mediapackage with video track where bitrate is not returned from inspection

Actual Results:

Not possible to view Assets / Media / Source (everything is blank)

URLs like:


give 500 internal server error. Logs contain

error serializing the response, please check the server logs, response class:

Expected Results:

Media source details should be viewable in Admin UI.

Workaround (if any):


Stephen Marquard
February 25, 2017, 10:36 AM

May also be a general issue in the External API, e.g.:

  1. grep -r getBitRate /src/ | grep "v("
    matterhorn-external-api/src/main/java/org/opencastproject/external/endpoint/ trackInfo.add(f("bitrate", v(videoStream.getBitRate())));
    matterhorn-external-api/src/main/java/org/opencastproject/external/endpoint/ fields.add(f("bitrate", v(audioStream.getBitRate())));
    matterhorn-external-api/src/main/java/org/opencastproject/external/endpoint/ fields.add(f("bitrate", v(videoStream.getBitRate())));

Fixed and reviewed
Your pinned fields
Click on the next to a field label to start pinning.


Stephen Marquard


Stephen Marquard


Incorrectly Functioning Without Workaround