AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1501246
Accepted
cipricus
cipricus
Asked: 2024-01-25 16:34:50 +0800 CST2024-01-25 16:34:50 +0800 CST 2024-01-25 16:34:50 +0800 CST

VLC和MPV无法播放samba共享的视频文件

  • 772

使用Freebox Pop服务器(请参阅最后的注释:这不仅限于 Freebox 服务器,所有 samba 共享都会受到影响)。它有一个 USB 入口,我在其中放置了一个外部 2 GB 驱动器,其中主要包含视频,因此我可以使用 Android TV 设备(或手机等)很好地访问和播放这些视频。

但是,令我惊讶的是,在运行 Kubuntu 22.04 的相当旧的笔记本电脑上,虽然Dolphin 可以访问该驱动器并对其进行更改,但我通常使用的视频播放器(VLC 和 MPV)无法播放视频文件。

Gwenview 会立即打开照片。

PDF 在 Okular 中打开,但文件似乎首先复制到计算机上。

MPV 出现此错误:

mpv 'smb://freebox-server.local/Volume 2000Go/FILME/IT_2/---a-voir/A.Mezzanotte.Va.La.Ronda.Del.Piacere.1975.mkv' 
[ffmpeg] Protocol not found. Make sure ffmpeg/Libav is compiled with networking support.
Failed to open smb://freebox-server.local/Volume 2000Go/FILME/IT_2/---a-voir/A.Mezzanotte.Va.La.Ronda.Del.Piacere.1975.mkv.

Exiting... (Errors when loading file)

这可能是 ffmpeg 特定的,但 VLC 也无法播放:

vlc 'smb://freebox-server.local/Volume 2000Go/FILME/Les Felins_a.en-fr.mkv' 
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[00005558f566b640] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007fbf3c0016f0] smb stream error: read failed (Broken pipe)
[00007fbf3c0016f0] smb stream error: read failed (Broken pipe)
[00007fbf3c04dc30] mkv demux error: cannot find any cluster or chapter, damaged file ?
[00007fbf3c0016f0] smb stream error: read failed (Broken pipe)
[00007fbf3c04dc30] mjpeg demux error: cannot peek
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu

VLC 的 snap 版本给出了这个:

env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/vlc_vlc.desktop /snap/bin/vlc
VLC media player 3.0.19 Vetinari (revision 3.0.19-0-g32b50de2a2)
[000055698c544b10] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Qt: Session management error: Could not open network socket
[000055698c5db150] main playlist: playlist is empty
Sending netbios packet to 192.168.1.255
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
netbios_ns_resolve, wrong query type received
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu

然后,带-v参数:

env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/vlc_vlc.desktop /snap/bin/vlc -v 'smb://freebox-server.local/Volume 2000Go/FILME/Les Felins_a.en-fr.mkv' 
VLC media player 3.0.19 Vetinari (revision 3.0.19-0-g32b50de2a2)
[000055792cde9b10] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Qt: Session management error: Could not open network socket
Sending netbios packet to 192.168.1.255
netbios_ns_resolve, wrong query type received
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu

咖啡因:

kaffeine 'smb://freebox-server.local/Volume 2000Go/FILME/Les Felins_a.en-fr.mkv' 
25-01-24 09:15:20.516 [Warning ] QCommandLineParser: already having an option named "h"
25-01-24 09:15:20.516 [Warning ] QCommandLineParser: already having an option named "help-all"
25-01-24 09:15:20.516 [Warning ] QCommandLineParser: already having an option named "v"
25-01-24 09:15:20.850 [Info    ] kaffeine.dvb: Using built-in dvb device manager
[00007fef1c001650] smb stream error: read failed (Broken pipe)
[00007fef1c001650] smb stream error: read failed (Broken pipe)
[00007fef1c050650] mkv demux error: cannot find any cluster or chapter, damaged file ?
[00007fef1c001650] smb stream error: read failed (Broken pipe)
[00007fef1c050650] mjpeg demux error: cannot peek
[000056398694af50] main input error: Your input can't be opened
[000056398694af50] main input error: VLC is unable to open the MRL 'smb://freebox-server.local/Volume%202000Go/FILME/Les%20Felins_a.en-fr.mkv'. Check the log for details.

尝试与格温维尤:

kf.kio.widgets: Failed to check which JobView API is supported "The name org.kde.kuiserver was not provided by any .service files"

Kodi 允许添加 Freebox 共享位置,然后开始播放视频(尽管有时会冻结)。

我还惊喜地发现老Xine 可以轻松地播放这些视频(即时!)。

但其他播放器也可以工作,比如 Totem(Gnome 的“视频”)和 Glide,以 flatpak 的形式安装。


在 Ubuntu 22.04 (Gnome) 的实时会话中进行测试,MPV 和 VLC 也存在同样的问题 - 虽然文件管理器 (Nautilus) 可以访问这些文件,并且 Gnome 视频播放器(“视频”,我猜是 Totem)可以播放视频(安装所需的编解码器后)。


这些问题是否相关,或者我应该单独对待它们(MPV 与 VLC)?


注释和更新:

  • kio-fuse已安装
  • 这不仅限于(经过更多测试)Freeebox samba 共享,还包括其他 samba 共享:出于测试目的,我在 Android 手机上创建了一个 samba 共享,手机上的视频在 MPV 和 VLC 上也有同样的问题库班图 22.04
  • 使用 Solid File Explorer 在 FTP 上共享 Android 手机文件夹“Movies”,可以在 Kubuntu 22.04 上通过 VLC 和 MPV 播放它们
  • 除了Kodi之外,还有SMPLayer,虽然使用mpv作为后端,但可以很好地播放samba共享视频!
  • 其他基于 mpv 的播放器(例如 Haruna 和 QMPlay2)无法使用
22.04
  • 1 1 个回答
  • 105 Views

1 个回答

  • Voted
  1. Best Answer
    cipricus
    2024-01-27T04:28:07+08:002024-01-27T04:28:07+08:00

    我和所有玩家都用同样的方法解决了这个问题。

    我从这里得到的解决方案,原因在这里讨论,这里链接到这里。我不太明白,但是-引用:

    该问题似乎是以下各项的组合:

    • 使用dolphin作为文件浏览器来访问网络共享

    • 当您单击相关文件时,Dolphin 仅向 mpv 提供 smb:// url

    • mpv 推迟到 ffmpeg 以支持 smb 访问文件

    有些评论指责 Dolphin,但我在 Gnome 和 Nautilus 中也看到过这种情况。

    解决方案是从MPV 启动器行中删除变量(其中一条评论还建议删除 和 )(将其复制到并smb在ftp那里ftps编辑)。X-KDE-Protocols=.desktopusr/share/applications~/.local/share/applications

    (这似乎只是一种解决方法 - 让玩家绕过有缺陷的区域,而不是解决问题的方法。)

    我发现同样的更改也修复了 VLC 的问题。Kaffeine 和 Haruna 也通过添加该行(不带 等)来修复smb,默认情况下,它们各自的文件中不存在该行.desktop。

    • 2

相关问题

  • Ubuntu 22.04 Beta 中的慢速互联网连接 [关闭]

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve