Video playback in Java ( JMF, Fobs4JMF, Xuggler, FMJ )

后端 未结 6 711
一向
一向 2020-12-24 07:27

I need simple video playback in Java.

Here are my requirements:

  • PRODUCTION QUALITY

  • Open and decode video files whose video and audio

6条回答
  •  感动是毒
    2020-12-24 07:40

    I'd recommend using MPV. You can use it in combination with JavaFX quite easily, see this example.

    In short, you use a little JNA magic to use the MPV native libaries directly, and then let the video display on a JavaFX stage. If you use a child stage, you can even overlay JavaFX controls on top of the video (with full transparancy support).

    VLC (with VLCJ) can be used in a similar fashion, but I find that the MPV solution performs better (faster seek and start times).

提交回复
热议问题