Skip to content

Commit

Permalink
Update thumb.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sergejey committed Nov 15, 2023
1 parent 3ec3ffb commit 0662e5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/thumb/thumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@
//-rtsp_transport tcp // -rtsp_transport tcp
$stream_options = '-timelimit 15 -y -i ' . escapeshellarg($url) . ($resize) . ' -r 5 -f image2 -vframes 1'; //-ss 00:00:01.500
if ($debug_mode) {
$stream_options = '-v verbose ' . escapeshellarg($stream_options);
$stream_options = '-v verbose ' . $stream_options;
}
if ($transport) {
$stream_options = '-rtsp_transport ' . escapeshellarg($transport) . ' ' . escapeshellarg($stream_options);
$stream_options = '-rtsp_transport ' . escapeshellarg($transport) . ' ' . $stream_options;
}
$cmd = PATH_TO_FFMPEG . ' ' . $stream_options . ' ' . escapeshellarg($img);

Expand Down

0 comments on commit 0662e5e

Please sign in to comment.