-
-
Notifications
You must be signed in to change notification settings - Fork 440
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
cropping source stream #551
Comments
Hello alexisod, Thank you for your comment. You want to change the dimensions of the source stream, and you mentioned cropping it from 2560x1920 to 2560x1440. This functionality is available by default if you're looking for a way to resize the video within Restreamer. We don't have a direct tutorial, as the process is simple. Please take a look at this video for guidance: https://www.youtube.com/watch?v=yPy3ElSkoSA It is important to note that when resizing videos, the image quality may degrade significantly when enlarging them. Please keep this in mind when adjusting the dimensions of your video stream. Please also note that this process involves encoding the video stream, which can be resource-intensive. Ensure your hardware can handle the processing load, or consider adjusting the encoding settings for optimal performance. Cheerio |
Hi Sven, Thanks for gettting back to me. Thanks again for your help Alex |
Hello alexisod We apologize for the earlier misunderstanding. It seems our initial response may have been unclear due to the early hour and a lack of ☕ caffeinated beverages. To clarify, the cropping functionality you are seeking is currently not available in Restreamer, as there is no built-in cropping module. We have, however, taken note of your request and added it to our feature request list. You can find the related discussion here: #345 Cheerio |
Haha it happens to all of us:) No worries:) Alexis |
it is possible to use ffmpeg to resize the stream then pipe it out again isn't as clean as it being inside datarhei, but it is possible https://superuser.com/questions/1282044/crop-video-stream-using-ffmpeg |
thanks @grahhnt |
Actually you can crop with FFMPEG without re-encoding if your stream is using h264 or h265 as the video codec, with the h264_metadata (or h265_metadata).
The relevant FFMPEG option is: Note that is only works if your player interprets correctly these metadata. For example it's not interpreted correctly by the player in firefox, but it is interpreted correctly by these of chrome and android. So it'd be great if datarhei gave us the possibility of customizing the options passed to FFMPEG ! |
Hello @barroudjo Cheerio, |
Is it possible to crop the source stream to certain dimensions?
In my case the camera stream is 2560x1920 and I would like to crop it so that I broadcast a stream of 2560x1440.
The text was updated successfully, but these errors were encountered: