@@ -20,19 +20,64 @@ def testCreateInputFileFromUnexistingFilename():
20
20
av .InputFile ( inputFileName )
21
21
22
22
23
- def testInputFileAnalyseFirstGop ():
23
+ @raises (RuntimeError )
24
+ def testInputFileAnalyseHeaderTryToAccessisInterlaced ():
24
25
"""
25
- Analyse the first gop of an InputFile, and check if the correct attributes are filled .
26
+ Analyse only header of an InputFile, and try to access a properties computed when access the first GOP .
26
27
"""
27
28
inputFileName = os .environ ['AVTRANSCODER_TEST_VIDEO_MOV_FILE' ]
28
- inputFile = av .InputFile ( inputFileName )
29
+ inputFile = av .InputFile (inputFileName )
30
+
31
+ # The analyse of the first GOP is not done yet
32
+ videoProperties = inputFile .getProperties ().getVideoProperties ()[0 ]
33
+ videoProperties .isInterlaced ()
34
+
35
+
36
+ @raises (RuntimeError )
37
+ def testInputFileAnalyseHeaderTryToAccessisTopFieldFirst ():
38
+ """
39
+ Analyse only header of an InputFile, and try to access a properties computed when access the first GOP.
40
+ """
41
+ inputFileName = os .environ ['AVTRANSCODER_TEST_VIDEO_MOV_FILE' ]
42
+ inputFile = av .InputFile (inputFileName )
29
43
30
44
# The analyse of the first GOP is not done yet
31
45
videoProperties = inputFile .getProperties ().getVideoProperties ()[0 ]
32
- assert_equals (videoProperties .isInterlaced (), False )
33
- assert_equals (videoProperties .isTopFieldFirst (), False )
34
- assert_equals (videoProperties .getGopSize (), 0 )
35
- assert_equals (videoProperties .getGopStructure (), ())
46
+ videoProperties .isTopFieldFirst ()
47
+
48
+
49
+ @raises (RuntimeError )
50
+ def testInputFileAnalyseHeaderTryToAccessisGopSize ():
51
+ """
52
+ Analyse only header of an InputFile, and try to access a properties computed when access the first GOP.
53
+ """
54
+ inputFileName = os .environ ['AVTRANSCODER_TEST_VIDEO_MOV_FILE' ]
55
+ inputFile = av .InputFile (inputFileName )
56
+
57
+ # The analyse of the first GOP is not done yet
58
+ videoProperties = inputFile .getProperties ().getVideoProperties ()[0 ]
59
+ videoProperties .getGopSize ()
60
+
61
+
62
+ @raises (RuntimeError )
63
+ def testInputFileAnalyseHeaderTryToAccessisGopStructure ():
64
+ """
65
+ Analyse only header of an InputFile, and try to access a properties computed when access the first GOP.
66
+ """
67
+ inputFileName = os .environ ['AVTRANSCODER_TEST_VIDEO_MOV_FILE' ]
68
+ inputFile = av .InputFile (inputFileName )
69
+
70
+ # The analyse of the first GOP is not done yet
71
+ videoProperties = inputFile .getProperties ().getVideoProperties ()[0 ]
72
+ videoProperties .getGopStructure ()
73
+
74
+
75
+ def testInputFileAnalyseFirstGop ():
76
+ """
77
+ Analyse the first gop of an InputFile, and check if the correct attributes are filled.
78
+ """
79
+ inputFileName = os .environ ['AVTRANSCODER_TEST_VIDEO_MOV_FILE' ]
80
+ inputFile = av .InputFile ( inputFileName )
36
81
37
82
# Analyse first GOP
38
83
progress = av .NoDisplayProgress ()
0 commit comments