File: encode-testimage

package info (click to toggle)
libvpx 1.15.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,932 kB
  • sloc: ansic: 252,377; cpp: 115,241; asm: 22,233; sh: 5,291; python: 4,391; perl: 2,010; makefile: 431
file content (13 lines) | stat: -rwxr-xr-x 376 bytes parent folder | download | duplicates (6)
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 vpxenc to encode to VP9

set -e

cd "$AUTOPKGTEST_TMP"

ffmpeg -y -filter_complex testsrc -t 10 -pix_fmt yuv420p in.y4m
vpxenc --codec=vp9 -o out.raw in.y4m
ffprobe -of ini -show_streams out.raw | tee avprobe.txt
grep "^codec_name=vp9" avprobe.txt
grep "^codec_long_name=Google VP9" avprobe.txt