Skip to content

Commit

Permalink
quality: replace -r with -framerate in ffmpeg encoding
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Socek <[email protected]>
  • Loading branch information
dsocek authored and dvrogozh committed Apr 6, 2023
1 parent 357e580 commit 5aace60
Show file tree
Hide file tree
Showing 22 changed files with 44 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ streams using pyramid coding and other quality optimizations.
**Example 1: AVC VBR Encode**

```sh
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate \
-i $input -vframes $nframes -y \
-c:v h264_qsv -preset medium -profile:v high \
-b:v $bitrate -maxrate $(bitrate*2) -bitrate_limit 0 \
Expand All @@ -120,7 +120,7 @@ ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
**Example 2: AVC CBR Encode**

```sh
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate \
-i $input -vframes $nframes -y \
-c:v h264_qsv -preset medium -profile:v high \
-b:v $bitrate -maxrate $bitrate -minrate $bitrate -bitrate_limit 0 \
Expand All @@ -131,7 +131,7 @@ ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
**Example 3: HEVC VBR Encode**

```sh
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate \
-i $input -vframes $nframes -y \
-c:v hevc_qsv -preset medium -profile:v main \
-b:v $bitrate -maxrate $(bitrate*2) -bitrate_limit 0 \
Expand All @@ -142,7 +142,7 @@ ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
**Example 4: HEVC CBR Encode**

```sh
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate \
-i $input -vframes $nframes -y \
-c:v hevc_qsv -preset medium -profile:v main \
-b:v $bitrate -maxrate $bitrate -minrate $bitrate -bitrate_limit 0 \
Expand Down
10 changes: 5 additions & 5 deletions doc/quality-lowdelay.rst
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ To achieve better quality for low delay use case with Intel GPU H.264/AVC encode

# LD CBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate -i $inputyuv \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate -i $inputyuv \
-frames:v $numframes -c:v h264_qsv -preset $preset -profile:v high -async_depth 1 \
-b:v $bitrate -maxrate $bitrate -minrate $bitrate -bufsize $((bitrate / 4)) \
-rc_init_occupancy $((bitrate / 8)) -bitrate_limit 0 -low_power ${LOW_POWER:-true} \
Expand Down Expand Up @@ -327,7 +327,7 @@ Example command lines:

# LD CBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate -i $inputyuv \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate -i $inputyuv \
-frames:v $numframes -c:v hevc_qsv -preset $preset -profile:v main -async_depth 1 \
-b:v $bitrate -maxrate $bitrate -minrate $bitrate -bufsize $((bitrate / 4)) \
-rc_init_occupancy $((bitrate / 8)) -low_power ${LOW_POWER:-true} \
Expand Down Expand Up @@ -379,7 +379,7 @@ Example command lines:

# LD CBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate -i $inputyuv \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate -i $inputyuv \
-frames:v $numframes -c:v av1_qsv -preset $preset -profile:v main -async_depth 1 \
-b:v $bitrate -maxrate $bitrate -minrate $bitrate -bufsize $((bitrate / 2)) -rc_init_occupancy $((bitrate / 4)) \
-bf 0 -g 9999 -fps_mode passthrough -y $output
Expand Down Expand Up @@ -416,7 +416,7 @@ ffmpeg-x264
::

# LD CBR (encoding from YUV)
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate \
-i $inputyuv -vframes $numframes -y \
-c:v libx264 -preset medium -profile:v high \
-b:v $bitrate -maxrate $bitrate -minrate $bitrate -bufsize $((bitrate / N)) \
Expand All @@ -428,7 +428,7 @@ ffmpeg-x265
::

# LD CBR (encoding from YUV)
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate \
-i $inputyuv -vframes $numframes -y \
-c:v libx265 -preset medium \
-b:v $bitrate -maxrate $bitrate -minrate $bitrate -bufsize $((bitrate / N)) \
Expand Down
32 changes: 16 additions & 16 deletions doc/quality.rst
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ To achieve better quality with Intel GPU H.264/AVC encoder running EncTools BRC

# VBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate -i $inputyuv \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate -i $inputyuv \
-frames:v $numframes -c:v h264_qsv -preset $preset -profile:v high -async_depth 1 \
-b:v $bitrate -maxrate $((2 * bitrate)) -bitrate_limit 0 -bufsize $((4 * bitrate)) \
-rc_init_occupancy $((2 * bitrate)) -low_power ${LOW_POWER:-true} -look_ahead_depth $lad -extbrc 1 \
Expand All @@ -455,7 +455,7 @@ To achieve better quality with Intel GPU H.264/AVC encoder running EncTools BRC

# CBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate -i $inputyuv \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate -i $inputyuv \
-frames:v $numframes -c:v h264_qsv -preset $preset -profile:v high -async_depth 1 \
-b:v $bitrate -maxrate $bitrate -minrate $bitrate -bitrate_limit 0 -bufsize $((2 * bitrate)) \
-rc_init_occupancy $bitrate -low_power ${LOW_POWER:-true} -look_ahead_depth $lad -extbrc 1 \
Expand Down Expand Up @@ -560,15 +560,15 @@ Example command lines:

# VBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate \
-i $inputyuv -frames:v $numframes -c:v h264_qsv -preset $preset -profile:v high -async_depth 1 \
-b:v $bitrate -maxrate $((2 * bitrate)) -bitrate_limit 0 -bufsize $((4 * bitrate)) \
-rc_init_occupancy $((2 * bitrate)) -low_power ${LOW_POWER:-false} -extbrc 1 -b_strategy 1 -bf 7 -refs 5 -g 256 \
-fps_mode passthrough -y $output

# CBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate \
-i $inputyuv -vframes $numframes -c:v h264_qsv -preset $preset -profile:v high \
-b:v $bitrate -maxrate $bitrate -minrate $bitrate -bitrate_limit 0 -bufsize $((2 * bitrate)) \
-rc_init_occupancy $bitrate -low_power ${LOW_POWER:-false} -extbrc 1 -b_strategy 1 -bf 7 -refs 5 -g 256 \
Expand Down Expand Up @@ -677,7 +677,7 @@ Example command lines:

# VBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate -i $inputyuv \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate -i $inputyuv \
-frames:v $numframes -c:v hevc_qsv -preset $preset -profile:v main -async_depth 1
-b:v $bitrate -maxrate $((2 * bitrate)) -bufsize $((4 * bitrate)) \
-rc_init_occupancy $((2 * bitrate)) -low_power ${LOW_POWER:-true} -look_ahead_depth $lad -extbrc 1 -b_strategy 1 \
Expand All @@ -686,7 +686,7 @@ Example command lines:

# CBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate -i $inputyuv \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate -i $inputyuv \
-frames:v $numframes -c:v hevc_qsv -preset $preset -profile:v main -async_depth 1
-b:v $bitrate -maxrate $bitrate -minrate $bitrate -bufsize $((2 * bitrate)) \
-rc_init_occupancy $bitrate -low_power ${LOW_POWER:-true} -look_ahead_depth $lad -extbrc 1 -b_strategy 1 \
Expand Down Expand Up @@ -788,15 +788,15 @@ Example command lines:

# VBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate -i $inputyuv \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate -i $inputyuv \
-frames:v $numframes -c:v hevc_qsv -preset $preset -profile:v main -async_depth 1 \
-b:v $bitrate -maxrate $((2 * bitrate)) -bufsize $((4 * bitrate)) \
-rc_init_occupancy $((2 * bitrate)) -low_power ${LOW_POWER:-false} -extbrc 1 -bf 7 -refs 4 -g 256 \
-fps_mode passthrough -y $output

# CBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate -i $inputyuv \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate -i $inputyuv \
-frames:v $numframes -c:v hevc_qsv -preset $preset -profile:v main -async_depth 1 \
-b:v $bitrate -maxrate $bitrate -minrate $bitrate -bufsize $((2 * bitrate)) \
-rc_init_occupancy $bitrate -low_power ${LOW_POWER:-false} -extbrc 1 -bf 7 -refs 4 -g 256 \
Expand Down Expand Up @@ -901,7 +901,7 @@ To achieve better quality with Intel GPU AV1 encoder running EncTools BRC we rec

# VBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate -i $inputyuv \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate -i $inputyuv \
-frames:v $numframes -c:v av1_qsv -preset $preset -profile:v main -async_depth 1 \
-b:v $bitrate -maxrate $((2 * bitrate)) -bufsize $((4 * bitrate)) \
-rc_init_occupancy $((2 * bitrate)) -low_power ${LOW_POWER:-true} -look_ahead_depth $lad -extbrc 1 \
Expand All @@ -910,7 +910,7 @@ To achieve better quality with Intel GPU AV1 encoder running EncTools BRC we rec

# CBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate -i $inputyuv \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate -i $inputyuv \
-frames:v $numframes -c:v av1_qsv -preset $preset -profile:v main -async_depth 1 \
-b:v $bitrate -maxrate $bitrate -minrate $bitrate -bufsize $((2 * bitrate)) \
-rc_init_occupancy $bitrate -low_power ${LOW_POWER:-true} -look_ahead_depth $lad -extbrc 1 \
Expand Down Expand Up @@ -1007,15 +1007,15 @@ Example command lines:

# VBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate -i $inputyuv \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate -i $inputyuv \
-frames:v $numframes -c:v av1_qsv -preset $preset -profile:v main -async_depth 1 \
-b:v $bitrate -maxrate $((2 * bitrate)) -bufsize $((4 * bitrate)) \
-rc_init_occupancy $((2 * bitrate)) -b_strategy 1 -bf 7 -g 256 \
-fps_mode passthrough -y $output

# CBR (encoding from YUV with ffmpeg-qsv)
ffmpeg -init_hw_device vaapi=va:${DEVICE:-/dev/dri/renderD128} -init_hw_device qsv=hw@va -an \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate -i $inputyuv \
-f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate -i $inputyuv \
-frames:v $numframes -c:v av1_qsv -preset $preset -profile:v main -async_depth 1 \
-b:v $bitrate -maxrate $bitrate -minrate $bitrate -bufsize $((2 * bitrate)) \
-rc_init_occupancy $bitrate -b_strategy 1 -bf 7 -g 256 \
Expand Down Expand Up @@ -1073,14 +1073,14 @@ ffmpeg-x264
::

# VBR (encoding from YUV)
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate \
-i $inputyuv -vframes $numframes -y \
-c:v libx264 -preset medium -profile:v high \
-b:v $bitrate -bufsize $((2 * bitrate)) -maxrate $((2 * bitrate)) \
-tune psnr -threads 12 -fps_mode passthrough $output

# CBR (encoding from YUV)
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate \
-i $inputyuv -vframes $numframes -y \
-c:v libx264 -preset medium -profile:v high \
-b:v $bitrate -x264opts no-sliced-threads:nal-hrd=cbr \
Expand All @@ -1092,14 +1092,14 @@ ffmpeg-x265
::

# VBR (encoding from YUV)
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate \
-i $inputyuv -vframes $numframes -y \
-c:v libx265 -preset medium \
-b:v $bitrate -maxrate $((2 * bitrate)) -bufsize $((2 * bitrate)) \
-tune psnr -threads 12 -fps_mode passthrough $output

# CBR (encoding from YUV)
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -r $framerate \
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v ${width}x${height} -framerate $framerate \
-i $inputyuv -vframes $numframes -y \
-c:v libx265 -preset medium \
-b:v $bitrate -maxrate $bitrate -minrate $bitrate -bufsize $((2 * bitrate)) \
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/AV1/run_cbr_ffmpeg-qsv-ld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/AV1/run_cbr_ffmpeg-qsv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/AV1/run_cbr_ffmpeg-ref-ld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/AV1/run_cbr_ffmpeg-ref.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/AV1/run_vbr_ffmpeg-qsv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/AV1/run_vbr_ffmpeg-ref.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/AVC/run_cbr_ffmpeg-qsv-ld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/AVC/run_cbr_ffmpeg-qsv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/AVC/run_cbr_ffmpeg-ref-ld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/AVC/run_cbr_ffmpeg-ref.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/AVC/run_vbr_ffmpeg-qsv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/AVC/run_vbr_ffmpeg-ref.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/HEVC/run_cbr_ffmpeg-qsv-ld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/HEVC/run_cbr_ffmpeg-qsv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/HEVC/run_cbr_ffmpeg-ref-ld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/HEVC/run_cbr_ffmpeg-ref.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/HEVC/run_vbr_ffmpeg-qsv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/HEVC/run_vbr_ffmpeg-ref.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [[ "${file##*.}" =~ (yuv|YUV) ]]; then
shift
format=$1
shift
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt $format -s:v ${width}x${height} -framerate $framerate"
else
nframes=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion measure/quality/measure-quality
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ if [ "$skip_metrics" = "no" ]; then
out=${outprefix}_${b}Mbps_${rc}_${apps[i]}.$ext
[[ ! -f $out ]] && continue
if [ "$is_yuv" = "yes" ]; then
rawvideo="-f rawvideo -pix_fmt ${pix_fmt} -s:v ${width}x${height} -r $framerate"
rawvideo="-f rawvideo -pix_fmt ${pix_fmt} -s:v ${width}x${height} -framerate $framerate"
fi

metrics=""
Expand Down

0 comments on commit 5aace60

Please sign in to comment.