Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9abcb90

Browse files
author
Valentin Noel
committed
Test: check output files duration directly through file properties
Into audio channels muxing tests
1 parenta26bae9 commit9abcb90

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 dstaudio streams
51+
# check dstfile 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 dstaudio streams
101+
# check dstfile 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)

[8]ページ先頭

©2009-2025 Movatter.jp