I did an experiment, and that proved that crop cannot be changed during recording using media-ctl.Open questions:
- can media-ctl crop be changed during recording?
- how often can media-ctl crop be changed per second?
I had two media-ctl commands setting different crop locations, but same crop size.
I can record for both locations and get expected video recorded.
So I did set crop to location 1 with media-ctl, then started 4 second rpicam-vid recording, and then in different terminal did set crop to location 2 quickly, during recording. Then I played the recorded video and and view is the same for all 4 seconds.
Next, without executing a media-ctl command, I recorded 4 seconds again. Playing recorded new video shows that it was recorded at location 2.
So if the crop change is possible, it would need to be done in the application doing the recording. Running media-ctl crop during an active rpicam-vid recording has no effect on the active recording.
Statistics: Posted by HermannSW — Tue Mar 25, 2025 7:01 pm