iizukanao / picam-streamer

Out-of-the-box SD card image for live streaming with Raspberry Pi
MIT License
62 stars 6 forks source link

Unable to stream recorded videos (.ts) #17

Open chtoller opened 6 years ago

chtoller commented 6 years ago

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

iizukanao commented 6 years ago

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.