Skip to content

Commit

Permalink
feat: add new source file, update format_avc_mp4 dlstreamer container…
Browse files Browse the repository at this point in the history
… to v2.0-dev (#65)

Signed-off-by: Sean O'Hair <sean.ohair@intel.com>
  • Loading branch information
seanohair22 authored Oct 9, 2024
1 parent 79ce483 commit 785cdfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions benchmark-scripts/download_sample_videos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# up to 3 bottles and human hand
./format_avc_mp4.sh coca-cola-4465029.mp4 https://www.pexels.com/download/video/4465029 "$1" "$2" "$3"
./format_avc_mp4.sh vehicle-bike.mp4 https://www.pexels.com/download/video/853908 "$1" "$2" "$3"
./format_avc_mp4.sh group-of-friends-smiling-3248275.mp4 https://www.pexels.com/download/video/3248275 "$1" "$2" "$3"
#./format_avc_mp4.sh grocery-items-on-the-kitchen-shelf-4983686.mp4 https://www.pexels.com/video/4983686/download/ $1 $2 $3
./format_avc_mp4.sh video_of_people_walking_855564.mp4 https://www.pexels.com/download/video/855564 "$1" "$2" "$3"
./format_avc_mp4.sh barcode.mp4 https://github.com/antoniomtz/sample-clips/raw/main/barcode.mp4 "$1" "$2" "$3"
2 changes: 1 addition & 1 deletion benchmark-scripts/format_avc_mp4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ SAMPLE_MEDIA_DIR="$PWD"/../sample-media
docker run --network host --privileged --user root --ipc=host -e VIDEO_FILE="$1" -e DISPLAY=:0 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v "$SAMPLE_MEDIA_DIR"/:/vids \
-w /vids -it --rm intel/dlstreamer:2024.1.1-dev-ubuntu22 \
-w /vids -it --rm intel/dlstreamer:2024.2.0-dev-ubuntu22 \
bash -c "if [ -f /vids/$result ]; then exit 1; else gst-launch-1.0 filesrc location=/vids/$1 ! qtdemux ! h264parse ! vaapih264dec ! vaapipostproc width=$WIDTH height=$HEIGHT ! videorate ! 'video/x-raw, framerate=$FPS/1' ! vaapih264enc ! h264parse ! mp4mux ! filesink location=/vids/$result; fi"

rm ../sample-media/"$1"
Expand Down

0 comments on commit 785cdfe

Please sign in to comment.