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

exec_record_done or exec_publish_done

Open kenanchristian opened this issue 7 years ago • 5 comments

Can anyone explain which one to use in some use cases? I record all of the live stream, which one should I use?

The live streaming have support on pausing which is disconnect from the media server then reconnect with the same stream name. Which one should I use for this kind of use case? I need to know when the user pauses / stopped the stream, I'm thinking of using one of these two event to call an API

kenanchristian avatar Jun 04 '17 15:06 kenanchristian

Use exec_record_done to manage recordings, and exec_publish_done to manage logging the user out, destroying the stream key etc.

UKNickyD avatar Nov 17 '17 01:11 UKNickyD

@kenanchristian @UKNickyD Did you have success with exec_record_done? I'm only able to run the ffmpeg command with it, nothing else

hoodsy avatar May 07 '18 19:05 hoodsy

hi, im facing the same problem if i want to run a script and run it from conf file i dosnt fire up.

I did create a file addtodatabase.sh in /home/addtodatabase.sh and I add the following code :

#!/bin/bash echo "INSERT INTO comments (comment,owner,live_id) VALUES ('test, '2', '9');" | mysql -uUSER-pPASS DB_NAME;

if I execute it in from the command line it works 100% fine.

and on the nginx.conf I did try

exec_record_done bash -c "/home/addtodatabase.sh";

but it does not work is there someone can help me with this problem Thank You.

haythembenkhlifa avatar Jul 26 '19 09:07 haythembenkhlifa

Any solution?

patrikrask avatar Oct 30 '20 08:10 patrikrask

I also encountered this problem. Has anyone solved it? thank you

1798972 avatar Feb 23 '23 09:02 1798972