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?
Here it is:
-g E..V…. set the group of picture (GOP) size (from INT_MIN to INT_MAX) (default 12)
And here is a full list of commands:
https://gist.github.com/tayvano/6e2d456a9897f55025e25035478a3a50
Some of it might be old as ffmpeg gets updated. Which version are you using?