ffmpeg error

(I’m not sure if this is the right forum to post this in, so move if necessary.)

I am having problems with ffmpeg. My goal is to capture a video stream from my webcam and feed that into a webcam-capturing program. But to get that to work, I will need ffmpeg to work.
I need the following command to work, but I get an error:


**$ ffmpeg -b 100K -an -f video4linux2 -s 320x240 -r 10 -i $device -b 100K -f image2pipe -vcodec mjpeg - | perl -pi -e 's/\\xFF\\xD8/KIRSLESEP\\xFF\\xD8/ig'**
ffmpeg: relocation error: /usr/lib/libavfilter.so.2: symbol avformat_find_stream_info, version LIBAVFORMAT_53 not defined in file libavformat.so.53 with link time reference

I have searched Google for this, but have come up empty-handed.
Any help would be appreciated. Thanks! :slight_smile:

I’m not an ffmpeg guru, so I can’t look at that command line and ‘point out an error’.

But it does look overly complex to me, possibly because you are trying to redirect the webcam video stream to some other capturing program

There is a old thread here webcam & microphone command line fun … but it does not attempt to do what you are doing.

Is there any chance you could simply direct the output to a null file and then have that streamed into your application (and maybe that is what you are trying). I don’t know the details of that, so its not likely something I can help on.

I assume you checked the webcam display part of the ffmpeg line and confirmed it worked.