Skip to content

Commit

Permalink
Fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
waliid committed Jan 20, 2025
1 parent 3f80512 commit af6f11e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Scripts/public/test-streams.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -ex

SCRIPT_DIR=$(dirname "$0")

Expand Down Expand Up @@ -30,12 +30,12 @@ function generate_sources {
mkdir -p "$dest_dir"

# Video
ffmpeg -f lavfi -i testsrc=duration=4:size=640x360:rate=30 -pix_fmt yuv420p -g 30 "$dest_dir/source_640x360.mp4" > /dev/null 2>&1
ffmpeg -f lavfi -i testsrc=duration=4:size=360x360:rate=30 -pix_fmt yuv420p -g 30 "$dest_dir/source_360x360.mp4" > /dev/null 2>&1
pkgx ffmpeg -f lavfi -i testsrc=duration=4:size=640x360:rate=30 -pix_fmt yuv420p -g 30 "$dest_dir/source_640x360.mp4" > /dev/null 2>&1
pkgx ffmpeg -f lavfi -i testsrc=duration=4:size=360x360:rate=30 -pix_fmt yuv420p -g 30 "$dest_dir/source_360x360.mp4" > /dev/null 2>&1

# Audio
ffmpeg -f lavfi -i anullsrc=duration=4:channel_layout=stereo:sample_rate=44100 -metadata:s:a:0 language=eng "$dest_dir/source_audio_eng.mp4" > /dev/null 2>&1
ffmpeg -f lavfi -i anullsrc=duration=4:channel_layout=stereo:sample_rate=44100 -metadata:s:a:0 language=fre "$dest_dir/source_audio_fre.mp4" > /dev/null 2>&1
pkgx ffmpeg -f lavfi -i anullsrc=duration=4:channel_layout=stereo:sample_rate=44100 -metadata:s:a:0 language=eng "$dest_dir/source_audio_eng.mp4" > /dev/null 2>&1
pkgx ffmpeg -f lavfi -i anullsrc=duration=4:channel_layout=stereo:sample_rate=44100 -metadata:s:a:0 language=fre "$dest_dir/source_audio_fre.mp4" > /dev/null 2>&1
}

function generate_simple_streams {
Expand Down

0 comments on commit af6f11e

Please sign in to comment.