VLC, previously fully functional, suddenly started not playing videos.
Executed from the terminal, both as vlc file.mp4
and as cvlc file.mp4
it gave the following error:
(*) DirectFB / Core: Single Application Core. (2014-10-24 12:33)
(*) Direct / Memcpy: Using Generic 64bit memcpy ()
(!) Direct / Util: opening '/ dev / fb0' failed
-> Permission denied
(!) DirectFB / FBDev: Error opening framebuffer device!
(!) DirectFB / FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB / Core: Could not initialize 'system_core' core!
-> Initialization error!
[00007f6ffc01e4d8] directfb vout display error: Cannot create primary surface
[00007f6ffc01e4d8] fb vout display error: cannot get terminal mode (Inappropriate ioctl for device)
[00007f6fd8000958] core video output error: video output creation failed
[00007f7008c2b7f8] core decoder error: failed to create video output
I then followed the following instructions
Change the permissions on the framebuffer by creating a udev rule
sudo nano /etc/udev/my-rules.d/framebuffer.rules
Then put a line in it like this
KERNEL == "fb0", OWNER = "root", MODE = "0660"
Then add yourself to the video group
sudo usermod -a -G video username
Change username
for your actual username, then restart.
found in post#4 of links2 -g in the CLI anyone?
I didn't get any results, but from that moment the error changed and became the following
(*) DirectFB / Core: Single Application Core. (2014-10-24 12:33)
(*) Direct / Memcpy: Using libc memcpy ()
(!) DirectFB / core / vt: Error opening `/ dev / tty0 '!
-> Permission denied
(!) DirectFB / Core: Could not initialize 'system_core' core!
-> Initialization error!
[00007f54b8001268] directfb vout display error: Cannot create primary surface
[00007f54b8001268] fb vout display error: cannot get terminal mode (Inappropriate ioctl for device)
[00007f54d0061a98] core video output error: video output creation failed
[00007f54e0c6c168] core decoder error: failed to create video output
Even trying to delete the /etc/udev/my-rules.d/framebuffer.rules
file and removing/relocating my user from the video group, I was no longer able to get the error back on dev/fb0
Also, /dev/tty0
'should have no relation to videos
In /var/log/syslog
the error reported is instead:
kernel: [2649.437090] vlc [10188]: segfault at 4 ip 00007f3f92905652 sp 00007f3f50a38d28 error 4 in i965_dri.so [7f3f9201d000 + b8d000]
where error 4 in i965_dri.so should be:
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
The ts → mp4 conversion was also impossible. The error reported in /var/log/syslog
is:
Aug 11 09:10:17 ... vlc [3226]: avcodec: cannot open hevc video encoder
Aug 11 09:10:18 ... vlc [3226]: main: no encoder modules matched
Aug 11 09:10:18 ... vlc [3226]: stream_out_transcode: cannot find video encoder (module: any fourcc: hevc).
I tried to uninstall and reinstall VLC several times (using snap) trying to erase all traces of previous installations, without changing the situation.
Running vlc
from the terminal, you see it in the active processes of Ubuntu, you hear the audio but you don't see any video, and if you don't kill the process it continues indefinitely.
On the contrary, both ffmpeg
and fflplay
seem to work perfectly (I converted file.ts
to file.mp4
without problems)
I do not know what to do.