Source stream cropping strikes back
Posted: Mon Jun 01, 2020 10:56 am
Hello everyone!
May I draw your attention to a topic from the past: viewtopic.php?p=101031 ? My attempt to google the theme resulted in a conclusion that it raised several times but had not been solved. Yet I feel that with wider availability of cheap highres cameras (without variable zoom optics) such an option could be really helpful.
My own attempts also totally failed. The ffmpeg binary itself takes option like '-filter:v crop=1000:740:640:480' perfectly. However, any attempt to put into zm camera setup -> Source -> Options anything like that ('filter:v crop=1000:740:640:480' or 'filter:v=crop=1000:740:640:480' 'filter:v,crop=1000:740:640:480', or 'fv="crop=1000:740:640:480"' ) results in errors like 'Option filter:v crop not recognized by ffmpeg'.
I even tried to put my custom script into Options->Images->PATH_FFMPEG to dump real option strings passed to ffmpeg by zm, and run snoopy in background to trace every process run in the system, but found that zoneminder ignores that PATH_FFMPEG options and does not run ffmpeg process at all(!).
Could anyone give me a hint how can i crop the source video stream (before processing by zm)?
Thanks for any suggestions!
P.S. I do have zm 1.34.15 running on Ubuntu 18.04.4 LTS
5M RTSP camera configured as ffmpeg/modect source using rtsp:// URL, TCP stream and x264 Encode video writer.
May I draw your attention to a topic from the past: viewtopic.php?p=101031 ? My attempt to google the theme resulted in a conclusion that it raised several times but had not been solved. Yet I feel that with wider availability of cheap highres cameras (without variable zoom optics) such an option could be really helpful.
My own attempts also totally failed. The ffmpeg binary itself takes option like '-filter:v crop=1000:740:640:480' perfectly. However, any attempt to put into zm camera setup -> Source -> Options anything like that ('filter:v crop=1000:740:640:480' or 'filter:v=crop=1000:740:640:480' 'filter:v,crop=1000:740:640:480', or 'fv="crop=1000:740:640:480"' ) results in errors like 'Option filter:v crop not recognized by ffmpeg'.
I even tried to put my custom script into Options->Images->PATH_FFMPEG to dump real option strings passed to ffmpeg by zm, and run snoopy in background to trace every process run in the system, but found that zoneminder ignores that PATH_FFMPEG options and does not run ffmpeg process at all(!).
Could anyone give me a hint how can i crop the source video stream (before processing by zm)?
Thanks for any suggestions!
P.S. I do have zm 1.34.15 running on Ubuntu 18.04.4 LTS
5M RTSP camera configured as ffmpeg/modect source using rtsp:// URL, TCP stream and x264 Encode video writer.