Open fishfree opened 6 years ago
ts/m3u8 files are hls streaming fragment, and not the record file.
Look at your /tmp/recordings path, and try :
record_path /tmp/recordings/;
instead of
record_path /tmp/recordings;
@tepaze Thank you! I tried "record_path /tmp/recordings/", but no use. Since my config is wrong, but I do want to record RTMP pushing streaming, then how to make it?
i also have the problem as you, too. But i put it in recorder that everything is ok
#RECORDER
application recorder {
live on;
recorder all {
record all;
record_path /tmp/live;
record_max_size 100000K;
#record_max_frames 4;
record_unique on;
record_suffix _%d%m%Y_%H%M%S.flv;
#record_append on;
#record_interval 5s;
#record_notify on;
exec_record_done /bin/ffmpeg -i $path -f mp4 /tmp/live/$basename.mp4;
}
}
I'm a little late on this reply, but make sure NGINX has the right permissions to write to that recording directory.
On Linux
chown -R www-data:www-data /path-to/recordings/
On FreeBSD
chown -R www:www /path-to/recordings/
In my case
chown -R nginx:nginx /var/www/mp4
solved the issue
how to play recordsuffix %d%m%Y_%H%M%S.flv; multi files?
how to play recordsuffix %d%m%Y_%H%M%S.flv; multi files?
Use Amazon S3 for storing that and then download that files on local and play
I followed this tutorial to push RTMP streaming from Open Broadcast Studio to my Ningx-RTMP server. I add the "record all" command in my config file, but still no work. About 10 seconds after stopping push RTMP streaming in Open Broadcast Studio, all the ts/m3u8 files are automatically deleted by Nginx. I'd like Nginx can record these streaming videos at the same time.
My config is as below:
worker_processes auto; events { worker_connections 1024; }
RTMP configuration
rtmp { server { listen 1935; # Listen on standard RTMP port chunk_size 4096;
server_name mydomain.com;
}
http { sendfile off; tcp_nopush on;
aio on;
}