Comments (2)
Create an sdp.txt file with the following contents.
v=0
o=- 0 0 IN IP4 [mediasoup server ip]
s=FFmpeg
c=IN IP4 [mediasoup server ip]
t=0 0
m=video [mediasoup consumer rtp port] RTP/AVP [video codec payloadType]
a=rtpmap :[video codec payloadType] VP8/90000
a=sendonly
m=audio [mediasoup consumer rtp port] RTP/AVP [audio codec payloadType]
a=rtpmnap:[audio codec payloadType] opus/48000/2
a=sendonly
then create the script
#!/bin/bash
ffmpeg -protocol_whitelist file,udp,rtp -fflags +genpts -f sdp -i sdp.txt -map 0:v:0 -c:v copy -map 0:a:0 -strict 2 -c:a copy -flags +global_header file.webm
from mediasoup3-record-demo.
Thanks you !
-
I have 2 question: can you a real sample of the sdp.txt (because you never know if you have to use double quote, simple quote, escape strings on parameters such as: [video codec payloadType]
-
How to get the [mediasoup consumer rtp port] from JS ? - since the goal is to control the recording with JS with buttons like "startRecord" and "stopRecord"
Regards
from mediasoup3-record-demo.
Related Issues (20)
- How can I just use FFmpeg command in terminal to record?
- How can I record in another computer instead of the computer which the medaisoup server is running? HOT 1
- recording a stream with the mediasoup demo ?
- Websocket connection failing HOT 7
- recorded file is of 0 bytes HOT 1
- Firefox not recording HOT 2
- when we disable video and enable back FFmpeg doesn't add the video track back. HOT 3
- Handle getUserMedia errors HOT 1
- Multiple codec support
- Docker support
- npm install error HOT 1
- Does it supports individual audio recording of room HOT 1
- Unhandle Promise Rejection: HOT 2
- work Compilation Error with c++ standard HOT 1
- Firefox does not allow to camera
- On record, video and sound does not match HOT 1
- FFmpeg error "dimensions not set" HOT 1
- ffmpeg child_process close unwanted
- refactor server with Typescript HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediasoup3-record-demo.