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

Get frame of rtsp #217

Open
nqthinh493 opened this issue Oct 9, 2023 · 1 comment
Open

Get frame of rtsp #217

nqthinh493 opened this issue Oct 9, 2023 · 1 comment

Comments

@nqthinh493
Copy link

I want to get frames from RTSP URLs to apply the AI model, can anyone help me?

@maxim729467
Copy link

can be achieved with ffmpeg library
something like this:

ffmpeg -loglevel error -timeout 10000000 -rtsp_transport tcp -i {RTSP_URL} -vf fps=1/{FREQUENCY} -strftime 1 {FRAMES_DIRECTORY_PATH}/%Y-%m-%d_%H-%M-%S_image.png

this will save frames to directory with frequency you will set
you can check ffmpeg docs and pipe data to some handler if you do not want to save images

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

No branches or pull requests

2 participants