I have an IP-CAM that streams video over RTSP and I want to detect bar codes from it with zbarcam
(from Ubuntu's zbar-tools
package).
According zbarcam
's manual, it expects to be given a video4linux character device (default /dev/video0
). How can I let it receive that RTSP stream instead?
I tried to use mplayer
, but I can't figure out how I could use that to pipe the stream to zbarcam
.