Skip to content

Instantly share code, notes, and snippets.

@tomoyanonymous
Last active April 14, 2020 11:27
Show Gist options
  • Save tomoyanonymous/c4c548995b73a45b9e5b90af00a86ce2 to your computer and use it in GitHub Desktop.
Save tomoyanonymous/c4c548995b73a45b9e5b90af00a86ce2 to your computer and use it in GitHub Desktop.
ffmpeg streaming command memo
#send
ffmpeg -f avfoundation -re -i \"none:BlackHole 16ch\" -c:a pcm_s16le -ac:a 4 -f rtp rtp://localhost:30000 -sdp_file test.sdp
#receive
ffplay -protocol_whitelist "rtp,udp,file" -i "rtp://127.0.0.1:30000"
@tomoyanonymous
Copy link
Author

note that channel information is not included in sdp file when a codec is pcm_s16le(if mulaw, included)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment