A
A
Alexey Anisimov2016-08-26 11:59:25
Java
Alexey Anisimov, 2016-08-26 11:59:25

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

2 answer(s)
A
Alexey Anisimov, 2016-10-05
@alanis

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

A
Alexey Cheremisin, 2016-08-26
@leahch

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.

Similar questions
K
KhanTengri2011-06-17 23:56:41
Get from a remote web page?</a> <a class="content__item-button" href="/q/get-title-from-a-remote-web-page"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" class=""> <path fill-rule="evenodd" d="M15 14a1.002 1.002 0 01-1.703.71h-.004l-.003-.01-1.704-1.7H3c-1.104 0-2-.9-2-2V3c0-1.1.896-2 2-2h10c1.104 0 2 .9 2 2v11zM5 6c.552 0 1 .45 1 1s-.448 1-1 1-1-.45-1-1 .448-1 1-1zm3 0c.552 0 1 .45 1 1s-.448 1-1 1-1-.45-1-1 .448-1 1-1zm3 0c.552 0 1 .45 1 1s-.448 1-1 1-1-.45-1-1 .448-1 1-1z"></path> </svg> <span class="dark">6</span><span class="dn">Reply</span> </a> </div> </div><div class="content__item"> <div class="content__item-img name-color-T"> <span>T</span></div> <div class="content__item-content"> <div class="content__item-row"> <a href="/q/java-suggest-a-library-for-generating-multiple-strings-from-a-template-for-test-data">twinp</a><span>2011-06-22 19:50:03</span></div> <a class="content__item-title similar" href="/q/java-suggest-a-library-for-generating-multiple-strings-from-a-template-for-test-data">Java. Suggest a library for generating multiple strings from a template for test data</a> <a class="content__item-button" href="/q/java-suggest-a-library-for-generating-multiple-strings-from-a-template-for-test-data"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" class=""> <path fill-rule="evenodd" d="M15 14a1.002 1.002 0 01-1.703.71h-.004l-.003-.01-1.704-1.7H3c-1.104 0-2-.9-2-2V3c0-1.1.896-2 2-2h10c1.104 0 2 .9 2 2v11zM5 6c.552 0 1 .45 1 1s-.448 1-1 1-1-.45-1-1 .448-1 1-1zm3 0c.552 0 1 .45 1 1s-.448 1-1 1-1-.45-1-1 .448-1 1-1zm3 0c.552 0 1 .45 1 1s-.448 1-1 1-1-.45-1-1 .448-1 1-1z"></path> </svg> <span class="dark">2</span><span class="dn">Reply</span> </a> </div> </div><div class="content__item"> <div class="content__item-img name-color-I"> <span>I</span></div> <div class="content__item-content"> <div class="content__item-row"> <a href="/q/how-are-negative-real-numbers-represented-in-a-computer">Ivan the Terrible</a><span>2015-10-14 16:07:29</span></div> <a class="content__item-title similar" href="/q/how-are-negative-real-numbers-represented-in-a-computer">How are negative real numbers represented in a computer?</a> <a class="content__item-button" href="/q/how-are-negative-real-numbers-represented-in-a-computer"> <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" class=""> <path fill-rule="evenodd" d="M15 14a1.002 1.002 0 01-1.703.71h-.004l-.003-.01-1.704-1.7H3c-1.104 0-2-.9-2-2V3c0-1.1.896-2 2-2h10c1.104 0 2 .9 2 2v11zM5 6c.552 0 1 .45 1 1s-.448 1-1 1-1-.45-1-1 .448-1 1-1zm3 0c.552 0 1 .45 1 1s-.448 1-1 1-1-.45-1-1 .448-1 1-1zm3 0c.552 0 1 .45 1 1s-.448 1-1 1-1-.45-1-1 .448-1 1-1z"></path> </svg> <span class="dark">2</span><span class="dn">Reply</span> </a> </div> </div> </div> </div> </div> <div class="content find"> <p class="find__p">Didn't find what you were looking for?</p><a class="find__btn" href="#!">Ask your question</a> </div> <div class="find sm"> <p class="find__title">Ask a Question </p> <form class="find__form" action="#!"> <input class="find__input" type="text" placeholder="Ask your question here"> <button class="find__btn" type="submit"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 16 16" class="nBqR1"><path fill-rule="evenodd" d="M12.696 7.256L9.657 4.217a1 1 0 00-1.415 1.414l1.344 1.344H3.949a1.001 1.001 0 000 2h5.637l-1.344 1.343a1.002 1.002 0 000 1.415c.391.39 1.024.39 1.415 0l3.039-3.04A.993.993 0 0013 7.975a.997.997 0 00-.293-.708l-.011-.011z"></path></svg></button> </form> <p class="find__span">731 491 924 answers to any question</p> </div> </div> <aside class="banners"> <p>banners </p> </aside> </div> </main> </div> <script src="/assets/theme/js/highlight/highlight.min.js"></script> <script src="/assets/theme/js/app.min.js?_v=20220404145216"> </script> <script>hljs.highlightAll();</script> </body> </html>