I have a machine learning project to track a moving object (little beyond my expertise at the moment as I am a student) and I have been trying to figure out how to do the two tasks below using R-Studio:
1) How to pick out frames from the video based on a start and end index?
2) How to draw a rectangular box around the object when a user clicks on it?
Yesterday, I decided to use FFmpeg and it's not working. See my R-studio code below, it doesn't give any errors neither does it provide any outputs.
install.ffmpeg() ffmpeg - i SampleVideo_360x240_1mb.mp4 -ss 2 -t 5 -vcodec copy - acodec copy testvideo.mp4
ffmpeg - ss 2 -t 5 - i SampleVideo_360x240_1mb.mp4 testvideo.mp4
ffmpeg -i SampleVideo_360x240_1mb.mp4 -vf select = 'between (x,y)' farmes%testvideo.mp4
If anyone has quick guidance it will be greatly appreciated.