From df40ff5f5fd865872cb2351da3c38a2c7cddb109 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Wed, 20 Nov 2019 16:29:23 -0800 Subject: [PATCH] Added example to transcode Tears of Steel Signed-off-by: James Ketrenos --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b6a6664..598741c 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,27 @@ AUD_1N-5M.h264 AUD_1N-4M60FPS.h264 ``` +## Want a longer transcode test? + +The following snippet will download the Blender video 'TearsOfSteel' +which is available as H.264 AVC, and then use a pre-built ffmpeg +container to transcode the stream to 5Mbps H.265 HEVC using the GPU. + +```bash +TAG=${TAG:-latest} +mkdir $(pwd)/media +wget -O $(pwd)/media/TeersOfSteel.mp4 \ + http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/TearsOfSteel.mp4 +docker run \ + --rm \ + --device=/dev/dri \ + -e QSV_DEVICE=${QSV_DEVICE:-/dev/dri/renderD128} \ + -it \ + --volume $(pwd)/media:/media \ + intel-media-ffmpeg:${TAG} \ + transcode TearsOfSteel.mp4 TearsOfSteel-5M.mp4 +``` + ## Launch a shell in the container The examples below are all assumed to be running in the container's environment: @@ -209,7 +230,6 @@ OUT_FILE=AUD_1N_ -map [o2] -c:v h264_qsv -b:v 4M /media/"${OUT_FILE}-4M60FPS.h264" ``` - # Appendix A: Multicard Most of the filters and drivers for ffmpeg will default to connecting to