picam-streamer icon indicating copy to clipboard operation
picam-streamer copied to clipboard

Unable to stream recorded videos (.ts)

Open chtoller opened this issue 7 years ago • 1 comments

Hello again. Sorry to be a pain...

My understanding is, that it should be possible to access the past recordings via rtmp:///file/mp4: When I try to do that, I get the following error (redirected node stdout to a file): 2017-11-24 18:06:19.511 [rtmp:client=5e1l3xJE] requested stream file/mp4:2017-11-24_14-41-26.ts 2017-11-24 18:06:19.512 [rtmp:client=5e1l3xJE] error: stream not found: file/mp4:2017-11-24_14-41-26.ts

The same happens if I change node-rtsp-rtmp-server/config.js like this: /* RTSP/RTMP configurations / liveApplicationName: 'live', recordedApplicationName: 'file', / recordedDir: 'file', */ recordedDir: '/home/pi/picam-streamer/rec/archive',

Where should the standard "file" folder be? Inside /home/pi/node-rtsp-rtmp-server/file ?

I tried with an mp4 file, too, Same error, stream not found.

If the streaming of recorded files is not supported, would you have any suggestion how to achieve that?

Thanks, Christian

chtoller avatar Nov 24 '17 17:11 chtoller

My understanding is, that it should be possible to access the past recordings via rtmp:///file/mp4:

Sorry, serving .ts files is not supported yet. Only .mp4 files are supported.

Where should the standard "file" folder be? Inside /home/pi/node-rtsp-rtmp-server/file ?

Yes. You should set recordedDir to the file directory in this case.

If the streaming of recorded files is not supported, would you have any suggestion how to achieve that?

You can convert .ts file to .mp4 file after a recording has completed.

iizukanao avatar Nov 24 '17 17:11 iizukanao