I installed a load of other packages from the downloaded AMD driver pack, and got some libamf files:
# find / -iname "libamfrt64*"
/opt/amdgpu-pro/lib/x86_64-linux-gnu/libamfrt64.so
/opt/amdgpu-pro/lib/x86_64-linux-gnu/libamfrt64.so.0.0.0
/opt/amdgpu-pro/lib/x86_64-linux-gnu/libamfrt64.so.0
still missing the libamfrt64.so.1 so I hacked in a link from that to libamfrt64.so.0 to see if it would fix things. now I get a totally different error
# ffmpeg -hwaccel auto -i Recording.ts -c:v h264_amf Recording.hw.mp4
ffmpeg version v1.31-2-gce01ac8 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --enable-libdav1d --enable-libsvtav1 --enable-libvpx --enable-libaom --enable-libzimg --enable-lv2 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libwebp --enable-amf --disable-debug --disable-doc --disable-shared --enable-pthreads --enable-static --enable-small --enable-version3 --extra-cflags='-I/home/paulm/build/ffmpeg-build-script/workspace/include -I/home/paulm/build/ffmpeg-build-script/workspace/include/lilv-0' --extra-ldexeflags= --extra-ldflags='-L/home/paulm/build/ffmpeg-build-script/workspace/lib -L/zlib/lib' --extra-libs='-ldl -lpthread -lm -lz' --pkgconfigdir=/home/paulm/build/ffmpeg-build-script/workspace/lib/pkgconfig --pkg-config-flags=--static --prefix=/home/paulm/build/ffmpeg-build-script/workspace --extra-version=
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
[mpeg2video @ 0x5578782cfc00] Invalid frame dimensions 0x0.
Last message repeated 22 times
[mpegts @ 0x5578782c82c0] start time for stream 0 is not set in estimate_timings_from_pts
[mpegts @ 0x5578782c82c0] PES packet size mismatch
[mpegts @ 0x5578782c82c0] Packet corrupt (stream = 2, dts = 2902292192).
Input #0, mpegts, from 'Recording.ts':
Duration: 00:27:52.12, start: 30576.228644, bitrate: 2402 kb/s
Program 1
Metadata:
service_name : BBC NEWS
service_provider: BSkyB
Stream #0:1[0x13ec]: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Side data:
cpb: bitrate max/min/avg: 15000000/0/0 buffer size: 1835008 vbv_delay: N/A
Stream #0:2[0x13ed](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:3[0x13f0](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:4[0x13ef](eng,eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
No Program
Stream #0:0[0x12]: Data: epg
File 'Recording.hw.mp4' already exists. Overwrite? [y/N] y
Device creation failed: -542398533.
[mpeg2video @ 0x557878401f80] Auto hwaccel disabled: no device found.
Stream mapping:
Stream #0:1 -> #0:0 (mpeg2video (native) -> h264 (h264_amf))
Stream #0:2 -> #0:1 (mp2 (native) -> aac (native))
Press [q] to stop, [?] for help
[h264_amf @ 0x557878319200] 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
[aac @ 0x5578783aba40] Qavg: 169.983
[aac @ 0x5578783aba40] 2 frames left in the queue on closing
Conversion failed!