I recorded the H264 video stream of the iPhone, and the width and height of the video are different when rotating vertically and horizontally.
After conversion through ffmpeg -f h264 -i pipe:0 -vf scale=-1:ih*0.5 -vcodec libopenh264 -tune zerolatency -b 900k -framerate 30, it becomes the initial uniform width and height in any direction.
I recorded the H264 video stream of the iPhone, and the width and height of the video are different when rotating vertically and horizontally.
After conversion through
ffmpeg -f h264 -i pipe:0 -vf scale=-1:ih*0.5 -vcodec libopenh264 -tune zerolatency -b 900k -framerate 30
, it becomes the initial uniform width and height in any direction.