문제

i use an execution command from VLC plugin to record a live stream from my server and it work fine. but also i need to get a message that the record is finished. i have tried this command but when the record is more than 30 sec, a error appear.

this is the command :

$file = 'vlc '.$inputstream.' --run-time='.$sec.' --sout "#duplicate{dst=display{noaudio},dst=std{access=file,mux=mov,dst='.$path.'}" vlc://quit ';
echo exec($file);

and this is the error :

Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\IPTVStream\target_2.php on line 14

kindly, can you help me how i can use VLC quit with execution command ?

regards,

도움이 되었습니까?

해결책

use set_time_limit(0); before calling the exec function. This removes the time limit

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top