iEvgeny / cctv-viewer

CCTV Viewer - viewer and mounter video streams.
GNU General Public License v3.0
135 stars 19 forks source link

Stream jpg? #94

Open RoinujNosde opened 5 days ago

RoinujNosde commented 5 days ago

Hi, I have a URL for a jpg (http://example.com/camera/id.jpg) that gets updated every few seconds. Is it possible to add it to the program? If so, what's the syntax?

iEvgeny commented 5 days ago

Hi! If you find similar scenarios for ffplay, then we can try to adapt them for CCTV Viewer.

RoinujNosde commented 4 days ago

With ffplay itself I had no luck, even with loop 0 the image doesn't update.

This one works by creating a stream at 127.0.0.1:23000, then I can add this url to CCTV-viewer: ffmpeg -re -framerate 1 -loop 1 -f image2 -i "http://example.com/my.jpg" -c:v libx264 -r 25 -f flv udp://127.0.0.1:23000

iEvgeny commented 1 day ago

Unfortunately, CCTV Viewer requires significant development to support this functionality. But this is an interesting case and I will add it to the TODO list.

RoinujNosde commented 1 day ago

Thanks!