Web Interface For Lite Argus Control modules
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php function output_dummy( $DST ){ $FD = fopen( $DST, "r" ); if( $FD ){ header( 'Content-Type: video/mp4;' ); while(!feof( $FD ) ){ echo fread( $FD, 2048 ); }; fclose( $FD ); }; }; if( isset( $_POST['FTS'] ) ){ ob_implicit_flush(true); ignore_user_abort(true); while( ob_get_level() ) ob_end_clean(); $DTS = intval( $_POST['FTS'] ); $MD5 = $_POST['FMD']; $SRC = 'data/reports/' . date("Y/m/d", $DTS ) . '/'. $MD5. '.mjpeg'; $FPS = intval( $_POST['FPS'] ); if( file_exists( $SRC ) ){ $DST = '../tmp/' . $MD5 . '.avi'; $COM = "ffmpeg -hide_banner -loglevel error -y -r {$FPS} -i {$SRC} -vcodec copy {$DST} 2>&1"; $JUJA = `rm -f ../tmp/*`; $JUJA = `$COM`; if( file_exists( $DST ) ){ echo '/lib/tmp/' . $MD5 . '.avi'; } else echo "/lib/controller/".$SRC; } else echo '/style/assets/nosignal.mp4'; } else echo '/style/assets/nosignal.mp4';?>
|