Libavformat-dev, libavutil-dev, and libavcodec-dev

An application I am trying to install has libavformat-dev, libavutil-dev, and libavcodec-dev as dependencies. Is there a CL bundle that contains these?

repo:clearlinux/clr-bundles ffmpeg

Thanks. Looks like my app is still complaining though (after installing the bundles you suggested):

[h264_qsv @ 0x557498000c70] Error initializing an internal MFX session: unsupported (-3)
[h264_qsv @ 0x557498000c70] Error initializing an MFX session
[h264_qsv @ 0x557498000c70] Error initializing the MFX video decoder: invalid handle (-6)

What do you make of this?
Also, what’s the difference between this and CL’s (not-)ffmpeg bundles?

[h264_qsv @ 0x557498000c70] Error initializing an internal MFX session: unsupported (-3)

x264 lib isn’t installed.

Thank you. And how would I go about installing that please? (Feel free to suggest something from here, if applicable.)

You can:

  • extract the x264 lib & headers from Clear Fraction release RPM in packages-xxxxx.tar
  • compile it yourself using the spec.

Thank you. Is that an “and” or an “or” between the two bullets?

“Or”, of course.

Is that an “and” or an “or”

1 Like

Thank you. Now that my question made you realize the real “depth” of my knowledge of such matters :blush: , it goes w/o saying that I will need a bit of hand-holding in this quest (and feel free to decline the “honor,” no hard feelings).

My guess is that x264-libs-0.164-20230128.x86_64.rpm is the “lib” file, though which one is the “headers”? And once I have the two, I guess that I should do a make & make install, right?

x264-libs-0.164-20230128.x86_64.rpm is the “lib” file


which one is the “headers”?

The *-dev package.

I guess that I should do a make & make install

No, that’s for compilation, these packages are already compiled.
I don’t know if your app will work with this library & ffmpeg, so you probably need to recompile your app.

1 Like

Silly me: Yes, .rpm are already compiled. Even I know that! :blush:

1 Like

How to build software using Clear Fraction libraries like x264, x265 or CUDA

Looks like I am missing a link in my quest to run the following command:

gcc AURGAViewer.a libmatoya.a libavcodec.a libavutil.a libavformat.a libswscale.a -fPIC -ldl -lpthread -ludev -lm -lstdc++ -o AURGAViewer.

I got gcc, ffmpeg, and x264 installed, and I need to obtain these four files: libavcodec.a, libavutil.a, libavformat.a, and libswscale.a. How do I do that?

Hope you got it working, but for the records:

  • .a is a static library
  • you can search any file with find command

Thanks, I had to compile ffmpeg from scratch, as I don’t know how to generate the .a files from the CF bundle.