[FFmpeg-user] how to use ffmpeg command to view and change ts file video gop size
Moritz Barsnick
barsnick at gmx.net
Wed Apr 13 13:04:31 CEST 2016
On Wed, Apr 13, 2016 at 09:56:04 +0000, Ronald Luo wrote:
> Can you tell me how to use ffmpeg command to view gop size
Since it can be variable, you will have to analyze yourself by counting
the distances:
$ ffprobe -of default=noprint_wrappers=1 -show_entries frame=key_frame input.file
> and change ts file video gop size
Use "-g":
ffmpeg -i input.file -c:v outputcodec -c:a copy -g gopsize output.file
("gopsize" stands for a number you have to insert.)
Moritz
More information about the ffmpeg-user
mailing list