wrandelshofer / MonteMedia

A Java library for processing still images, video, audio and meta-data.
MIT License
17 stars 9 forks source link

Support native viewing of videos created with this library (without large file sizes) #9

Open timja opened 3 weeks ago

timja commented 3 weeks ago

Currently with this library neither quicktime or windows media player are able to open most of the encodings supported by this library.

You can open with VLC but ideally the default media players should work.

See more details at https://github.com/jenkinsci/acceptance-test-harness/issues/1041#issuecomment-2277208930

With the current version of the montemedia library you can create videos in the following formats, that will open natively:

Windows: AVI with JPEG encoding. macOS: QuickTime with JPEG encoding. 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. Maybe it is possible to encode videos using the native Windows and macOS APIs.

wrandelshofer commented 2 weeks ago

Yes, this is a problem in my projects too.

I am planning to use the MP4 H.264 codec from the JCodec library in a future version of this library.