Skip to content

Commit

Permalink
remove video thumbnail creation from stream transcode (will be moved …
Browse files Browse the repository at this point in the history
…to core code cron)
  • Loading branch information
brookgagnon committed Aug 1, 2024
1 parent b10efa5 commit dc2bc07
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/stream/transcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

// some settings
define('OB_STREAM_VERSION', 1); // update this to re-transcode, etc.
define('OB_THUMBNAIL_VERSION', 1); // update this to regenerate thumbnails

// db init
require(__DIR__.'/../../components.php');
Expand All @@ -54,8 +53,6 @@
AND (
stream_version IS NULL
OR stream_version < '.OB_STREAM_VERSION.'
OR thumbnail_version IS NULL
OR thumbnail_version < '.OB_THUMBNAIL_VERSION.'
)
');

Expand Down Expand Up @@ -215,7 +212,7 @@
}

// handle thumbnail creation next
// handle stream/transcode first
/*
foreach ($media as $item) {
// skip item if up to date
if ($item['thumbnail_version']>=OB_THUMBNAIL_VERSION) {
Expand Down Expand Up @@ -320,3 +317,4 @@
$db->update('media', ['thumbnail_version'=>OB_THUMBNAIL_VERSION]);
}
}
*/

0 comments on commit dc2bc07

Please sign in to comment.