-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screen recording can't be opened natively on Mac #1041
Comments
You can not open it natively on Windows either and am also using VLC to view them. |
I don't think it will be possible to fix this bug as long as we continue to use the Monte library. I tried all the video encodings listed in https://github.com/wrandelshofer/MonteMedia and the only one that worked in QuickTime Player for macOS was "Motion JPEG", but that created unusably large files (100+ MiB for a few seconds of recording). Sadly QuickTime Player just doesn't support old formats anymore, and the Monte library doesn't support newer formats either. On the plus side VLC can handle these old formats just fine. |
I suppose someone who is particularly motivated could add |
With the current version of the montemedia library you can create videos in the following formats, that will open natively:
I know that these settings produce impractically huge files. I am planning to do a proof-of-concept with the Foreign Function & Memory API that was released in JDK 21. |
Thanks, if its useful, we record on linux and then view on mac and Windows mostly (probably some linux too) |
FWIW I was able to convert it to viewable in native player with both ffmpeg and handbrake: ffmpeg:
handbrake:
The codec name currently in use is Both options are smaller than the original video:
|
As stated in #1041 (comment), it probably wouldn't be too hard to install |
Yes, this was some initial research for that. I also found this library which may simplify it: https://github.com/bramp/ffmpeg-cli-wrapper |
| I am planning to do a proof-of-concept with the Foreign Function & Memory API that was released in JDK 21. I have looked briefly at the APIs in Windows and macOS. I think it is a lot of work (altough fun stuff). I am now doing a prototype with the MP4 H.264 codec in JCodec. The patents for H.264 have expired - as far as I know. |
FYI, not that we are using test containers for webdriver but https://java.testcontainers.org/modules/webdriver_containers/#recording-videos We have a largeish amount of home grown things in this project that now may have some OSS supported equivalent. |
Jenkins and plugins versions report
What Operating System are you using (both controller, and any agents involved in the problem)?
Reproduction steps
Open a ui-recording.mov from a test result
If you're on mac it will default to quicktime player, it fails to open
Expected Results
It opens
Actual Results
It doesn't
Anything else?
I'm using VLC to open them currently which works but it's the only thing I need VLC for these days...
Code is around here:
acceptance-test-harness/src/main/java/org/jenkinsci/test/acceptance/recorder/TestRecorderRule.java
Lines 72 to 87 in 200aafd
Found a blog post that's newer than our code here which may have some updated format:
https://www.ontestautomation.com/creating-a-video-capture-of-your-selenium-tests-using-monte-screen-recorder/
The text was updated successfully, but these errors were encountered: