Closed laki9 closed 1 month ago
Fixed in 8164ff7
./ffmpeg -v quiet -f lavfi -i testsrc2=s=1280x720,format=yuv420p -c:v mpeg4 -b:v 5M -f nut - | \
./ffmpeg -hwaccel rkmpp -hwaccel_output_format drm_prime -afbc rga -i - \
-vf scale_rkrga=w=1920:h=-2:format=nv12:afbc=1 -c:v hevc_rkmpp -qp_init 20 -t 60 -y /tmp/1.mp4
ffmpeg version n7.0.1-32-gdb66144f29 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --disable-ffplay --disable-doc --disable-shared --enable-gpl --enable-version3 --enable-static --enable-gnutls --enable-opencl --enable-libdrm --enable-libdav1d --enable-libx264 --enable-libx265 --enable-rkmpp --enable-rkrga
libavutil 59. 8.100 / 59. 8.100
libavcodec 61. 3.100 / 61. 3.100
libavformat 61. 1.100 / 61. 1.100
libavdevice 61. 1.100 / 61. 1.100
libavfilter 10. 1.100 / 10. 1.100
libswscale 8. 1.100 / 8. 1.100
libswresample 5. 1.100 / 5. 1.100
libpostproc 58. 1.100 / 58. 1.100
Input #0, nut, from 'fd:':
Metadata:
encoder : Lavf61.1.100
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 tbr, 51200 tbn
Metadata:
encoder : Lavc61.3.100 mpeg4
rga_api version 1.10.0_[8]
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (mpeg4_rkmpp) -> hevc (hevc_rkmpp))
Output #0, mp4, to '/tmp/1.mp4':
Metadata:
encoder : Lavf61.1.100
Stream #0:0: Video: hevc (Main) (hev1 / 0x31766568), drm_prime(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 2000 kb/s, 25 fps, 12800 tbn
Metadata:
encoder : Lavc61.3.100 hevc_rkmpp
[out#0/mp4 @ 0xaaaabfacc480] video:77002KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.009754%
frame= 1500 fps=252 q=-0.0 Lsize= 77010KiB time=00:00:59.96 bitrate=10521.4kbits/s speed=10.1x
mpeg4_rkmpp cannot decode video, such as the command ./ffmpeg -c:v mpeg4_rkmpp -i ~/mpeg4.mp4 -f rawvideo -y /dev/null mpeg2_rkmpp can