Open bobahvas opened 6 years ago
I also had issue with saving mp4 record of rtmp stream. I'm using Windows as well. When stream stopped Node-media-server kills ffmpeg process before it can correcly finish record and add moov atom block in the begining of file. So when i try to deal with mp4 file i got: moov atom not found error. Solution for me was to remove 'this.ffmpeg_exec.kill();' line from node_trans_session.js file.
I've changed to this.ffmpeg_exec.stdin.write('q') instead of 'this.ffmpeg_exec.kill();' as I've seen it on internet on "how to quit ffmpeg from nodejs". It works for me.... Hope it helps you.
I've changed to this.ffmpeg_exec.stdin.write('q') instead of 'this.ffmpeg_exec.kill();' as I've seen it on internet on "how to quit ffmpeg from nodejs". It works for me.... Hope it helps you.
Its work, thank you!
I got same error on last version
P.s. I've made the changes suggested in this issue, still have problems on bigger files.
Output:
Configuration: