Using ffplay to play or dump video streaming from websocket
When the video source is websocket, there is no way to directly call ffmpeg/ffplay to play. This tool can warp websocket to stdout , then you can dump data or play video.
git clone https://github.com/svaygame/wssplay.git
cd wsplay
npm install
node index.js -i [websocket source]
node index.js -i [websocket source] -r
node index.js -i [websocket source] -r > [filename].flv
npm ffplay [filename].flv
node index.js -i [websocket source] -r > [filename].ts
npm ffplay [filename].ts