This file is indexed.

/usr/bin/subtitles is in xawtv 3.103-3build1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#! /bin/bash
#
# display teletext subtitles (PAL) in xawtv
# required: alevt-cap, xawtv-remote
#

# config
cc_tty=0
charset="latin-1"
device="/dev/vbi0"

##########################################################################
# helpers

function usage() {
cat <<EOF
This script displays teletext subtitles within xawtv.
It needs the alevt-cap and xawtv-remote utilities.

usage: `basename $0` [ options ] <pagenr>
   <pagenr> is the teletext page which is used for the
   subtitles. In germany it is usually page 150.

options:
   -help                this text
   -tty                 write subtitles also to the tty
   -charset <charset>   latin-1/2 (default: $charset)
   -vbi <dev>           vbi device (default: $device)
EOF
}

##########################################################################
# parse args

done=0
while test "$done" = "0"; do
	case "$1" in
		-h | -help | --help)
			usage
			exit 0
			;;
		-tty)
			cc_tty=1
			shift
			;;
		-charset)
			charset="$2"
			shift; shift
			;;
		-vbi)
			device="$2"
			shift; shift
			;;
		-*)
			echo "unknown option: $1, try -h for help"
			exit 1
			;;
		*)
			page="$1"
			done=1
			;;
	esac
done

if test "$page" = ""; then
	usage
	exit 1
fi


##########################################################################
# main loop

echo "displaying subtitles, using page $page"
echo "hit ^C to exit"
IFS="
"
xawtv-remote vtx || exit
trap "xawtv-remote vtx" EXIT
while true; do
	set -- `alevt-cap -finetune auto -format ansi	\
		-charset $charset -vbi $device		\
		-name /dev/stdout $page | grep -v "^\[40m[ ]\+\[m$"`
	shift
	xawtv-remote vtx $* || exit
	if test "${cc_tty}" != 0; then
		while test "$1" != ""; do echo $1; shift; done
		echo "-- "
	fi
done