B
B
b166ir2015-10-21 12:36:43
linux
b166ir, 2015-10-21 12:36:43

Mplayer. Why is framebuffer hanging?

Good day to all.
Faced a strange situation. There is a task to play a video playlist on a Linux machine without graphics. I use framebuffer, the command is something like this mplayer -vo fbdev2 -playlist /home/playlist
Everything plays great. But if you send kill -9 pid or simply interrupt the mplayer command from the console via ctrl + c, then the screen freezes. That is, it shows the image of the last frame of the video. Sometimes this situation can be solved by switching to another console via alt + f (console number). But sometimes only a reboot helps. The screen does not respond to the keyboard. Everything works via ssh. Hence the question of how to reset the framebuffer and resume the image from the tty.
Having tormented myself with this problem, I picked up X's (I visited both kde and gnome and lfxe). The situation is identical, but the percentage of complete freezing is less. That is, ctrl + alt + f (console number) most often helps.
I decided to run it not through framebuffer, but through mplayer -vo xv, x11, etc. In all modes that wound up there is another glitch. When changing videos, the desktop image appears for a few milliseconds before the next one in the playlist starts playing. Can you tell me how all this can be solved?
ps
System Centos 7 64 bit.
Hardware Intel(R) Celeron(R) CPU 847 @ 1.10GHz and 2gb ram.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Tallmange, 2015-10-21
@p00h

To remove the last frame try sending something useful/useless to /dev/fbX

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question