SergeyPirogov / video-recorder-java

This library allows easily record video of your UI tests by just putting couple annotations.
http://automation-remarks.com/video-recorder-java/
MIT License
218 stars 65 forks source link

Add possibility to pass ffmpeg pixel format (for Apple 'QuickTime' player compatibility) #49

Closed JustAlexOne closed 6 years ago

JustAlexOne commented 6 years ago

I've found it necessary to pass -pix_fmt=yuv420p in order to have ffmpeg record video playable by Apple's QuickTime player. But it seems Video Recored doesn't provide the ability to set this option to ffmpeg command argument. This pull request adds that.

Several details. From the official documentation:

If the selected pixel format can not be selected, ffmpeg will print a warning and select the best pixel format supported by the encoder