Recorded video not playable in Appium 2.0

Hi there!

I’m using Appium 2.0.0-beta.46 and video that is recording Appium test can not be played.

Here is simple block of code:


test steps
  . . . 

video_rawdata = driver.start_recording_screen()
filepath = os.path.join("/path/to/recordings/folder", "test_name.mp4")

with open(filepath, "wb+") as vd:

From here the file test_name.mp4 is created, but once I try to play it I can’t do it (like the file is broken).

Anyone has an idea what am I doing wrong here?

Solved with adding videoType='libx264',timeLimit=600 to start_recording_screen method.

I had the same issue and I solved it the same way.
As well, I understood that QuickTime Player(mac’s default video player) has an issue opening those files(the original ones, before changing the type), I switched to Elmedia View Player from the app store and I think the original one worked as well. You can try it if you want.

1 Like