Hi all,
it seems like we can no longer upload Camtasia/*trec files with Opencast 10. The workflow always fails at the "inspect" step with the folowing error message (I censored the URL and Path):
2022-01-11T14:19:21,139 | ERROR | (MediaInspector:392) - parsing mimeType failed for /XXX/mediapackage/1a989d01-d6ea-4839-bcc1-f4f990c8c8fd/79cb262c-bbb6-4ebe-b069-a2488b506b33/c762e37f_febe_4fa7_a38e_824f687a9b1e.trec : File suffix 'trec' cannot be matched to any mime type
2022-01-11T14:19:21,139 | WARN | (MediaInspector:298) - Error enriching track
https://XXX/files/mediapackage/1a989d01-d6ea-4839-bcc1-f4f990c8c8fd/79cb262c-bbb6-4ebe-b069-a2488b506b33/c762e37f_febe_4fa7_a38e_824f687a9b1e.trecorg.opencastproject.inspection.api.MediaInspectionException: org.opencastproject.inspection.ffmpeg.api.MediaAnalyzerException: parsing mimetype failed for file /XXX/mediapackage/1a989d01-d6ea-4839-bcc1-f4f990c8c8fd/79cb262c-bbb6-4ebe-b069-a2488b506b33/c762e37f_febe_4fa7_a38e_824f687a9b1e.trec
at org.opencastproject.inspection.ffmpeg.MediaInspector.getFileMetadata(MediaInspector.java:406) ~[!/:?]
at org.opencastproject.inspection.ffmpeg.MediaInspector.enrichTrack(MediaInspector.java:227) [!/:?]
at org.opencastproject.inspection.ffmpeg.MediaInspector.enrich(MediaInspector.java:187) [!/:?]
at org.opencastproject.inspection.ffmpeg.MediaInspectionServiceImpl.process(MediaInspectionServiceImpl.java:157) [!/:?]
at org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:313) [!/:?]
at org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:272) [!/:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: org.opencastproject.inspection.ffmpeg.api.MediaAnalyzerException: parsing mimetype failed for file/XXX/mediapackage/1a989d01-d6ea-4839-bcc1-f4f990c8c8fd/79cb262c-bbb6-4ebe-b069-a2488b506b33/c762e37f_febe_4fa7_a38e_824f687a9b1e.trec
at org.opencastproject.inspection.ffmpeg.MediaInspector.getFileMetadata(MediaInspector.java:393) ~[!/:?]
... 9 more
2022-01-11T14:19:21,155 | INFO | (ServiceRegistryJpaImpl:2523) - State set to WARNING for current service org.opencastproject.inspection on host
http://work01-sta.oc.hft-stuttgart.de:80802022-01-11T14:19:21,174 | ERROR | (AbstractJobProducer$JobRunner:343) - Error handling operation 'Enrich':
org.opencastproject.serviceregistry.api.ServiceRegistryException: Error handling operation 'Enrich'
at org.opencastproject.inspection.ffmpeg.MediaInspectionServiceImpl.process(MediaInspectionServiceImpl.java:168) ~[?:?]
at org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:313) [!/:?]
at org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:272) [!/:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: org.opencastproject.inspection.api.MediaInspectionException: org.opencastproject.inspection.ffmpeg.api.MediaAnalyzerException: parsing mimetype failed for file/XXX/mediapackage/1a989d01-d6ea-4839-bcc1-f4f990c8c8fd/79cb262c-bbb6-4ebe-b069-a2488b506b33/c762e37f_febe_4fa7_a38e_824f687a9b1e.trec
at org.opencastproject.inspection.ffmpeg.MediaInspector.getFileMetadata(MediaInspector.java:406) ~[?:?]
at org.opencastproject.inspection.ffmpeg.MediaInspector.enrichTrack(MediaInspector.java:227) ~[?:?]
at org.opencastproject.inspection.ffmpeg.MediaInspector.enrich(MediaInspector.java:187) ~[?:?]
at org.opencastproject.inspection.ffmpeg.MediaInspectionServiceImpl.process(MediaInspectionServiceImpl.java:157) ~[?:?]
... 6 more
Caused by: org.opencastproject.inspection.ffmpeg.api.MediaAnalyzerException: parsing mimetype failed for file/XXX/mediapackage/1a989d01-d6ea-4839-bcc1-f4f990c8c8fd/79cb262c-bbb6-4ebe-b069-a2488b506b33/c762e37f_febe_4fa7_a38e_824f687a9b1e.trec
at org.opencastproject.inspection.ffmpeg.MediaInspector.getFileMetadata(MediaInspector.java:393) ~[?:?]
at org.opencastproject.inspection.ffmpeg.MediaInspector.enrichTrack(MediaInspector.java:227) ~[?:?]
at org.opencastproject.inspection.ffmpeg.MediaInspector.enrich(MediaInspector.java:187) ~[?:?]
at org.opencastproject.inspection.ffmpeg.MediaInspectionServiceImpl.process(MediaInspectionServiceImpl.java:157) ~[?:?]
... 6 more
The same happens both on our server and the test instance at
https://stable.opencast.org ffmpeg doesn't seem to be the problem, at least using ffprobe everything looks good:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'c762e37f-febe-4fa7-a38e-824f687a9b1e.trec':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
creation_time : 2021-10-19T12:27:19.000000Z
Duration: 00:43:43.44, start: 0.000000, bitrate: 924 kb/s
Stream #0:0(und): Video: tscc2 (tsc2 / 0x32637374), yuv444p, 2560x1440, 412 kb/s, 6.12 fps, 30 tbr, 30 tbn, 30 tbc (default)
Metadata:
creation_time : 2021-10-19T12:27:19.000000Z
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 253 kb/s (default)
Metadata:
creation_time : 2021-10-19T12:27:19.000000Z
Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 253 kb/s (default)
Metadata:
creation_time : 2021-10-19T12:27:19.000000Z
It seems to me that the "trec" file suffix is missing in MimeType.xml and Opencast does not recognize the filetype properly. Or am I missing something, is there maybe a way to add custom Mimetype definitions somewhere?
- Katrin