nginx ffmpeg hls streaming заполняет мой жесткий диск - PullRequest
1 голос
/ 19 апреля 2020

Я использую nginx и ffmpeg на моей windows 10 машине. Все работает хорошо, но мой жесткий диск продолжает заполняться. Это мои командные строки

ffmpeg -i "http://192.168.1.2:9566/history/" -copytb 1 -filter_complex "[0:v][0:s:1]overlay[v];[v]pp=fd,scale=720:-1[y]" -map [y] -map 0:1 -s 720x576 -pix_fmt yuv420p -b:v 1800k -maxrate 2000k -bufsize 3000k -c:v libx264 -strict 2 -profile:v "main" -preset superfast  -acodec aac -ac 2 -ar 44100 -ab 128k -vsync 1 -async 1 -f hls -hls_time 5 -hls_list_size 6 -segment_wrap 10 -hls_flags delete_segments "D:\media\hls\history.m3u"

Сегменты HLS идут в D: \ media \ hls Этот диск D: в порядке, он не заполняется.

Но C: \ раздел постоянно заполняется.

ffmpeg.exe выполняется из папки: C: \ Users \ Stefki \ Desktop \ ffmpeg-latest-win64-stati c (1) \ ffmpeg-latest-win64-static \ bin

VL C play link http://192.168.2.254/hls/history.m3u OK

Спасибо всем, надеюсь, любой опытный dev может помочь мне:)

Это мой nginx файл конфигурации

worker_processes 1;

events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

    server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   html;
            index  index.html index.htm;
        }
         location /hls {
            types {
                application/vnd.apple.mpegurl m3u8;
                video/mp2t ts;
            }
            root D:/media;
            add_header Cache-Control no-cache;
            }
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...