vzhn / bstreamer

RTSP/h264 ip camera emulator
60 stars 12 forks source link

feature request: add ability to play a file on repeat #5

Closed chad-green closed 3 years ago

chad-green commented 3 years ago

Just a suggestion, how hard would it be to add a way to loop a file through indefinitely? It would just repeat the file over and over.

vzhn commented 3 years ago

Definitely not hard. I'll try to implement it on weekend. Thank you for suggestion!

vzhn commented 3 years ago

Not on this weekend. Maybe next. Merry Christmas!

chad-green commented 3 years ago

Really appreciate it! Merry Christmas to you too!

On Fri, Dec 25, 2020 at 12:02 PM Vladimir Zhilin notifications@github.com wrote:

Not on this weekend. Maybe next. Merry Christmas!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vzhn/bstreamer/issues/5#issuecomment-751271864, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIIGV5POXOR4WCAIVUCJ3O3SWTARXANCNFSM4VGCDJTQ .

-- Chad Green President, Founder

Lantern, LLC www.lanternlabs.com office: (571) 308-2773 cell: (703)282-0743

sarim987 commented 3 years ago

Would love to see this feature as well!

vzhn commented 3 years ago

I definitely implement this feature on this weekend.

As a temporary workaround you could use procedural-generated video stream. It never ends. Like this: rtsp://localhost:8554/picture?picture.width=320&picture.height=240

vzhn commented 3 years ago

Ok guys, the feature is implemented and it seems that it is working.

A new parameter was added to the config file: repeat: true

...
  file:
    class: Filesystem
    conf:
      repeat: true

It could be set globally in config file server.yaml, or locally, just for current connection with GET param, like this: ffplay -rtsp_transport tcp rtsp://localhost:8554/file?repeat=true

Please check it out

vzhn commented 3 years ago

Release containing new feature: v0.5.1