====== FFmpeg ====== ====== 创建日期 星期日 24 二月 2019 ===== 录音频 ===== ffmpeg -f pulse -i alsa_output.pci-0000_00_14.2.analog-stereo.monitor alsaout.wav ffmpeg -f alsa -i hw:0 alsaout.wav ffmpeg -f alsa -ac 2 -ar 44100 -i hw:Loopback,1,0 out.wav sudo modprobe snd-aloop pcm_substreams=1 ffmpeg -re -f alsa -ac 2 -ar 44100 -i hw:Loopback,1,0 -f flv rtmp://127.0.0.1:1935/live/test ffmpeg -re -i ~/Videos/dde-introduction.mp4 -c copy -f flv rtmp://localhost:1935/hls/test ===== 截屏 ===== ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq out.mpg ffmpeg -re -f x11grab -s wxga -r 25 -i :0.0 -f flv rtmp://localhost:1935/hls/test ffmpeg -i ~/Videos/dde-introduction.mp4 -c:v libx264 -c:a aac -strict -2 -f hls output.m3u8 ffmpeg -i ~/Videos/dde-introduction.mp4 -c:v libx264 -c:a aac -strict -2 -f hls -hls_list_size 0 -hls_time 5 output.m3u8 ffmpeg -re -f x11grab -r 25 -i :0.0 -strict -2 -f hls -hls_list_size 5 -hls_wrap 50 -hls_time 5 output.m3u8