php - VLC quit with execution command -


i use execution command vlc plugin record live stream server , work fine. need message record finished. have tried command when record more 30 sec, error appear.

this 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 error :

fatal error: maximum execution time of 30 seconds exceeded in c:\wamp\www\iptvstream\target_2.php on line 14

kindly, can me how can use vlc quit execution command ?

regards,

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


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -