Skip to content

Commit 96cd138

Browse files
author
Clement Champetier
committed
pyTest: updated check of video stat in case of rewrap
1 parent 1b4510c commit 96cd138

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/pyTest/testTranscoderRewrap.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@ def checkStream(src_stream, dst_stream):
4848
def checkVideoStat(src_videoStream, dst_videoStat):
4949
"""
5050
Check the values of the video process stats returned after a process.
51+
@note Because the process does not include a profile with "processStat", output quality and PSNR are not set.
5152
"""
52-
assert_equals(src_videoStream.getDuration(), dst_videoStat.getDuration())
53-
assert_equals(int(src_videoStream.getDuration() * src_videoStream.getFps()), dst_videoStat.getNbFrames())
53+
assert_equals(dst_videoStat.getDuration(), src_videoStream.getDuration())
54+
assert_equals(dst_videoStat.getNbFrames(), int(src_videoStream.getDuration() * src_videoStream.getFps()))
55+
assert_equals(dst_videoStat.getQuality(), 0)
56+
assert_equals(dst_videoStat.getPSNR(), 0)
5457

5558

5659
def testRewrapAudioStream():

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