slhck / ffmpeg-normalize

Audio Normalization for Python/ffmpeg
MIT License
1.25k stars 117 forks source link

RTMP URL as input #127

Closed esmondgh closed 4 years ago

esmondgh commented 4 years ago

In my case, I have an RTMP URL as an input. How to use ffmpeg-normalize?

rtmp {
    server {
            listen 1935;
            chunk_size 4096;

            application live {
                    live on;
                    record off;
                    exec ffmpeg -i rtmp://localhost/live/$name -threads 1 -c:v libx264 -profile:v baseline -b:v 350K -s 640x360 -f flv -c:a aac -ac 1 -strict -2 -b:a 56k rtmp://localhost/live360p/$name;
            }
            application live360p {
                    live on;
                    record off;
        }
    }
}
slhck commented 4 years ago

So you want to run it on a live source? This is not possible. You need to extract the portion you want to normalize and run the tool on that.