非 Linux 分区的视频无法播放

非 Linux 分区的视频无法播放

我安装了 Linux 和 Windows 双启动,现在我无法播放来自其他已安装分区的任何视频。

我还应该提到,只有视频有这个问题,我可以毫无问题地打开图片、文档、音乐……。另外,问题不在于视频编解码器,如果我将视频复制并粘贴到 Linux 分区中,它可以完美播放。

我尝试使用 smPlayer 和媒体播放器打开,但没有成功。SmPlayer 错误日志: MPV has finished unexpectedly. Exit code: 2

/snap/smplayer/76/usr/bin/mpv --no-quiet --terminal --no-msg-color --input-ipc-server=/tmp/smplayer-mpv-96c1 --msg-level=ffmpeg/demuxer=error --video-rotate=no --no-config --no-fs --hwdec=no --sub-auto=fuzzy --no-input-default-bindings --input-vo-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=88080420 --monitorpixelaspect=1 --osd-level=1 --osd-scale=1 --osd-bar-align-y=0.6 --sub-ass --embeddedfonts --sub-ass-line-spacing=0 --sub-scale=1 --sub-font=Arial --sub-color=#ffffffff --sub-shadow-color=#ff000000 --sub-border-color=#ff000000 --sub-border-size=0.75 --sub-shadow-offset=2.5 --sub-font-size=50 --sub-bold=no --sub-italic=no --sub-margin-y=8 --sub-margin-x=20 --sub-codepage=ISO-8859-1 --sub-pos=100 --volume=55 --cache=auto --screenshot-template=cap_%F_%p_%02n --screenshot-format=jpg --screenshot-directory=/home/nymeria/Pictures/smplayer_screenshots --audio-pitch-correction=yes --volume-max=110 --term-playing-msg=MPV_VERSION=${=mpv-version:}
INFO_VIDEO_WIDTH=${=width}
INFO_VIDEO_HEIGHT=${=height}
INFO_VIDEO_ASPECT=${=video-params/aspect}
INFO_VIDEO_FPS=${=container-fps:${=fps}}
INFO_VIDEO_FORMAT=${=video-format}
INFO_VIDEO_CODEC=${=video-codec}
INFO_DEMUX_ROTATION=${=track-list/0/demux-rotation}
INFO_AUDIO_FORMAT=${=audio-codec-name}
INFO_AUDIO_CODEC=${=audio-codec}
INFO_AUDIO_RATE=${=audio-params/samplerate}
INFO_AUDIO_NCH=${=audio-params/channel-count}
INFO_LENGTH=${=duration:${=length}}
INFO_DEMUXER=${=current-demuxer:${=demuxer}}
INFO_SEEKABLE=${=seekable}
INFO_TITLES=${=disc-titles}
INFO_CHAPTERS=${=chapters}
INFO_TRACKS_COUNT=${=track-list/count}
METADATA_TITLE=${metadata/by-key/title:}
METADATA_ARTIST=${metadata/by-key/artist:}
METADATA_ALBUM=${metadata/by-key/album:}
METADATA_GENRE=${metadata/by-key/genre:}
METADATA_DATE=${metadata/by-key/date:}
METADATA_TRACK=${metadata/by-key/track:}
METADATA_COPYRIGHT=${metadata/by-key/copyright:}
INFO_MEDIA_TITLE=${=media-title:}
INFO_STREAM_PATH=${stream-path}
 --audio-client-name=SMPlayer --term-status-msg=STATUS: ${=time-pos} / ${=duration:${=length:0}} P: ${=pause} B: ${=paused-for-cache} I: ${=core-idle} VB: ${=video-bitrate:0} AB: ${=audio-bitrate:0} /media/nymeria/New Volume/Downloads/Attack.on.Titan.S04E30.720p.10bit.WEB-DL.x265.SoftSub.DigiMoviez.mkv

[file] Cannot open file '/media/nymeria/New Volume/Downloads/Attack.on.Titan.S04E30.720p.10bit.WEB-DL.x265.SoftSub.DigiMoviez.mkv': Permission denied
Failed to open /media/nymeria/New Volume/Downloads/Attack.on.Titan.S04E30.720p.10bit.WEB-DL.x265.SoftSub.DigiMoviez.mkv.
Exiting... (Errors when loading file)

我尝试使用 sudo 安装分区,但问题并没有得到解决。

我从某处读到,问题可能是因为分区格式不是 ext4,但在此之前我有 linux manjaro,并且从同一个分区播放视频没有问题。

答案1

SMPlayer snap 似乎没有权限访问该分区。这似乎是 snap 的问题。安装 APT 版本应该可以解决这个问题。

sudo snap remove smplayer
sudo apt install smplayer

答案2

这很可能是由于折断关于连接的应用程序可移动媒体接口通常不是默认授予...您可以smplayer像这样检查是否已安装 snap:

$ snap connections smplayer
Interface               Plug                             Slot                     Notes
alsa                    smplayer:alsa                    -                        -
audio-playback          smplayer:audio-playback          :audio-playback          -
desktop                 smplayer:desktop                 :desktop                 -
desktop-legacy          smplayer:desktop-legacy          :desktop-legacy          -
dvb                     smplayer:dvb                     -                        -
home                    smplayer:home                    :home                    -
jack1                   smplayer:jack1                   -                        -
mount-observe           smplayer:mount-observe           -                        -
mpris                   -                                smplayer:mpris           -
network                 smplayer:network                 :network                 -
network-bind            smplayer:network-bind            :network-bind            -
network-control         smplayer:network-control         -                        -
network-manager         smplayer:network-manager         -                        -
opengl                  smplayer:opengl                  :opengl                  -
optical-drive           smplayer:optical-drive           :optical-drive           -
pulseaudio              smplayer:pulseaudio              -                        -
removable-media         smplayer:removable-media         -                        -
screen-inhibit-control  smplayer:screen-inhibit-control  :screen-inhibit-control  -
unity7                  smplayer:unity7                  :unity7                  -
wayland                 smplayer:wayland                 :wayland                 -
x11                     smplayer:x11                     :x11                     -

... 可以通过以下方式启用:

sudo snap connect smplayer:removable-media

...因此它将报告如下:

$ snap connections smplayer
Interface               Plug                             Slot                     Notes
alsa                    smplayer:alsa                    -                        -
audio-playback          smplayer:audio-playback          :audio-playback          -
desktop                 smplayer:desktop                 :desktop                 -
desktop-legacy          smplayer:desktop-legacy          :desktop-legacy          -
dvb                     smplayer:dvb                     -                        -
home                    smplayer:home                    :home                    -
jack1                   smplayer:jack1                   -                        -
mount-observe           smplayer:mount-observe           -                        -
mpris                   -                                smplayer:mpris           -
network                 smplayer:network                 :network                 -
network-bind            smplayer:network-bind            :network-bind            -
network-control         smplayer:network-control         -                        -
network-manager         smplayer:network-manager         -                        -
opengl                  smplayer:opengl                  :opengl                  -
optical-drive           smplayer:optical-drive           :optical-drive           -
pulseaudio              smplayer:pulseaudio              -                        -
removable-media         smplayer:removable-media         :removable-media         manual
screen-inhibit-control  smplayer:screen-inhibit-control  :screen-inhibit-control  -
unity7                  smplayer:unity7                  :unity7                  -
wayland                 smplayer:wayland                 :wayland                 -
x11                     smplayer:x11                     :x11                     -

...并且可以随时使用以下命令禁用它:

sudo snap disconnect smplayer:removable-media

注意这也可以通过 AKA Software 应用程序的 UI 完成,snap-store如下所示:

在此处输入图片描述

相关内容