[OC 10] Manual upload no longer works for Camtasia/*.trec files

51 views
Skip to first unread message

K. S.

unread,
Jan 11, 2022, 8:29:08 AM1/11/22
to Opencast Users
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.trec
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) [!/:?]
        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:8080
2022-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

Greg Logan

unread,
Jan 11, 2022, 3:10:05 PM1/11/22
to Opencast Users
Hi Katrin,

You say 'no longer', did this work previously?  Looking at the history of the MimeType xml file I don't see trec suffixes listed, but that doesn't mean the logic didn't previously ignore the suffix :)

Adding it to the relevant file and rebuilding the module would definitely fix the issue.  Unfortunately, I don't see an obvious way to do this *without* rebuilding that module.  Try renaming the file?  I imagine ffmpeg won't actually care.

G

--
To unsubscribe from this group and stop receiving emails from it, send an email to users+un...@opencast.org.

Lars Kiesow

unread,
Jan 11, 2022, 7:50:32 PM1/11/22
to us...@opencast.org
I'm wondering if just renaming it to .mp4 would also solve the problem?
–Lars

K. S.

unread,
Jan 13, 2022, 6:23:30 AM1/13/22
to Opencast Users, Lars Kiesow
Hi Lars and Greg,

renaming the file to *.mp4 indeed solves the problem. I guess the file ending is only really used to determine whether it is a video/audio/other file.

Considering that the relevant code seemingly has not been altered in 4ish years, I also wonder how this has ever worked, but it definitely did.

Should I create a ticket for the Mimetype?

Thanks for the help!
Katrin

Greg Logan

unread,
Jan 13, 2022, 10:28:03 PM1/13/22
to Opencast Users
Hi Katrin,

Sure.  I feel like there are probably two issues here: camtasia/trec support, and general handling with regards to unknown file types.  An issue would help us discuss it and then hopefully get a better resolution than just renaming the files.

G
Reply all
Reply to author
Forward
0 new messages