- 특정 프로세스 kill (awk는 여기서 공백으로 구분된 파일 출력들 중 2번 째를 추출해내는 역할을 함)
# kill -9 `ps -ef | grep ffmpeg | awk '{print $2}'`
# ffmpeg -i ftp://user:[email protected]/sample.mp4 -threads 8 -cpu-used 5 -deadline realtime -an http://localhost:12390/feed1.ffm
- local 환경에서 통신할 때 대역폭 한계 지정, (가상 머신끼리, enp0s8은 인터페이스)
# sudo tc qdisc add dev enp0s8 root handle 1:0 tbf rate 900Mbit burst 500k latency 1ms
# sudo tc qdisc change dev enp0s8 root handle 1:0 tbf rate 900Mbit burst 500k latency 1ms
rm test.cpp
vim test.cpp
g++ -o test test.cpp
./test