Followed instructions here to install GStreamer on Mac:
https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp
Summary:
mkdir -p amazon-kinesis-video-streams-producer-sdk-cpp/build
cd amazon-kinesis-video-streams-producer-sdk-cpp/build
brew install pkg-config openssl cmake gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly log4cplus gst-libav
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
cmake .. -DBUILD_DEPENDENCIES=OFF -DBUILD_GSTREAMER_PLUGIN=ON
Change AWS Keys and paths in main.js
and run node run main.js
gst-discoverer-1.0 [fileUrl or Path]
gst-launch-1.0 souphttpsrc location=[HLS stream url] ! hlsdemux ! decodebin ! audioconvert ! audioresample ! audio/x-raw, rate=16000 ! autoaudiosink
gst-launch-1.0 souphttpsrc location=[HLS stream url] ! hlsdemux ! decodebin ! videoconvert ! videoscale ! autovideosink
gst-play-1.0 [path to audio file]
gst-inspect-1.0 [plugin name]
gst-launch-1.0 souphttpsrc location=[HLS stream url] ! hlsdemux ! decodebin ! audioconvert ! audioresample ! audio/x-raw, rate=16000 ! flacenc ! filesink location=[path to file]