We are trying to use zmqsend (it's part of the ffmpeg repository) to communicate with a ffmpeg instance. On Raspbian, ffmpeg is configured with --enable-libzmq, and libzmq-dev is installed, but zmqsend is not found. How to get it, besides by rebuilding ffmpeg?

  • ffmpeg documentation states Look at tools/zmqsend for an example of a zmq client which can be used to send commands processed by these filters - it's an example - you have to compile it yourself, you dont' need to compile all of ffmpeg yourself to compile that example code – Jaromanda X Feb 2 '19 at 23:13
  • @JaromandaX We've tried that, you do need all of ffmpeg. Trying to compile it by itself gives gazillions of linker errors. – whoKnows Feb 3 '19 at 0:53
  • if you install the appropriate dev packages then you dont' need to compile ffmpeg – Jaromanda X Feb 3 '19 at 1:54
  • @JaromandaX Which dev packages, exactly? – whoKnows Feb 3 '19 at 21:09
  • i.e. since zmqsend refers to libavutil, start with libavutil-dev – Jaromanda X Feb 3 '19 at 22:15

Zmqsend can indeed be compiled independently. You need libzmq3-dev (not libzmq-dev) and libavutil-dev.

cd FFmpeg/
cd tools/
gcc -o /where/you/want/zmqsend zmqsend.c -I.. `pkg-config --libs --cflags libzmq libavutil`
| improve this answer | |
  • Please accept your own answer with a click on the tick on its left side. Only this will finish the question and it will not pop up again year for year. – Ingo Mar 3 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.