Linux
- 2 ответа
- 0 вопросов
1
Вклад в тег
ffmpeg -v verbose -i INPUT_FILE_OR_STREAM \
-vcodec libx264 -acodec aac -ac 1 -af "volume=1.5" -strict -2 -crf 18 \
-profile:v baseline -maxrate 4000k -bufsize 1835k \
-pix_fmt yuv420p -flags -global_header \
-hls_time 10 -hls_list_size 5 -hls_wrap 60 -hls_flags delete_segments \
-start_number 0 /var/www/test/4000/index.m3u8 \
-vcodec libx264 -acodec aac -ac 1 -af "volume=1.5" -strict -2 -crf 18 \
-profile:v baseline -maxrate 2000k -bufsize 1835k \
-s 854x480 -r 25 -pix_fmt yuv420p -flags -global_header \
-hls_time 10 -hls_list_size 5 -hls_wrap 60 -hls_flags delete_segments \
-start_number 0 /var/www/test/2000/index.m3u8 \
-vcodec libx264 -acodec aac -ac 1 -af "volume=1.5" -strict -2 -crf 18 \
-profile:v baseline -maxrate 1000k -bufsize 1835k \
-s 640x360 -r 25 -pix_fmt yuv420p -flags -global_header \
-hls_time 10 -hls_list_size 5 -hls_wrap 60 -hls_flags delete_segments \
-start_number 0 /var/www/test/1000/index.m3u8 \
-vcodec libx264 -acodec aac -ac 1 -af "volume=1.5" -strict -2 -crf 18 \
-profile:v baseline -maxrate 700k -bufsize 1835k \
-s 426x240 -r 25 -pix_fmt yuv420p -flags -global_header \
-hls_time 10 -hls_list_size 5 -hls_wrap 60 -hls_flags delete_segments \
-start_number 0 /var/www/test/700/index.m3u8
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=4000000
4000/index.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2000000
2000/index.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1000000
1000/index.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=700000
700/index.m3u8
/sbin/iptables -I FORWARD 1 -s xxx.xxx.xxx.xxx -p tcp --dport 27017 -j ACCEPT
/sbin/iptables -I FORWARD 2 ! -s 172.16.0.0/12 -p tcp --dport 27017 -j DROP