Discussion:
[GTALUG] Last Ubuntu OS Update Breaks ffmpeg
Stephen via talk
2018-09-13 12:15:57 UTC
Permalink
And help and/or advise appreciated.

I am using 18.4 and apply all updates.

I have been using ffmpeg for many years to convert file formats. I am
now getting errors that have me confused. Here is the command line:

ffmpeg -i 101.Cat.avi -c:v libx264 -c:a copy 101.Cat.mp4

I now get many errors:

libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error: GLXBadContext
Request Major code 155 (GLX)
Request Minor code 6 ()
Error Serial #55
Current Serial #54

I Google the errors and everything seems to focus on bugs in Android
Studio which I don't use.

So I am at a loss for how to fix this.
--
Stephen
---
Talk Mailing List
***@gtalug.org
https://gtalug.org/mailman
Russell Reiter via talk
2018-09-13 13:21:48 UTC
Permalink
Could be a power state issue. I just recently added
intel_pstate=skylake_hwp to my grub while working on my own build. If it is
a similar issue, perhaps the instructions on this page will help.

IIRC I added this to F27 but not yet to F28, just to make sure I didn't
break anything. My video stuttering issue is really with F28.

https://blogs.igalia.com/vjaquez/2017/12/07/enabling-huc-for-sklkbl-in-debiantesting/
Post by Stephen via talk
And help and/or advise appreciated.
I am using 18.4 and apply all updates.
I have been using ffmpeg for many years to convert file formats. I am
ffmpeg -i 101.Cat.avi -c:v libx264 -c:a copy 101.Cat.mp4
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error: GLXBadContext
Request Major code 155 (GLX)
Request Minor code 6 ()
Error Serial #55
Current Serial #54
I Google the errors and everything seems to focus on bugs in Android
Studio which I don't use.
So I am at a loss for how to fix this.
--
Stephen
---
Talk Mailing List
https://gtalug.org/mailman/listinfo/talk
--
Russell
D. Hugh Redelmeier via talk
2018-09-14 13:01:49 UTC
Permalink
I have no particular knowledge of this, but I'll take a whack at it.

What is libGL? Read this: <https://dri.freedesktop.org/wiki/libGL/>

It looks as if ffmpeg is trying to use your graphics card to help with
the conversion.

libGL is unable to load a driver. Since one of the later choices
appears to be a pure-software driver "swrast_dri", your problem isn't
missing hardware.

I'd guess the libgl used by ffmpeg is obsolete and out of sync with
/usr/lib64/dri/. Or perhaps you are using a 32-bit ffmpeg on a 64-bit
system, or vice versa.

Have a look in /usr/lib64/dri/ and /usr/lib/dri/. Are both populated?
For example, on my system, I have:
/usr/lib64/dri/swrast_dri.so

Did you install ffmpeg from the ubuntu repositories? If not, it might
be out of sync with the other components (like libGL) which do get
updates from the ubuntu repositories.

How did you update ubuntu? Sometimes you need to use "apt-get dist-upgrade",
not just "upgrade". (I'm not a Ubuntu expert.)

| From: Stephen via talk <***@gtalug.org>
| To: GTALUG Talk <***@gtalug.org>
|
| And help and/or advise appreciated.
|
| I am using 18.4 and apply all updates.
|
| I have been using ffmpeg for many years to convert file formats. I am now
| getting errors that have me confused. Here is the command line:
|
| ffmpeg -i 101.Cat.avi -c:v libx264 -c:a copy 101.Cat.mp4
|
| I now get many errors:
|
| libGL error: unable to load driver: i965_dri.so
| libGL error: driver pointer missing
| libGL error: failed to load driver: i965
| libGL error: unable to load driver: i965_dri.so
| libGL error: driver pointer missing
| libGL error: failed to load driver: i965
| libGL error: unable to load driver: swrast_dri.so
| libGL error: failed to load driver: swrast
| X Error: GLXBadContext
| Request Major code 155 (GLX)
| Request Minor code 6 ()
| Error Serial #55
| Current Serial #54
|
| I Google the errors and everything seems to focus on bugs in Android Studio
| which I don't use.
|
| So I am at a loss for how to fix this.
---
Talk Mailing List
***@gtalug.or
Bob Jonkman via talk
2018-09-15 22:44:52 UTC
Permalink
Post by D. Hugh Redelmeier via talk
How did you update ubuntu? Sometimes you need to use "apt-get dist-upgrade",
not just "upgrade".
I always update with dist-upgrade, precisely to avoid missing drivers
and other auxiliary files. I haven't experienced problems yet (~5 years
of doing this).

--Bob.
Post by D. Hugh Redelmeier via talk
I have no particular knowledge of this, but I'll take a whack at it.
What is libGL? Read this: <https://dri.freedesktop.org/wiki/libGL/>
It looks as if ffmpeg is trying to use your graphics card to help with
the conversion.
libGL is unable to load a driver. Since one of the later choices
appears to be a pure-software driver "swrast_dri", your problem isn't
missing hardware.
I'd guess the libgl used by ffmpeg is obsolete and out of sync with
/usr/lib64/dri/. Or perhaps you are using a 32-bit ffmpeg on a 64-bit
system, or vice versa.
Have a look in /usr/lib64/dri/ and /usr/lib/dri/. Are both populated?
/usr/lib64/dri/swrast_dri.so
Did you install ffmpeg from the ubuntu repositories? If not, it might
be out of sync with the other components (like libGL) which do get
updates from the ubuntu repositories.
How did you update ubuntu? Sometimes you need to use "apt-get dist-upgrade",
not just "upgrade". (I'm not a Ubuntu expert.)
|
| And help and/or advise appreciated.
|
| I am using 18.4 and apply all updates.
|
| I have been using ffmpeg for many years to convert file formats. I am now
| getting errors that have me confused. Here is the command linZT==
--
Bob Jonkman <***@sobac.com> Phone: +1-519-635-9413
SOBAC Microcomputer Services http://sobac.com/sobac/
Software --- Office & Business Automation --- Consulting
GnuPG Fngrprnt:04F7 742B 8F54 C40A E115 26C2 B912 89B0 D2CC E5EA
Lennart Sorensen via talk
2018-09-14 15:04:43 UTC
Permalink
Post by Stephen via talk
And help and/or advise appreciated.
I am using 18.4 and apply all updates.
I have been using ffmpeg for many years to convert file formats. I am now
ffmpeg -i 101.Cat.avi -c:v libx264 -c:a copy 101.Cat.mp4
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error: GLXBadContext
Request Major code 155 (GLX)
Request Minor code 6 ()
Error Serial #55
Current Serial #54
I Google the errors and everything seems to focus on bugs in Android Studio
which I don't use.
So I am at a loss for how to fix this.
***@lsorensen-PC1:~$ apt-file search i965_dri
libgl1-mesa-dri: /usr/lib/x86_64-linux-gnu/dri/i965_dri.so

Do you have the package libgl1-mesa-dri installed?
--
Len Sorensen
---
Talk Mailing List
***@gtalug.org
https://gtalug.org/ma
Loading...