Forum › Forums › New users › New Users and General Questions › mpv & external subs (antiX-base)
Tagged: external subtitles, video players xorg
- This topic has 50 replies, 3 voices, and was last updated Mar 16-12:20 am by andfree.
-
AuthorPosts
-
March 9, 2018 at 6:27 am #7523Member
andfree
I want to add an external greek subs file to a movie, but mpv gives several errors:
$ mpv Stranger-Than-Paradise-1984.mp4 Playing: Stranger-Than-Paradise-1984.mp4 [lavf] Using subtitle charset: auto [lavf] Error opening iconv with codepage 'auto' (+) Video --vid=1 (*) (h264) (+) Audio --aid=1 --alang=eng (*) (aac) (+) Subs --sid=1 'Stranger-Than-Paradise-1984.srt' (subrip) (external) libEGL warning: did not find extension DRI_IMAGE version 1 [vo/opengl] Suspected software renderer or indirect context. [vo/opengl] At least OpenGL 2.1 or OpenGL ES 2.0 required. Failed to open VDPAU backend libvdpau_nouveau_vieux.so: cannot open shared object file: No such file or directory [vo/vdpau] Error when calling vdp_device_create_x11: 1 [vo/xv] Warning: this legacy VO has bad quality and performance, and will in particular result in blurry OSD and subtitles. You should fix your graphics drivers, or not force the xv VO. [lavf] Edit lists are not correctly supported (FFmpeg issue). VO: [xv] 1280x720 yuv420pAfterwards, the same error several times:
[ffmpeg] srt: Invalid UTF-8 in decoded subtitles text; maybe missing -sub_charenc option Error decoding subtitleAnd the last part of the terminal output:
AO: [alsa] 48000Hz stereo 2ch float AV: 00:00:00 / 01:29:03 (0%) A-V: 0.000 Dropped: 2 [vo/xv] X11 can't keep up! Waiting for XShm completion events... AV: 00:00:29 / 01:29:03 (0%) A-V: 0.466 Dropped: 88 Audio/Video desynchronisation detected! Possible reasons include too slow hardware, temporary CPU spikes, broken drivers, and broken files. Audio position will not match to the video (see A-V status field).- This topic was modified 5 years, 1 month ago by andfree.
March 9, 2018 at 9:01 am #7526Member
sleekmason
::Looks like it’s looking for the libvdpau-va-gl1 backend,
Also showing some dri issues. Current version is dri3
Also how long since apt-get dist-upgrade?
At least OpenGL 2.1 or OpenGL ES 2.0 requiredMarch 9, 2018 at 11:27 am #7534Memberandfree
::Thanks for the reply. Sorry, but I forgot to write that I run the base version of antiX-17. I dist-upgrade every day. I’ll look for the missing packages later.
March 9, 2018 at 11:41 am #7536Member
sleekmason
::base version
Kinda figured but ya never know. Adding a package or two will probably fix things right up.
March 9, 2018 at 3:45 pm #7541Memberandfree
::The latest version (1.12-1) of libxcb-dri3-0 (X C Binding, dri3 extension) was already installed.
I don’t know how to upgrade openGL:
Graphics: Card: NVIDIA NV17M [GeForce4 420 Go] bus-ID: 01:00.0 Display Server: X.Org 1.19.2 drivers: nouveau (unloaded: modesetting,fbdev,vesa) Resolution: 1024x768@60.00hz OpenGL: renderer: Mesa DRI nv17 x86/MMX/SSE2 version: 1.2 Mesa 13.0.6 Direct Render: YesI only installed libvdpau-va-gl1, but the terminal output is still the same as in my original post.
I suppose I have to test it on a live session of the full antiX version.
March 9, 2018 at 4:53 pm #7542Anonymous
::hi andfree
According to wikipedia your gforce4 420 go doesn’t support higher than open gl 1.2https://en.wikipedia.org/wiki/List_of_Nvidia_graphics_processing_units#GeForce4_Go_series
March 9, 2018 at 11:18 pm #7551Memberandfree
::Thank you, linuxdaddy. So, as regards videos with external subtitle files, I suppose there’s not a more lightweight option than VLC for this laptop.
March 9, 2018 at 11:36 pm #7552Memberandfree
::What about this laptop? (antiX-17-base, too)
Graphics: Card: Advanced Micro Devices [AMD/ATI] RS200M [Radeon IGP 330M/340M/345M/350M] bus-ID: 01:05.0 Display Server: X.Org 1.19.2 drivers: ati,radeon (unloaded: modesetting,fbdev,vesa) Resolution: 1024x768@60.00hz OpenGL: renderer: Gallium 0.4 on llvmpipe (LLVM 3.9, 128 bits) version: 3.3 Mesa 13.0.6 Direct Render: Yes$ mpv Stranger-Than-Paradise-1984.mp4 Playing: Stranger-Than-Paradise-1984.mp4 [lavf] Using subtitle charset: auto [lavf] Error opening iconv with codepage 'auto' (+) Video --vid=1 (*) (h264) (+) Audio --aid=1 --alang=eng (*) (aac) (+) Subs --sid=1 'Stranger-Than-Paradise-1984.srt' (subrip) (external) libEGL warning: DRI2: failed to authenticate [vo/opengl] Suspected software renderer or indirect context. [vo/opengl] Suspected software renderer or indirect context. Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory [vo/vdpau] Error when calling vdp_device_create_x11: 1 [vo/xv] No Xvideo support found. [vo/sdl] Using opengl [lavf] Edit lists are not correctly supported (FFmpeg issue). AO: [alsa] 48000Hz stereo 2ch float VO: [sdl] 1280x720 yuv420pAfterwards, a lot of times:
[ffmpeg] srt: Invalid UTF-8 in decoded subtitles text; maybe missing -sub_charenc option Error decoding subtitleAnd the last part:
AV: 00:00:00 / 01:29:03 (0%) A-V: 0.206 Audio/Video desynchronisation detected! Possible reasons include too slow hardware, temporary CPU spikes, broken drivers, and broken files. Audio position will not match to the video (see A-V status field).The latest versions (1.12-1) of libxcb-dri3-0 & libxcb-dri2-0 are already installed.
- This reply was modified 5 years, 1 month ago by andfree.
March 10, 2018 at 12:22 am #7555Anonymous
::On your second laptop the gl version is 3.3 so that’s high enough, it’s missing the vdpau package
which I believe is “libvdpau-va-gl1” VDPAU driver with OpenGL/VAAPI backend in synaptic to load
the gl.
The libegl warning would probably be the “libegl-mesa0 or libegl1” packages.
I’m not sure about the lavf error but “liblavfile-2.1-0” package is the lavf shared library and
maybe need installed too.March 10, 2018 at 12:51 am #7556Anonymous
::You also might have to put “–sub-codepage” on the mpv command line and specify the greek one
otherwise it’s looking for auto. Also not sure if the Xvideo is used as it mentions not found.March 10, 2018 at 1:34 am #7557Memberandfree
::Thank you. This command did the job:
$ mpv --sub-codepage=cp1253 Stranger-Than-Paradise-1984.mp4There are still problems, but I’ll write about later.
- This reply was modified 5 years, 1 month ago by andfree.
March 10, 2018 at 5:25 am #7570Memberandfree
::This command did also the job on the first laptop (the one with the old OpenGL). But the quality of playing video this way is not better than that by using vlc. I have also installed liblavfile-2.1-0. Now, the terminal output is:
$ mpv --sub-codepage=cp1253 Stranger-Than-Paradise-1984.mp4 Playing: Stranger-Than-Paradise-1984.mp4 [lavf] Using subtitle charset: cp1253 (+) Video --vid=1 (*) (h264) (+) Audio --aid=1 --alang=eng (*) (aac) (+) Subs --sid=1 'Stranger-Than-Paradise-1984.srt' (subrip) (external) libEGL warning: did not find extension DRI_IMAGE version 1 [vo/opengl] Suspected software renderer or indirect context. [vo/opengl] At least OpenGL 2.1 or OpenGL ES 2.0 required. Failed to open VDPAU backend libvdpau_nouveau_vieux.so: cannot open shared object file: No such file or directory [vo/vdpau] Error when calling vdp_device_create_x11: 1 [vo/xv] Warning: this legacy VO has bad quality and performance, and will in particular result in blurry OSD and subtitles. You should fix your graphics drivers, or not force the xv VO. [lavf] Edit lists are not correctly supported (FFmpeg issue). AO: [alsa] 48000Hz stereo 2ch float VO: [xv] 1280x720 yuv420p AV: 00:00:00 / 01:29:03 (0%) A-V: 0.000 Dropped: 2 [vo/xv] X11 can't keep up! Waiting for XShm completion events... AV: 00:09:09 / 01:29:03 (10%) A-V: 0.480 Dropped: 8 Audio/Video desynchronisation detected! Possible reasons include too slow hardware, temporary CPU spikes, broken drivers, and broken files. Audio position will not match to the video (see A-V status field).March 10, 2018 at 6:46 am #7576Member
sleekmason
::To check for dependency problems on your system.
sudo apt-get check
–
–
This command will show both dependencies and recommends for mpv.apt-cache depends mpv
–
$ apt-cache depends mpv
mpv
Depends: libasound2
Depends: libass9
|Depends: libavcodec57
Depends: libavcodec-extra57
Depends: libavdevice57
|Depends: libavfilter6
Depends: libavfilter-extra6
Depends: libavformat57
Depends: libavutil55
Depends: libbluray2
Depends: libc6
Depends: libcaca0
Depends: libcdio-cdda2
Depends: libcdio-paranoia2
Depends: libcdio17
Depends: libdrm2
Depends: libdvdnav4
Depends: libdvdread4
Depends: libegl1
Depends: libgbm1
Depends: libgl1
|Depends: libjack-jackd2-0
Depends: <libjack-0.125>
libjack-jackd2-0
libjack0
Depends: libjpeg62-turbo
Depends: liblcms2-2
Depends: liblua5.2-0
Depends: libpulse0
Depends: librubberband2
Depends: libsdl2-2.0-0
Depends: libsmbclient
Depends: libsndio6.1
Depends: libswresample2
Depends: libswscale4
Depends: libuchardet0
Depends: libva-drm2
Depends: libva-wayland2
Depends: libva-x11-2
Depends: libva2
Depends: libvdpau1
Depends: libwayland-client0
Depends: libwayland-cursor0
|Depends: libwayland-egl1-mesa
Depends: <libwayland-egl1>
libwayland-egl1-mesa
Depends: libx11-6
Depends: libxext6
Depends: libxinerama1
Depends: libxkbcommon0
Depends: libxrandr2
Depends: libxss1
Depends: libxv1
Depends: zlib1g
Recommends: xdg-utils
Recommends: youtube-dl–
–
This command will show what dependencies of mpv you have installed.
apt-cache depends --installed mpv
–
apt-cache depends –installed mpv
mpv
Depends: libasound2
Depends: libass9
|Depends: libavcodec57
Depends: libavdevice57
|Depends: libavfilter6
Depends: libavformat57
Depends: libavutil55
Depends: libbluray2
Depends: libc6
Depends: libcaca0
Depends: libcdio-cdda2
Depends: libcdio-paranoia2
Depends: libcdio17
Depends: libdrm2
Depends: libdvdnav4
Depends: libdvdread4
Depends: libegl1
Depends: libgbm1
Depends: libgl1
|Depends: libjack-jackd2-0
libjack-jackd2-0
libjack0
Depends: libjpeg62-turbo
Depends: liblcms2-2
Depends: liblua5.2-0
Depends: libpulse0
Depends: librubberband2
Depends: libsdl2-2.0-0
Depends: libsmbclient
Depends: libsndio6.1
Depends: libswresample2
Depends: libswscale4
Depends: libuchardet0
Depends: libva-drm2
Depends: libva-wayland2
Depends: libva-x11-2
Depends: libva2
Depends: libvdpau1
Depends: libwayland-client0
Depends: libwayland-cursor0
|Depends: libwayland-egl1-mesa
libwayland-egl1-mesa
Depends: libx11-6
Depends: libxext6
Depends: libxinerama1
Depends: libxkbcommon0
Depends: libxrandr2
Depends: libxss1
Depends: libxv1
Depends: zlib1g
Recommends: xdg-utils
Recommends: youtube-dl
–
–
This will show the “Suggests” as well (none for mpv)
apt-cache rdepends -s mpv
–
–
apt-rdepends mpvwill show show all the reverse dependancy programs as well.
–
$ apt-cache rdepends mpv
mpv
Reverse Depends:
libquvi-0.9-0.9.3
mps-youtube
mpv:i386
|zomg
mpv:i386
|youtube-dl
mpv:i386
w3m
mpv:i386
|smtube
mpv:i386
|smplayer
mpv:i386
|mediathekview
mpv:i386
|lives
mpv:i386
smplayer
mpv:i386
gmusicbrowser
mpv:i386
|gaupol
mpv:i386
devede
mpv:i386
multimedia-video
mpv:i386
|youtube-dl
mpv:i386
streamlight-antix
mpv:i386
|smtube
mpv:i386Also, for dri errors, you can always try adding a line to your X11/xorg.conf to implement dri2 instead of dri3. This suggestion is fairly old and may now be obsolete.
here is a link to some other programs as well. https://www.debugpoint.com/2015/08/3-great-subtitle-editors-in-linux-systems/
- This reply was modified 5 years, 1 month ago by sleekmason.
- This reply was modified 5 years, 1 month ago by sleekmason.
- This reply was modified 5 years, 1 month ago by sleekmason.
March 10, 2018 at 9:19 am #7584Memberandfree
::I’m running a live session of the full antiX-17 and, as I can see, it gives the same errors. So, the problem has not to do with the base version only. The terminal output:
$ mpv --sub-codepage=cp1253 Stranger-Than-Paradise-1984.mp4 Playing: Stranger-Than-Paradise-1984.mp4 [lavf] Using subtitle charset: cp1253 (+) Video --vid=1 (*) (h264) (+) Audio --aid=1 --alang=eng (*) (aac) (+) Subs --sid=1 'Stranger-Than-Paradise-1984.srt' (subrip) (external) libEGL warning: did not find extension DRI_IMAGE version 1 [vo/opengl] Suspected software renderer or indirect context. [vo/opengl] At least OpenGL 2.1 or OpenGL ES 2.0 required. Failed to open VDPAU backend libvdpau_nouveau_vieux.so: cannot open shared object file: No such file or directory [vo/vdpau] Error when calling vdp_device_create_x11: 1 [vo/xv] Warning: this legacy VO has bad quality and performance, and will in particular result in blurry OSD and subtitles. You should fix your graphics drivers, or not force the xv VO. [lavf] Edit lists are not correctly supported (FFmpeg issue). VO: [xv] 1280x720 yuv420p AO: [alsa] 48000Hz stereo 2ch float AV: 00:00:00 / 01:29:03 (0%) A-V: 0.497 Dropped: 9 Audio/Video desynchronisation detected! Possible reasons include too slow hardware, temporary CPU spikes, broken drivers, and broken files. Audio position will not match to the video (see A-V status field).Sleekmason, thanks for the commands about dependencies. I’ll check them later.
March 10, 2018 at 11:01 am #7589Memberandfree
::As regards the installed system (for the laptop with the old OpenGL):
No dependency problems and no “suggests” are displayed.
All the dependencies and recommends seem to be installed.
I suppose there’s no reason to install all the reverse dependencies. -
AuthorPosts
- You must be logged in to reply to this topic.