4
$\begingroup$

I am using Mathematica 15.0 on Linux Mint. Importing MP4 files fails. If I check with the following code

TracePrint[$VideoEncoders // Keys, 
 r : LibraryLoad[s_String] /; FailureQ[r] :> {s, 
   LibraryLink`$LibraryError}, TraceInternal -> True]

And see a problem with librabbitmq

$\endgroup$
2
  • $\begingroup$ On Pop!_OS 24.04 LTS MP4 import works fine in 15.0.0. $\endgroup$ Commented yesterday
  • $\begingroup$ Good to know, I thought about changing to another Debian based distro. Unfortunately I have another Debian System with the equivalent Problem. From what I see it depends if ffmpeg is build with AMQP/RabbitMQ support or not. Maybe the distro choose different packages and therefor the problem does not appear everywhere ... $\endgroup$ Commented 17 hours ago

1 Answer 1

3
$\begingroup$

The import of some MP4 in Mathematica failed because the Wolfram-shipped libssl.so.3 and libcrypto.so.3 conflicted with the system FFmpeg dependency chain, especially librabbitmq.so.4, causing errors such as undefined symbol: ENGINE\_load\_private\_key, version OPENSSL\_3.0.0. Renaming the Wolfram OpenSSL libraries allowed FFmpeg import to work, but then Wolfram server login stopped working. The effective workaround was to build a minimal custom FFmpeg 8.1.1 with shared libraries enabled, networking disabled, no AMQP/RabbitMQ support, and only the required MP4/H.264/AAC components. Mathematica was then started with the custom FFmpeg library directory prepended to LD\_LIBRARY\_PATH, for example LD\_LIBRARY\_PATH="\\\$HOME/ffmpeg\_build/lib\\\${LD\_LIBRARY\_PATH:+:\\\$LD\_LIBRARY\_PATH}" WolframNB. With this setup, both video import and Wolfram server login worked correctly. The essential point is that FFmpegToolsSystem-8.1.1.so could resolve against compatible custom libav\* shared libraries while avoiding the problematic RabbitMQ/OpenSSL conflict.

$\endgroup$

Your Answer

Draft saved
Draft discarded

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.