Skip to content

Instantly share code, notes, and snippets.

@ivanovaleksey
Created December 7, 2017 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivanovaleksey/862736980190d8b8030b41dc31198123 to your computer and use it in GitHub Desktop.
Save ivanovaleksey/862736980190d8b8030b41dc31198123 to your computer and use it in GitHub Desktop.
FFmpeg: RTP - MP4
#!/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
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