Skip to content

Instantly share code, notes, and snippets.

@thekitp
Forked from wrannaman/Axis Speaker FFMPEG
Created April 19, 2019 05:41
Show Gist options
  • Save thekitp/67ed5d0f52d4b49e231f64300de45e3e to your computer and use it in GitHub Desktop.
Save thekitp/67ed5d0f52d4b49e231f64300de45e3e to your computer and use it in GitHub Desktop.
Play audio (remote or local file) through axis speaker
ffmpeg -i https://s3-us-west-1.amazonaws.com/bucket/audio/file.wav \
-probesize 32 \
-analyzeduration 32 -c:a pcm_mulaw -ab 128k -ac 1 \
-ar 16000 -f wav -chunked_post 0 \
-content_type audio/axis-mulaw-128 \
http://root:[email protected]/axis-cgi/audio/transmit.cgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment