summaryrefslogtreecommitdiffstats
path: root/tools/video_standard
blob: 064641cb26b2cb277366baaef6756484a2377723 (plain)
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
#!/bin/bash
#
# Date:    2009-12-04
# Author:  Ole Kristian Lien
# License: GNU General Public License
#
# Show video standard

EXT=`echo "$1"|awk -F . '{print $NF}'`
FPS=`./video_fps $1`
RES=`./video_resolution $1`

if [ -z "$1" ]; then
	echo "Usage: $0 <video-file>"
	exit 1
fi

if [ "$FPS" == "25" ] ; then
	if [ "$RES" == "720x576" ] ; then
		echo "PAL"
	else
		echo "PAL(?)"
	fi
elif [ "$FPS" == "30" ] ; then # 29.97 ?
	if [ "$RES" == "720x480" ] ; then
		echo "NTCS"
	else
		echo "NTCS(?)"
	fi	
else
	echo "Unkown video standard"
fi