Skip to content

Commit 2e32a5f

Browse files
author
Clement Champetier
committed
pyTest testTranscoderTranscode: add testTranscodeYUV420
Comment this test because of a crash (due to pixel format YUV420).
1 parent fc0051b commit 2e32a5f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

test/pyTest/testTranscoderTranscode.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,37 @@ def testTranscodeXdcamhd422():
189189
# assert_equals( 50000, dst_videoStream.maxBitRate ) # 5000 != 0L
190190
# assert_equals( 50000, dst_videoStream.minBitRate ) # 5000 != 0L
191191
assert_equals( "bottom bottom", dst_videoStream.fieldOrder )
192+
193+
# def testTranscodeYUV420():
194+
# """
195+
# Process one video stream (custom profile of encoding, with pixel format YUV420).
196+
# """
197+
# inputFileName = os.environ['AVTRANSCODER_TEST_VIDEO_FILE']
198+
# outputFileName = "testTranscodeYUV420.avi"
199+
200+
# ouputFile = av.OutputFile( outputFileName )
201+
# transcoder = av.Transcoder( ouputFile )
202+
203+
# # create custom profile
204+
# customProfile = av.ProfileMap()
205+
# customProfile[av.Profile.avProfileIdentificator] = "customProfile"
206+
# customProfile[av.Profile.avProfileIdentificatorHuman] = "custom profile"
207+
# customProfile[av.Profile.avProfileType] = av.Profile.avProfileTypeVideo
208+
# customProfile[av.Profile.avProfileFrameRate] = "25"
209+
# customProfile[av.Profile.avProfileCodec] = "mpeg2video"
210+
# customProfile[av.Profile.avProfilePixelFormat] = "yuv420p"
211+
212+
# transcoder.add( inputFileName, 0, customProfile )
213+
214+
# transcoder.init()
215+
# progress = av.ConsoleProgress()
216+
# transcoder.process( progress )
217+
218+
# # get dst file of transcode
219+
# dst_inputFile = av.InputFile( outputFileName )
220+
# dst_inputFile.analyse( progress, av.InputFile.eAnalyseLevelFast )
221+
# dst_properties = dst_inputFile.getProperties()
222+
# dst_videoStream = dst_properties.videoStreams[0]
223+
224+
# assert_equals( "mpeg2video", dst_videoStream.codecName )
225+
# assert_equals( "yuv420p", dst_videoStream.pixelName )

0 commit comments

Comments
 (0)