church_vod/www/stop_recording.lua

15 lines
275 B
Lua
Raw Normal View History

2024-02-07 19:43:58 +00:00
local f = assert(io.popen("/usr/bin/killall -INT ffmpeg", "r"))
os.execute("sleep 1")
local s = assert(f:read('*all'))
ngx.say(s:gsub("\n", "\n<br>"))
ngx.say([[
<br>
]])
--[[
<?php
$output = shell_exec("/usr/bin/killall -INT ffmpeg");
echo $output;
echo PHP_EOL.'OK';
?>
]]