سؤال

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