ethand91 / mediasoup3-record-demo

Simple Record Demo using Mediasoup 3 and GStreamer
198 stars 93 forks source link

How can I just use FFmpeg command in terminal to record? #49

Closed 704760107 closed 3 years ago

704760107 commented 3 years ago

Hello! I tried to use FFmpeg command in terminal to recoed, so that I can record in another computer.I changed code so that node won't start FFmpeg process after everything was OK,then I save sdp string named "1.sdp",finally,I use command "ffmpeg --protocol_whitelist "file,udp,rtp" -i 1.sdp -acodec copy -vcodec copy out.webm",but I just got a video which was always black and without sound.I also tried to add parameters which was in the "ffmpeg.js",but it didn't work. I refered to the information on the Internet,many blogs said that "ffmpeg --protocol_whitelist "file,udp,rtp" -i 1.sdp" will work,but the truth was not so.