File: encode-testimage

package info (click to toggle)
x264 2:0.155.2917+git0a84d98-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,732 kB
  • sloc: ansic: 67,842; asm: 37,367; sh: 4,416; lisp: 1,795; python: 1,046; perl: 905; makefile: 385
file content (14 lines) | stat: -rwxr-xr-x 396 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# autopkgtest check: Use ffmpeg to produce a 10s test image,
# and use x264 to encode to H.264 high profile

set -e

cd "$AUTOPKGTEST_TMP"

ffmpeg -y -filter_complex testsrc -t 10 in.avi
x264 --crf 24 -o out.mkv in.avi
ffprobe -of ini -show_streams out.mkv | tee avprobe.txt
grep "^codec_name=h264" avprobe.txt
grep "^codec_long_name=H.264" avprobe.txt
grep "^profile=High" avprobe.txt