Skip to content

Commit

Permalink
fix: add more debugging statements
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Wang <[email protected]>
  • Loading branch information
jim-wang-intel committed Jan 12, 2024
1 parent cbf4f8e commit 5b05512
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions benchmark-scripts/format_avc_mp4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ fi
echo "$WIDTH $HEIGHT $FPS"
SAMPLE_MEDIA_DIR="$PWD"/../sample-media
echo "SAMPLE_MEDIA_DIR:$SAMPLE_MEDIA_DIR"
echo 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 intel/dlstreamer:2023.0.0-ubuntu22-gpu682-dpcpp \
bash -c "if [ -f /vids/$result ]; then echo 'error for '$result; 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"

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 \
Expand Down

0 comments on commit 5b05512

Please sign in to comment.