-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a rootfs with rustc compiler to compile and run h26forge. h26forge will generate h264 test files to be parsed with Gstreamer h264parse element. Signed-off-by: Benjamin Gaignard <[email protected]>
- Loading branch information
Benjamin Gaignard
committed
Dec 13, 2024
1 parent
5ba8918
commit 64837b7
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
H26FORGE_URL=https://github.com/h26forge/h26forge.git | ||
H26FORGE=target/release/h26forge | ||
output_dir="test_videos" | ||
tool_args="--mp4 --mp4-rand-size --safestart" | ||
generation_args="--small --ignore-edge-intra-pred --ignore-ipcm --config config/default.json" | ||
|
||
git clone --depth 1 $H26FORGE_URL . | ||
|
||
cd h264forge | ||
|
||
cargo build --release | ||
|
||
if [ ! -d h264forge ]; then | ||
echo "can't clone $H26FORGE_URL" | ||
exit 1 | ||
fi | ||
if [ ! -f $H26FORGE ]; then | ||
echo "h26forge not found" | ||
exit 1 | ||
fi | ||
|
||
mkdir -p $output_dir | ||
for i in $(seq -f "%04g" 0 99); do | ||
$H26FORGE $tool_args generate $generation_args -o $output_dir/video$i.264 | ||
gst-launch-1.0 filesrc location=$output_dir/video$i.264.mp4 ! parsebin ! fakesink | ||
done |