Skip to content

Commit 0b24a89

Browse files
author
Clement Champetier
committed
pyTest: check streams properties when testAddAllStreamsOfAGivenFile
1 parent 3fae1a2 commit 0b24a89

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/pyTest/testTranscoderAdd.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,19 @@ def testAddAllStreamsOfAGivenFile():
6969
# process
7070
progress = av.ConsoleProgress()
7171
transcoder.process( progress )
72+
73+
# get src file
74+
src_inputFile = av.InputFile( inputFileName )
75+
src_properties = src_inputFile.getProperties()
76+
src_streams_properties = src_properties.getStreamProperties()
77+
78+
# get dst file
79+
dst_inputFile = av.InputFile( outputFileName )
80+
dst_properties = dst_inputFile.getProperties()
81+
dst_streams_properties = dst_properties.getStreamProperties()
82+
83+
import testTranscoderRewrap
84+
# for each stream
85+
for src_stream, dst_stream in zip(src_streams_properties, dst_streams_properties):
86+
# check properties
87+
testTranscoderRewrap.checkStream(src_stream, dst_stream)

0 commit comments

Comments
 (0)