ethand91 / mediasoup3-record-demo

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

Record video only stream #2

Closed mkhahani closed 5 years ago

mkhahani commented 5 years ago

Hi Trying to record a video stream without audio using ffmpeg with the following sdp:

v=0
o=- 0 0 IN IP4 127.0.0.1
s=FFmpeg
c=IN IP4 127.0.0.1
t=0 0
m=video ${video.remoteRtpPort} RTP/AVP 101
a=rtpmap:101 VP8/90000
a=sendonly

But it fails:

... Applying option map (set input stream mapping) with argument 0:a:0. Stream map 0:a:0 matches no streams. To ignore this, add a trailing '?' to the map

ethand91 commented 5 years ago

Hello, FFmpeg is expecting an audio stream, which there isn't any. You will also need to remove the audio args from the command args being passed into ffmpeg.

mkhahani commented 5 years ago

Thanks for the tip. It's working now. 👍