I am transcoding .mp4 files into hls format and I came into following line of command.
The command: ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i input.mp4 -vf scale_npp=1280:720 -c:a copy -c:v h264_nvenc -b:v 8M -g 3 -hls_time 2 -hls_list_size 0 -f hls output.m3u8. I could not find the definition for -g flag. What does it mean?