Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to dynamically scale the H264 encoded stream #823

Open
sbfkcel opened this issue Feb 23, 2023 · 0 comments
Open

How to dynamically scale the H264 encoded stream #823

sbfkcel opened this issue Feb 23, 2023 · 0 comments

Comments

@sbfkcel
Copy link

sbfkcel commented Feb 23, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant