File: test_filecount_hls

package info (click to toggle)
ffmpegfs 2.2-1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 11,044 kB
  • sloc: cpp: 15,932; sh: 4,644; ansic: 411; makefile: 204; php: 53
file content (14 lines) | stat: -rwxr-xr-x 228 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

ADDOPT=""

. "${BASH_SOURCE%/*}/funcs.sh" "hls"

DIRNAME="${DIRNAME}"/snowboard.mp4

SEGMENTS=3

echo "Checking number of HLS segments is ${SEGMENTS}"
[ $(ls "${DIRNAME}"/*.ts -1 | wc -l) = ${SEGMENTS} ]

echo "OK"