[FFmpeg-user] AMD Ryzen 5500GT APU video processing libraries and Linux ffmpeg video encoding.

Guddla Rupesh rupeshforu3 at gmail.com
Sat Aug 10 18:41:51 EEST 2024


I have some problems in my Linux system installing amf using amdgpu-install.


Someone suggested as follows


to enable AMF in ffmpeg, try the follwing:


$ git clone https://github.com/GPUOpen-LibrariesAndSDKs/AMF

$ sudo mkdir -p /usr/include/AMF

$ sudo mv AMF/amf/public/include/* /usr/include/AMF

$ rm -rf AMF

$ cd /path/to/FFmpeg

$ ./configure --enable-amf ...

&& make


Can I follow this procedure.

On Sat, 10 Aug, 2024, 7:32 pm Greg Oliver, <oliver.greg at gmail.com> wrote:

> On Sat, Aug 10, 2024 at 7:21 AM Guddla Rupesh <rupeshforu3 at gmail.com>
> wrote:
>
> > Hi I am Rupesh from India and I brought a new desktop pc with ryzen
> 5500GT
> > APU and Asus prime b450 m k2 motherboard. I have installed debian Trixie
> > testing Linux distribution and everything is working fine except I have
> > some doubts related to video encoding using ffmpeg and libaom av1.
> >
> > I have some mp4 h264 video files and I thought to convert them to av1
> codec
> > using libaom. So I compiled ffmpeg source code with options cpu=znver3
> and
> > --enable-libaom and --enable-x265.
> >
> > I succeeded in building ffmpeg from source code but my Linux doesn't have
> > package related to AMF which is the software from AMD related to video
> > codecs. During the configuration of ffmpeg first I have included the
> option
> > --enable-amf but I got error as amf requested but not found. So I removed
> > this option and after that the compilation was successful.
> >
> > I have used the recently build ffmpeg to convert h264 files to av1 codec
> > and succeeded. After that I have copied converted av1 files to the latest
> > android tablet and tried to play through vlc video player but when I skip
> > forward 10 minutes the player is getting stuck for few seconds and
> resume.
> > I mean it can't respond quickly when I fast forward.
> >
> > Previously I used Intel 10th gen 10100 APU and Asus prime h 510 me
> > motherboard and used the same ffmpeg tool to convert the same h264 files
> to
> > av1 codec in the same Linux operating system. After that I have copied
> them
> > to the same latest android tablet and tried to play through vlc video
> > player and at that time there is no lag when I fast forward. I mean it
> > responded quickly when I fast forwarded.
> >
> > Previously while using Intel 10th gen pc there were options such as
> > --enable-libmfx --enable-qsv --enable-libvpl
> >
> > I think that those are related to Intel but not useful while using amd
> APU
> > and so I have given option --disable-libmfx and not used vpl qsv at all.
> >
> > I searched web for AMD ffmpeg and found only AMF but there are no options
> > mfx, vpl found in Intel.
> >
> > I found an article on how to compile ffmpeg with AMF support and it
> > suggested to clone the git of AMF and so I cloned it and the resulting
> > cloned folder is 1300 mb.
> >
> > I am confused on how to compile ffmpeg with AMF support.
> >
> > Is there any degradation in the quality of converted av1 file when
> > libraries such as AMF mfx vpl are not used.
> >
> > If you say just ignore AMF support for ffmpeg I will ignore.
> >
> > Kindly clarify my doubts related to AMF and if you think AMF is must for
> > proper libaom encoding kindly suggest proper method to compile ffmpeg
> with
> > AMF support.
> >
> > Regards,
> > Rupesh.
> >
> >
> You probably had the compile options for ffmpeg with AMF correct, but it
> sounds like you did not install the AMD GPU drivers as well as the SDK
> properly before trying to compile ffmpeg, hence it could not find the
> required libraries to enable AMF during compile time.
>
> This must be done before fmpeg is compiled -
>
> https://github.com/GPUOpen-LibrariesAndSDKs/AMF/wiki
>
> That doc has pretty much everything you need to get it all running.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list