node-webrtc / node-webrtc-examples

MediaStream and RTCDataChannel examples using node-webrtc
508 stars 161 forks source link

How to record 30 seconds videos with record-audio-video-stream? #26

Closed codersneha3012 closed 3 years ago

codersneha3012 commented 4 years ago

Hey,

I want it to record videos of 30 seconds each. I have tried duration also but the program stops then, Can you suggest how can I achieve this?

Currently, it records 1st video - 4 secs, 2nd video - 2 secs, and then 3 rd video continues till I stop.

Please do reply.

Malsoine commented 4 years ago

@codersneha3012 I've saw an option in ffmpeg doc named segment you could maybe do what you want with (?) 😄

markandrus commented 3 years ago

Sorry, I think this is beyond the scope of this project.