Skip to content

Instantly share code, notes, and snippets.

@ThomazPom
Last active April 1, 2021 16:07
Show Gist options
  • Save ThomazPom/3ebab31e26e08feb55997c28299ba9bb to your computer and use it in GitHub Desktop.
Save ThomazPom/3ebab31e26e08feb55997c28299ba9bb to your computer and use it in GitHub Desktop.
essentials
apt-get update && apt-get install ffmpeg git default-jdk zip
silent web file :
https://www.google.com/search?q=silent%20wav%20file
bus y4m sample file :
https://www.google.com/search?q=bus_qcif_15fps.y4m
Google chrome with fake media
google-chrome --use-fake-ui-for-media-stream --use-fake-device-for-media-stream --use-file-for-fake-audio-capture=/headless/Downloads/Silent.wav ----use-file-for-fake-video-capture=/headless/Downloads/bus_qcif_15fps.y4m
Chrome ext :
https://github.com/ThomazPom/Chrome-Screen-Capture-Extension
ant-media-server :
https://github.com/ant-media/Ant-Media-Server/releases
Run :
start.sh
Go to http://localhost:5080/
Go to http://localhost:5080/WebRTCApp/
ffmpeg copy stream
ffmpeg -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -i "rtmp://localhost/WebRTCApp/stream1 live=1" -c:v copy -c:a aac -strict -2 -f flv "rtmp://live-api-s.facebook.com:80/rtmp/k.com:80/rtmp/key
ffmpeg -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -loop 1 -i ./screenshot.jpg -r 30 -vf fps=1,realtime -c:a aac -c:v libx264 -x264opts keyint=60:min-keyint=60:scenecut=-1 -f flv "rtmp://live-api-s.facebook.com:80/rtmp/key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment