File: test_filecount_hls

package info (click to toggle)
ffmpegfs 2.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,360 kB
  • sloc: cpp: 20,671; sh: 4,828; ansic: 325; makefile: 231; php: 53
file content (14 lines) | stat: -rwxr-xr-x 230 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

ADDOPT=""

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

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

SEGMENTS=3

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

echo "OK"