Skip to content

Commit c272ac2

Browse files
Use native analyzer media kind in FFmpeg 9.1 smoke test
1 parent 7f3f195 commit c272ac2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tools/test_and_package_ffmpeg91.ps1‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ New-Item -ItemType Directory -Force 'native-smoke' | Out-Null
7070
& $facut --json analyze batch 'native-smoke' --engine native --mode fast --output-directory 'native-smoke/results'
7171
$result = Get-Content -Raw -Encoding UTF8 'native-smoke/results/native-results.json' | ConvertFrom-Json
7272
$photo = @($result.results | Where-Object { $_.kind -eq 'image' })
73-
$video = @($result.results | Where-Object { $_.kind -eq 'video' })
73+
$video = @($result.results | Where-Object { $_.kind -eq 'media' -and $null -ne $_.video })
7474
if ($photo.Count -ne 1 -or @($photo[0].representative_frames).Count -ne 1) { throw 'Still-image scan failed' }
7575
if ($video.Count -ne 1 -or !$video[0].representative_frames -or !$video[0].waveform.peaks -or
76-
$video[0].waveform.sample_rate -ne 48000) { throw 'Video frames or original audio waveform missing' }
76+
$video[0].audio.sample_rate -ne 48000 -or $video[0].waveform.sample_rate -ne 48000) { throw 'Video frames or original audio waveform missing' }
7777

7878
# Test installation with a fresh destination and explicitly excluded model weights.
7979
$installed = Join-Path $env:RUNNER_TEMP 'facut91-installed-smoke'

0 commit comments

Comments
 (0)