Package Details: ffmpeg-amd-full-git 7.2.r117451.g0f5592cfc7-1

Git Clone URL: https://aur.archlinux.org/ffmpeg-amd-full-git.git (read-only, click to copy)
Package Base: ffmpeg-amd-full-git
Description: Complete solution to record, convert and stream audio and video (all possible features for AMD; git version)
Upstream URL: https://www.ffmpeg.org/
Keywords: audio codec convert encoder media svt video
Licenses: LicenseRef-nonfree-and-unredistributable
Conflicts: ffmpeg
Provides: ffmpeg, ffmpeg-full, ffmpeg-full-git, ffmpeg-git, libavcodec.so, libavdevice.so, libavfilter.so, libavformat.so, libavutil.so, libpostproc.so, libswresample.so, libswscale.so
Submitter: clap22
Maintainer: nathanielcwm
Last Packager: nathanielcwm
Votes: 14
Popularity: 0.065753
First Submitted: 2018-11-20 15:20 (UTC)
Last Updated: 2024-10-10 14:08 (UTC)

Required by (1910)

Sources (8)

Pinned Comments

saburouta commented on 2023-04-26 18:45 (UTC)

I adopted this package to keep it from falling off, but I haven't had the chance to update it yet.

I think only patches 40 and 60 still work. I'm not sure the other even need to be updated. I've been building with just 40 and 60.

Latest Comments

« First ‹ Previous 1 .. 5 6 7 8 9 10 11 Next › Last »

JackuellnHdyde commented on 2019-10-22 22:35 (UTC) (edited on 2019-10-22 22:46 (UTC) by JackuellnHdyde)

@ReekyMarko

You're right, after more testing I realized what you already found out yourself. I'm not very familiar with all this stuff and just reading into it currently and expected I just had to init the device like I would do with VAAPI and it took me some time to find out that I didn't used wrong cmd args. It seems the full implementation will happen next year or at least AMD will provide a better API. At least we now know how to add the support when time has come.

Edit: I found some more explanation about why it might or will not work for some of us anyway. You need at least VCE3.4 to make H264_AMF i.e. work, like described here: https://github.com/obsproject/obs-amd-encoder/wiki/Hardware-Support#Devices-5 There's also a reddit thread about this topic for those interested: https://www.reddit.com/r/Amd/comments/8eirp4/ffmpeg_40_released_includes_amf_hardware_encoding/

FunctionalHacker commented on 2019-10-22 19:33 (UTC)

@JackuellnHdyde I've now built ffmpeg with amf support, installed all drivers and the dependencies you mentioned. Trying to encode a video with a command like this:

ffmpeg -i video.avi -crf 18 -c:v h264_amf -c:a copy video.mkv

Results in the following error:

[h264_amf @ 0x564d188e5a00] AMF failed to initialise on the given Vulkan device: 1.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

Apparently only vulkan initialization is implemented from what I've read around online. I have vulkan-radeon and vulkan-amdgpu-pro installed. Do you have any workaround for this? I would rather not push the updated PKGBUILD until it's deemed working.

FunctionalHacker commented on 2019-10-15 10:36 (UTC)

@JackuellnHdyde thanks for the heads up. I will try to build it today or tomorrow and see how it goes. I've never used amdgpu-pro so it might get interesting. How can I test that AMF works? Does mpv support it?

JackuellnHdyde commented on 2019-10-15 10:32 (UTC)

@ReekyMarko: Hello, I wanted to ask if it is possible to add support for AMD AMF? I already altered the PKGBUILD and it seems to work with AUR dependencies "amf-amdgpu-pro" and "amf-headers-git". Afaik the amf driver is needed to be able to initialize the device and the amf headers are needed to be able to build ffmpeg with "-enable-amf" flag according to ffmpeg docs. (see: https://www.ffmpeg.org/general.html#AMD-AMF_002fVCE)

FunctionalHacker commented on 2019-10-04 10:52 (UTC)

You might want to remove --enable-omx-rpi. This is for the Raspberry Pi and I had to remove it to get it to build on my PC. Doubt it has much to do with AMD setups.

CaffeinatedTech commented on 2019-08-26 00:52 (UTC)

Build is failing.

In file included from libavcodec/omx.c:29:
libavcodec/omx.c: In function ‘omx_encode_frame’:
libavcodec/omx.c:807:44: error: ‘OMX_IndexConfigBrcmVideoRequestIFrame’ undeclared (first use in this function); did you mean ‘OMX_IndexConfigVideoFramerate’?
  807 |             err = OMX_SetConfig(s->handle, OMX_IndexConfigBrcmVideoRequestIFrame, &config);
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

FunctionalHacker commented on 2019-05-29 08:20 (UTC) (edited on 2019-05-29 08:59 (UTC) by FunctionalHacker)

Anybody else have trouble with tensorflow? I'm getting this message when the ffmpeg build starts:

ERROR: libtensorflow not found

EDIT: I got it to build by adding this to configure:

--extra-cflags='-I/usr/include/tensorflow'

clap22 commented on 2019-04-22 18:27 (UTC)

@morosa You get that error when you do what exactly?

morosa commented on 2019-04-22 17:43 (UTC)

/usr/lib/libm.so.6: version `GLIBC_2.29' not found (required by /usr/lib/libgbm.so.1)

qss commented on 2019-04-19 17:09 (UTC) (edited on 2019-04-19 17:12 (UTC) by qss)

@beroal, its because ffmpeg source-code updates and ffmpeg developers exclude '--enable-libndi_newtek' from it. If you don't wanna wait just remove that from PKGBUILD and run makepkg again.

@clap22, i have an idea how PKGBUILD can be improved:

 desired_options='   
--enable-libndi_newtek
--disable-mbedtls
--enable-libmysofa
and-so-on
'

aval_opt=""
for i in $desired_options; do
    if $(cat configure | grep -q --regexp="$(echo $i | sed 's/.*enable-//g' | sed 's/.*disable-//g')")
    then aval_opt+="$i "
    else msg2 " !!! Warning !!! Unavailable option DETECTED: $i"; fi
done

printf '%s\n' '  -> Running ffmpeg configure script...'

./configure \
    --prefix='/usr' \
    --extra-cflags="$_cflags" \
    --extra-ldflags="$_ldflags" \
    $aval_opt