I would like to encode a 30 min video using ffmpeg. I am able to achieve this using
ffmpeg -i in.mp4 -vcodec libvpx -vb 1024k -keyint_min 150 -g 150 -an out.webm
But I would like to encode different segments of the video at different rate and not use a constant rate of 1024k. Is this possible?
I know what time they have to switch encoding. For example say 5 min of video I want an encoding rate of 1024k and next 5 min I am okay with 250k bitrate. I do not want to use VBR or I don't want to cut the video and encode them at different rates and then join them.
Is this possible. I read the man page for ffmpeg and saw there were options for
startime and time
But I am not sure how exactly I can do this assuming this to be possible.