Created
December 7, 2017 11:39
-
-
Save ivanovaleksey/862736980190d8b8030b41dc31198123 to your computer and use it in GitHub Desktop.
FFmpeg: RTP - MP4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ffmpeg \ | |
-protocol_whitelist file,udp,rtp -i sdp.test \ | |
-c:v libx264 -c:a aac \ | |
-y test.mp4 | |
# ffmpeg \ | |
# -protocol_whitelist file,rtp,udp -i sdp.test \ | |
# -c:v libx264 -c:a aac \ | |
# -f segment -segment_time 20 -segment_format_options movflags=+faststart -reset_timestamps 1 \ | |
# segments/test%d.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v=0 | |
o=- 0 0 IN IP4 127.0.0.1 | |
s=RTP Video | |
c=IN IP4 127.0.0.1 | |
t=0 0 | |
a=tool:libavformat 56.15.102 | |
m=audio 10033 RTP/AVP 111 | |
a=rtpmap:111 OPUS/48000/2 | |
m=video 10038 RTP/AVP 96 | |
a=rtpmap:96 VP8/90000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment