RTSP streaming - Continously write to file, delayed playback - Raspberry Pi Forums
hi guys,
relatively new working raspberry pi i'm sorry if simple thing do!
need do:
save live rtsp stream file has maximum length/ file size or something, stop filling drive. need 5 minutes of playback saved @ once, need updated can leave pi running views rtsp stream. brings me second issue. need play saved stream @ 2 minutes behind real time recording (if 11am, want viewing recording @ 10:58am, hence why need save file instead of streaming it). feed camera on 24/7 , pi need view stream 2 minutes behind constantly.
i've tried far:
within terminal have tried using: saves stream file called "video-h264-1" writes until stop recording. have tried add -4 command comes lots of weird symbols , doesn't create file.
once saving/saved stream can play video omxplayer using following: cannot file play in player because raw file (saving mp4 did not work mentioned above)
omxplayer exits playback randomly. no idea why.
if has advice on how to:
1. make save file of rtsp stream continuously overwrite itself
2. playback file 2 minutes behind real time.
3. stream rtsp feed @ 2 minutes behind real time without saving fantastic!
appreciated!
conway
(i understand if post tldr)
relatively new working raspberry pi i'm sorry if simple thing do!
need do:
save live rtsp stream file has maximum length/ file size or something, stop filling drive. need 5 minutes of playback saved @ once, need updated can leave pi running views rtsp stream. brings me second issue. need play saved stream @ 2 minutes behind real time recording (if 11am, want viewing recording @ 10:58am, hence why need save file instead of streaming it). feed camera on 24/7 , pi need view stream 2 minutes behind constantly.
i've tried far:
within terminal have tried using:
code: select all
openrtsp rtsp://stream url
once saving/saved stream can play video omxplayer using following:
code: select all
omxplayer video-h264-1
omxplayer exits playback randomly. no idea why.
if has advice on how to:
1. make save file of rtsp stream continuously overwrite itself
2. playback file 2 minutes behind real time.
3. stream rtsp feed @ 2 minutes behind real time without saving fantastic!
appreciated!
conway
(i understand if post tldr)
i have managed begin saving stream vlc. again, in raw format (doesn't work if transcode mp4 reason.)
i'll using vlc save on openrtsp because have more control on pausing etc. still no way set max file size output though!
i'll using vlc save on openrtsp because have more control on pausing etc. still no way set max file size output though!
raspberrypi
Comments
Post a Comment