PHP code example of eminos / statamic-video-tools

1. Go to this page and download the library: Download eminos/statamic-video-tools library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

eminos / statamic-video-tools example snippets


'containers' => [
    'assets' => [
        'presets'       => ['av1_1080p', 'mp4_1080p'],
        'transcription' => false, // override per-container; or omit to inherit global setting
    ],
    'talks' => [
        'presets'       => ['av1_1080p', 'mp4_1080p'],
        'transcription' => true,  // always transcribe videos in this container
    ],
],

'transcription' => [
    'enabled' => true, // global default; overridable per container above
    'model'   => env('WHISPER_MODEL', storage_path('app/whisper/models/ggml-base.bin')),
],
bash
php artisan vendor:publish --tag=statamic-video-tools-config
bash
php artisan video-tools:download-ffmpeg
bash
php artisan video-tools:download-whisper
php artisan video-tools:download-whisper --model=small  # better accuracy