cingg faster than ffmpeg itself on pulling frames!?
I tried to bench simple ffmpeg command (ffmpeg 7.1.1): time -p ./ffmpeg -hwaccel vaapi -i ~/K38_sdcard1/Documents/iPhone11_4K-recorder_59.940HDR10.mov -c:a copy -c:v rawvideo -f nut /dev/null this benches for 4k 60 fps HDR video at frame= 1148 fps= 10 q=-0.0 Lsize=27900063KiB time=00:00:19.16 bitrate=11927607.4kbits/s speed=0.173x real 111.77 user 42.61 sys 119.01 10 fps,150% cpu load. ffmpeg 4.4 was using just 85% cpu but only managed frame= 1148 fps=8.5 q=-0.0 Lsize=27900063kB time=00:00:19.15 bitrate=11933560.4kbits/s speed=0.142x 8.5 fps. But I am fairly sure I saw *15* fps in cingg on same file , if you set "play every frame" and vo driver to x11. Anyone want to repeat this experiment? Is it artefact of running 32bit program on top of 64bit kernel? At some point I might try latest Fedora 42 to see if full 64bit Linux will pull more frames out of same gpu decoder on same motherboard
I did two tests with ffmpeg standalone: 1) time -p ffmpeg -hwaccel vaapi -i hdr_02.mp4 -c:a copy -c:v rawvideo -f nut /dev/null fps=26 speed=0.438x CPU load=5% 2) (no vaapi) time -p ffmpeg -i hdr_02.mp4 -c:a copy -c:v rawvideo -f nut /dev/null fps=100 speed=1.66x I loaded the video to CinGG. Playback: Vaapi X11 --> ~59.7 fps (some freeze at 49 fps) X11 reverse playback --> 9-18 fps (many artefacts) OpenGL --> ~12 fps (many freezes and artefacts) OpenGL reverse --> 7-9 fps (inusable for freeze and artifacts) No vaapi X11 --> 59.7 fps (no artefacts) X11 reverse --> 3-9 fps (many freezes and artefacts) Rendering (h265.mp4 and hevc_vaapi_8b420.mp4): h265.mp4 --> 10 fps hevc_vaapi_8b420.mp4 --> 23.7 fps
On Sat, Apr 26, 2025 at 10:09 PM Andrea paz <[email protected]> wrote:
I did two tests with ffmpeg standalone:
1) time -p ffmpeg -hwaccel vaapi -i hdr_02.mp4 -c:a copy -c:v rawvideo -f nut /dev/null
fps=26 speed=0.438x CPU load=5%
2) (no vaapi) time -p ffmpeg -i hdr_02.mp4 -c:a copy -c:v rawvideo -f nut /dev/null
fps=100 speed=1.66x
I loaded the video to CinGG. Playback:
Vaapi X11 --> ~59.7 fps (some freeze at 49 fps) X11 reverse playback --> 9-18 fps (many artefacts)
OpenGL --> ~12 fps (many freezes and artefacts) OpenGL reverse --> 7-9 fps (inusable for freeze and artifacts)
No vaapi X11 --> 59.7 fps (no artefacts) X11 reverse --> 3-9 fps (many freezes and artefacts)
I think I am seeing some artefacts on reverse too, but normal playback was fixed for me by checking "Play every frame" checkbox Can you post mediainfo of input file too?
Rendering (h265.mp4 and hevc_vaapi_8b420.mp4):
h265.mp4 --> 10 fps hevc_vaapi_8b420.mp4 --> 23.7 fps
Can you post mediainfo of input file too?
I will post ffprobe, If you prefer mediainfo tell me and I will install it. $ ffprobe hdr_02.mp4 [...] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'hdr_02.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 creation_time : 2017-06-04T23:05:26.000000Z encoder : Lavf57.72.101 Duration: 00:02:38.56, start: 0.000000, bitrate: 60142 kb/s Stream #0:0[0x1](und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 60000 kb/s, 59.94 fps, 59.94 tbr, 90k tbn (default) Metadata: creation_time : 2017-06-04T23:05:26.000000Z handler_name : VideoHandler vendor_id : [0][0][0][0] Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default) Metadata: creation_time : 2017-06-04T23:05:26.000000Z handler_name : SoundHandler vendor_id : [0][0][0][0]
сб, 26 апр. 2025 г., 22:26 Andrea paz <[email protected]>:
Can you post mediainfo of input file too?
I will post ffprobe, If you prefer mediainfo tell me and I will install it.
Thanks, ffprobe is fine. Can you test ffmpeg's hwaccel with -benchmark switch as Terje did? May be it will speed up itself ...
$ ffprobe hdr_02.mp4 [...] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'hdr_02.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 creation_time : 2017-06-04T23:05:26.000000Z encoder : Lavf57.72.101 Duration: 00:02:38.56, start: 0.000000, bitrate: 60142 kb/s Stream #0:0[0x1](und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 60000 kb/s, 59.94 fps, 59.94 tbr, 90k tbn (default) Metadata: creation_time : 2017-06-04T23:05:26.000000Z handler_name : VideoHandler vendor_id : [0][0][0][0] Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default) Metadata: creation_time : 2017-06-04T23:05:26.000000Z handler_name : SoundHandler vendor_id : [0][0][0][0]
participants (2)
-
Andrea paz -
Andrew Randrianasulu