Skip to content

Commit 9abcb90

Browse files
author
Valentin Noel
committed
Test: check output files duration directly through file properties
Into audio channels muxing tests
1 parent a26bae9 commit 9abcb90

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

test/pyTest/testMuxAudioChannels.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,13 @@ def testMuxAudioChannelsFromDifferentFormatInputs_20():
4848

4949
assert_equals(min_src_duration, audioStat.getDuration())
5050

51-
# check dst audio streams
51+
# check dst file properties
5252
dst_inputFile = av.InputFile(outputFileName)
53-
dst_audioProperties = dst_inputFile.getProperties().getAudioProperties()
53+
dst_fileProperties = dst_inputFile.getProperties()
54+
assert_equals(min_src_duration, dst_fileProperties.getDuration())
55+
56+
# check dst audio streams
57+
dst_audioProperties = dst_fileProperties.getAudioProperties()
5458
assert_equals(1, len(dst_audioProperties))
5559
assert_equals(2, dst_audioProperties[0].getNbChannels())
5660

@@ -94,8 +98,12 @@ def testMuxAudioChannelsFromDifferentFormatInputs_51():
9498

9599
assert_equals(min_src_duration, audioStat.getDuration())
96100

97-
# check dst audio streams
101+
# check dst file properties
98102
dst_inputFile = av.InputFile(outputFileName)
103+
dst_fileProperties = dst_inputFile.getProperties()
104+
assert_equals(min_src_duration, dst_fileProperties.getDuration())
105+
106+
# check dst audio streams
99107
dst_audioProperties = dst_inputFile.getProperties().getAudioProperties()
100108
assert_equals(1, len(dst_audioProperties))
101109
assert_equals(6, dst_audioProperties[0].getNbChannels())

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy