File: encode-testimage

package info (click to toggle)
x265 4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,408 kB
  • sloc: asm: 187,063; cpp: 118,996; ansic: 741; makefile: 146; sh: 91; python: 11
file content (13 lines) | stat: -rwxr-xr-x 363 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# autopkgtest check: Use ffmpeg to produce a 10s test image,
# and use x265 to encode to H.265/HEVC

set -e

cd "$AUTOPKGTEST_TMP"

ffmpeg -y -filter_complex testsrc -t 10 -pix_fmt yuv420p in.y4m
x265 -o out.raw in.y4m
ffprobe -of ini -show_streams out.raw | tee avprobe.txt
grep "^codec_name=hevc" avprobe.txt
grep "^codec_long_name=H.265" avprobe.txt