arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.39k stars 3.51k forks source link

exec_record_done not working #526

Open izhiliang opened 9 years ago

izhiliang commented 9 years ago

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)
Aman-Aalam commented 9 years ago

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?

hoodsy commented 6 years ago

@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?

sanjivkapur commented 6 years ago

Facing this issue again, any solution?

suparub commented 5 years ago

@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 commented 5 years ago

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

meanii commented 11 months ago

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

what does this mean?