Streaming ip cameras from subfolders

Good afternoon!

In our project we need to use structure with subfolders. For ex. we have root folder ipcam and in this folder we have a lot of folders with number combinations. And in this folders we see a lot of files.

Example:

  1. /ipcam/camera-test.stream

  2. /ipcam/01/camera-test.stream

In first variant I can give the stream by rtmp, rtsp, http (hls). rtmp://[ip-of-server]:1935/ipcam/mp4:camera-test.stream

In second var. I can’t give the stream by rtsp and http(hls).

rtmp://[ip-of-server]:1935/ipcam/mp4:01/camera-test.stream is working

But rtsp://[ip-of-server]:1935/ipcam/mp4:01/camera-test.stream and http://[ip-of-server]:1935/ipcam/mp4:01/camera-test.stream/playlist.m3u8 are not working! What should we do to stream from subfolder’s files?

Hello there,

Try adding definst to the URL:

Example

[ip-of-server]:1935/ipcam/_definst_/mp4:01/camera-test.stream

Kind regards,

Salvadore

That’s great news Sergey. Thanks for the update and glad I was able to help get this working.

Kind regards,

Salvadore

Salvadore, thank you! I tryed it in that day and everything was ok! Thank you a lot!

With best regards,

Sergey