mpv & external subs (antiX-base)

Forum Forums New users New Users and General Questions mpv & external subs (antiX-base)

This topic contains 50 replies, has 3 voices, and was last updated by andfree Mar 16-12:20 am.

Viewing 15 posts - 1 through 15 (of 51 total)
  • Author
    Posts
  • #7523
    Member

    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 yuv420p

    Afterwards, the same error several times:

    [ffmpeg] srt: Invalid UTF-8 in decoded subtitles text; maybe missing -sub_charenc option
     Error decoding subtitle

    And 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 10 months, 1 week ago by andfree.
    #7526
    Member
    sleekmason
    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 required

    #7534
    Member

    andfree

    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.

    #7536
    Member
    sleekmason
    sleekmason

    base version

    Kinda figured but ya never know. Adding a package or two will probably fix things right up.

    #7541
    Member

    andfree

    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: Yes

    I 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.

    #7542
    Member
    linuxdaddy
    linuxdaddy

    hi andfree
    According to wikipedia your gforce4 420 go doesn’t support higher than open gl 1.2

    https://en.wikipedia.org/wiki/List_of_Nvidia_graphics_processing_units#GeForce4_Go_series

    Linux = Many kinds, shapes, and sizes of computers to come
    together to create the ultimate cure for curiosity, boredom,
    creativity, and asylum. 🙂
    Whether new, used, young, or ancient.

    #7551
    Member

    andfree

    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.

    #7552
    Member

    andfree

    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 yuv420p

    Afterwards, a lot of times:

    [ffmpeg] srt: Invalid UTF-8 in decoded subtitles text; maybe missing -sub_charenc option
     Error decoding subtitle

    And 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 10 months, 1 week ago by andfree.
    #7555
    Member
    linuxdaddy
    linuxdaddy

    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.

    Linux = Many kinds, shapes, and sizes of computers to come
    together to create the ultimate cure for curiosity, boredom,
    creativity, and asylum. 🙂
    Whether new, used, young, or ancient.

    #7556
    Member
    linuxdaddy
    linuxdaddy

    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.

    Linux = Many kinds, shapes, and sizes of computers to come
    together to create the ultimate cure for curiosity, boredom,
    creativity, and asylum. 🙂
    Whether new, used, young, or ancient.

    #7557
    Member

    andfree

    Thank you. This command did the job:

    $ mpv --sub-codepage=cp1253 Stranger-Than-Paradise-1984.mp4

    There are still problems, but I’ll write about later.

    • This reply was modified 10 months, 1 week ago by andfree.
    #7570
    Member

    andfree

    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).
    #7576
    Member
    sleekmason
    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 mpv will 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:i386

    Also, 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 10 months, 1 week ago by sleekmason.
    • This reply was modified 10 months, 1 week ago by sleekmason.
    • This reply was modified 10 months, 1 week ago by sleekmason.
    #7584
    Member

    andfree

    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.

    #7589
    Member

    andfree

    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.

Viewing 15 posts - 1 through 15 (of 51 total)

You must be logged in to reply to this topic.