Trying to record stream in small chunks
My RTMP config is as simple as this:
rtmp {
server {
listen 1935;
chunk_size 4096;
allow publish all;
application stream {
record all;
record_path /opt/data/recordings;
record_unique on;
record_interval 3s;
}
}
}
And despite the settings for record_interval, I end up with video chunks 120s long each!
After several hours of not understanding what was going on, I don’t know what to do aside from making a smaller, easier to reproduce test case and submitting as a bug. My Nginx version is 1.23.3 and my rtmp version is 1.2.2, compiled with the following flags:
—with-threads
—with-file-aio
—with-http_ssl_module
—with-debug
Any thoughts would be appreciated! My goal here is to create a vod that can be consumed in real time, so chunking to vod and distributing the vod files as little as 3s behind the live stream seemed like a good idea.
Best,
Tim Winter
Read more here: Source link
