Answer the question
In order to leave comments, you need to log in
What technology to use for continuous video playback?
Hello!
I am developing a terminal that should be on the trading floor, accept money and provide some services.
Based on JavaFX technology.
While waiting for the client, you need to show an advertising video . Waiting for a client can last 9-10 hours or even a day .
The current problem: after 6-9 hours of video playback, it starts to slow down (FPS drops), and then completely freezes.
Computer configuration:
Mother: asus h110m-c CPU
: Intel i5 6500
Memory: DDR4 2133MHz 8 GB
ssd: Kingston SSDNow V300 120GB
OS: Ubuntu 14.04 LTS
mp4 video format The
following approaches were applied:
1) JavaFX. MediaView
Result: after 2 hours lags begin, after 4 it hangs. For the entire period, the CPU load is 60%, the memory is 1.1 GB (does not leak)
2) JavaFX + vlcj
Worked for 8 hours and hung. The download is the same.
3) I decided to switch to pictures with animation. JavaFX + Transitions
Memory was constantly creeping up, after 4 hours everything died
4) HTML5 video. Launched a desktop application on Electron . Loaded a page with video. Worked for 6 hours and hung.
5) I tried everything the same on Windows 7. The results are even worse.
Which tool to choose for uninterrupted video playback?
Answer the question
In order to leave comments, you need to log in
I haven’t fully figured out why this is so, but if you run the application with the flags for the java machine
-Dprism.vsync=false -Dprism.order=sw
which disable some kind of synchronization and install software. renderer for the JavaFX graphics library,
then everything works fine
Break the flow in an hour and start again. Most likely someone is eating up memory, but here you can’t do without a profiler.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question