nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

exec_record_done not working

Open izhiliang opened this issue 10 years ago • 6 comments

env

nginx: 1.7.6,    nginx-rtmp-module: master

config

application record {
            live on;
            record all;
            record_path /data/video/recordStreams;
            record_unique on;
            record_interval 30s;
            exec_record_done ffmpeg -i $path -c copy $dirname/$basename.mp4;
        }

debug log

2014/11/29 23:01:43 [info] 56972#0: *2 exec: starting unmanaged child 'ffmpeg', client: 127.0.0.1, server: 0.0.0.0:1935
2014/11/29 23:01:43 [debug] 56972#0: *2 exec: child 'ffmpeg' started pid=56987
...
2014/11/29 23:01:43 [debug] 56972#0: kevent timer: 59714, changes: 0
2014/11/29 23:01:43 [notice] 56972#0: signal 20 (SIGCHLD) received
2014/11/29 23:01:43 [notice] 56972#0: unknown process 56987 exited with code 1
2014/11/29 23:01:43 [debug] 56972#0: shmtx forced unlock
2014/11/29 23:01:43 [debug] 56972#0: kevent events: -1
2014/11/29 23:01:43 [info] 56972#0: kevent() failed (4: Interrupted system call)

izhiliang avatar Nov 29 '14 15:11 izhiliang

Although I don't yet have a debug log, but I am facing similar issue where exec_record_done doesn't invoke the given command Any updates?

Aman-Aalam avatar Jan 21 '15 12:01 Aman-Aalam

@jordzhang @Sheikh-Aman I'm also experiencing this – exec_record_done works if I call ffmpeg, but not a .sh script that works manually... Any solution?

hoodsy avatar May 07 '18 16:05 hoodsy

Facing this issue again, any solution?

sanjivkapur avatar Jul 11 '18 01:07 sanjivkapur

@jordzhang @Sheikh-Aman I'm also experiencing this – exec_record_done works if I call ffmpeg, but not a .sh script that works manually... Any solution?

same here

suparub avatar Feb 21 '19 16:02 suparub

Found the solution : don't create your scripts on windows but on the terminal !

suparub avatar Feb 21 '19 17:02 suparub

Found the solution : don't create your scripts on windows but on the terminal !

what does this mean?

meanii avatar Nov 07 '23 10:11 meanii