


However, both of these commands give me the same output for both files: 2643 and h264 respectively.Īm I correct in assuming that ffmpeg keeps these values the same for the output - by default?

I have found this question which addresses a related question and suggsts passing to ffmpeg the codec and bitrate obtained from the following: bitratev="$(ffmpeg -i "$1" -f null - |& grep video: | awk -F'' '')"Ĭodecv="$(ffprobe -loglevel error -select_streams v:0 -show_entries stream=codec_name -of default=nk=1:nw=1 "$1")" The resulting file is almost 10x smaller than the input. I am rotating a video with ffmpeg with the following code: ffmpeg -i nd750_a0040.MOV -vf "transpose=dir=clock, transpose=dir=clock" out.mkv
