[FFmpeg-user] Decode h.264 to YUV on GPU

Mahmood Naderan mahmood.nt at gmail.com
Thu Jan 24 23:25:53 EET 2019


Hi,
For this command

an input with this specification

./ffmpeg -vsync 0 -c:v h264_cuvid -i in.mp4 -f rawvideo out.mp4

and two input files
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1920x1080 [SAR 1:1 DAR 16:9], 8239 kb/s, 29.97 fps, 29.97 tbr, 30k tbn,
59.94 tbc (default)

Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
3840x2160 [SAR 1:1 DAR 16:9], 32482 kb/s, 29.97 fps, 29.97 tbr, 30k tbn,
59.94 tbc (default)



I see that GPU utilization for the first is less than 5% while for the
second is about 12%.

The difference is (High) and (Main). Do you think that is normal?


Regards,
Mahmood


More information about the ffmpeg-user mailing list