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

Rotate and scale params don't use transcoding and change video using metadata. #1627

Open
harryqt opened this issue Mar 4, 2025 · 1 comment
Labels
question Further information is requested

Comments

@harryqt
Copy link

harryqt commented Mar 4, 2025

On Readme file, it is stated:

PS. Rotate and scale params don't use transcoding and change video using metadata.

But upon my testing, rotation actually done by using -vf transpose=1 which requires re-encoding.

I've a RTSP stream, I wanted to rotate the stream without re-encoding (by avoid using -vf transpose=1)

rotate: ffmpeg:rtsp://12345678@192.168.1.123/av_stream/ch0#video=h264#rotate=90

^ this re-encode stream, which is CPU-intensive :(

Is there any way to rotate stream without re-encoding?

Something like -metadata:s:v rotate=-90 (old ffmpeg) or -display_rotation:v:0 -90 (new ffmpeg) ?

I tried these but did not work. :(

@AlexxIT AlexxIT added the question Further information is requested label Mar 4, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Mar 4, 2025

The problem with the metadata rotate is compatibility. This works in some streaming technologies and in some browsers. Not all of them. Go2rtc support this only for stream.mp4 as query param ?rotate=90.

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

No branches or pull requests

2 participants