Combining/Merge existing mp4 file to incoming stream buffer(RTMP)

0

So What i want to do when i start streaming through OBS studio i want the stream to be attached to my existing mystream.mp4 file.

Right now it is overwriting old mystream.mp4

/usr/bin/ffmpeg -y -fflags nobuffer -i rtmp://127.0.0.1:1935/live/768851640030630431881514 -c:v copy -c:a aac -f tee -map 0:a? -map 0:v? [movflags=faststart]./media/live/768851640030630431881514/mystream.mp4|[hls_time=2:hls_list_size=3:hls_flags=delete_segments]./media/live/768851640030630431881514/index.m3u8|

The reason i did this becuase I was using this https://github.com/illuspas/Node-Media-Server package as media server for live streaming. and it is working fine. but now i need to allow pause and resume functionality becuase to handle internet connectivity issue and many more. So what i am thing is that I don't need pause or resume function, If i can just create a new IncomingStream, and reattach the new IncomingStream to old one.

I believe just tweaking that command can help me. Any ideas or support is appreciated.

Syed M Sohaib

Posted 2019-07-22T15:44:24.293

Reputation: 1

No answers