I forgot to comment on the previous patch the change from -keyint_min to -g. It didn't really make much difference then since the encoder would put keyframes at fixed interval in addition to any accidental keyframes that the encoder may deem appropriate /Tomas