Skip to content

Docker image to grab a still image from an RTSP feed and serve it up as a snapshot

License

Notifications You must be signed in to change notification settings

mrJudahBella/docker_rtsp_grab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker_rtsp_grab

GitHub Workflow Status (with event) Docker Pulls

Docker image to grab a still image from an RTSP feed and serve it up as a snapshot

Forked from dewgenenny/docker_rtsp_grab

This image comes in handy if your camera does not expose a URL for snapshots (or at least, the URL is unknown).

I have modified HEALTHCHECK to test against localhost instead of a static IP that doesn't exist so that it will pass.

You need to call this image with the URL environment variable set to the URL of the camera you want it to connect to, and FPS set to FPS you would want the snapshots to be updated. I have found 1/10 (once every 10 seconds) to work well.

Once you've got it running, you'll be able to see the snapshot at http://your-server-ip:port/snapshot.jpg

Examples:

Using the image from DockerHub:

docker run --rm --name rtsp_grab -e URL=http://url-of-your-camera:554/live/ch0 -e FPS=1/10 -p 8844:80 judahbella/rtsp_grab

Building the docker image yourself:

sudo docker build -t rtsp_grab .

Then, run your newly built docker image:

docker run --rm --name rtsp_grab -e URL=http://url-of-your-camera:554/live/ch0 -e FPS=1/10 -p 8844:80 rtsp_grab  

I highly recommend double checking that your URL works using VLC or ffmpeg before moving to use image

About

Docker image to grab a still image from an RTSP feed and serve it up as a snapshot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 59.7%
  • Shell 40.3%