Tumbleweed 下 VLC 无法播放局域网 smb 上的视频

https://trac.videolan.org/vlc/ticket/22909

Problem is fixed by changing the value of the Stream filters -> prefetch -> Read size. I made it the same size as the Buffer size (16384) and now every file plays as it should. That was the default in 3.0.7.1. Don’t know why it was changed, but the same large number (16777216) doesn’t seem to affect the Windows vlc.

据说是 vlc 3.0.8 导致的问题,把 prefetch 插件的 Read size 改小可解。

操作后有效,这问题,真是…

不过,播放 hdr 片源依然画面灰白

@marguerite @notepad2 谢谢苏姐,各位大大,我根据那个该了,但是还是不行。。。。

main debug: processing request item: XXXX.mp4, node: 播放列表, skip: 0
main debug: resyncing on XXXX.mp4
main debug: XXXX.mp4 is at 0
main debug: starting playback of new item
main debug: resyncing on XXXX.mp4
main debug: XXXX.mp4 is at 0
main debug: creating new input thread
main debug: Creating an input for ‘XXXX.mp4’
main debug: requesting art for new input thread
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: smb://192.168.0.2/Downloads/XXXX.mp4' gives accesssmb’ demux any' path192.168.0.2/Downloads/XXXX.mp4’
main debug: creating demux: access=‘smb’ demux=‘any’ location=‘192.168.0.2/Downloads/XXXX.mp4’ file=’(null)’
main debug: looking for access_demux module matching “smb”: 19 candidates
main debug: no access_demux modules matched
main debug: creating access: smb://192.168.0.2/Downloads/XXXX.mp4
main debug: looking for access module matching “smb”: 29 candidates
main debug: looking for meta fetcher module matching “any”: 1 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching “any”: 2 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac
dbus debug: Getting property CanSeek
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/01_googleimage.luac
lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac
dbus debug: Getting property Position
lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/03_lastfm.luac
lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
main debug: looking for meta fetcher module matching “any”: 1 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching “any”: 2 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
qt debug: IM: Setting an input
main debug: using access module “smb”
main debug: looking for stream_filter module matching “prefetch,cache_read”: 26 candidates
prefetch debug: using 16777216 bytes buffer, 16384 bytes read
main debug: using stream_filter module “prefetch”
main debug: looking for stream_filter module matching “any”: 26 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/playlist
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/playlist
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/anevia_streams.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/anevia_xml.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/appletrailers.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/bbc_co_uk.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/cue.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/dailymotion.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/jamendo.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/koreus.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/liveleak.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/newgrounds.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/rockbox_fm_presets.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/soundcloud.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/twitch.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/vimeo.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/vocaroo.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/youtube.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/playlist
main debug: no stream_filter modules matched
main debug: looking for stream_directory module matching “any”: 1 candidates
main debug: no stream_directory modules matched
main debug: attachment of directory-extractor failed for smb://192.168.0.2/Downloads/XXXX.mp4
main debug: looking for stream_filter module matching “record”: 26 candidates
main debug: using stream_filter module “record”
main debug: creating demux: access=‘smb’ demux=‘any’ location=‘192.168.0.2/Downloads/XXXX.mp4’ file=’(null)’
main debug: looking for demux module matching “any”: 53 candidates
smb debug: seeking to 7084816230
smb error: read failed (Invalid argument)
prefetch debug: end of stream
mp4 debug: dumping root Box “root”
mp4 debug: | + ftyp size 32 offset 0
mp4 debug: | + mdat size 7084816198 offset 32
mp4 debug: ISO Media (isom) version 512.
mp4 error: MP4 plugin discarded (no moov,foov,moof box)
mp4 debug: freeing all memory
smb debug: seeking to 0
main debug: looking for xml reader module matching “any”: 1 candidates
main debug: using xml reader module “xml”
webvtt debug: subtitle demux discarded
ts debug: TS module discarded (lost sync)
avformat debug: trying url: smb://192.168.0.2/Downloads/XXXX.mp4
avformat debug: CPU flags: 0x000fd3db
avformat debug: detected format: mov,mp4,m4a,3gp,3g2,mj2
smb debug: seeking to 7084816230
smb error: read failed (Invalid argument)
prefetch debug: end of stream
smb debug: seeking to 0
smb debug: seeking to 7084816230
smb error: read failed (Invalid argument)
prefetch debug: end of stream
avformat error: Could not open smb://192.168.0.2/Downloads/XXXX.mp4: Unknown error 1094995529
smb debug: seeking to 0
vobsub debug: this doesn’t seem to be a vobsub file
ps warning: this does not look like an MPEG PS stream, continuing anyway
main debug: using demux module “ps”
main debug: looking for meta reader module matching “any”: 2 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/reader
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/reader
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/reader/filename.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
main debug: no meta reader modules matched
main debug: `smb://192.168.0.2/Downloads/XXXX.mp4’ successfully opened
ps warning: garbage at input from 509, trying to resync…
dbus debug: Getting property CanSeek
dbus debug: Getting property Position
dbus debug: Getting property Position
ps warning: found sync code
ps warning: garbage at input, trying to resync…
smb debug: seeking to 7096869862
smb error: read failed (Invalid argument)
prefetch debug: end of stream
smb debug: seeking to 25795436
ps warning: found sync code
main debug: selecting program id=0
main debug: looking for packetizer module matching “any”: 25 candidates
main debug: using packetizer module “mpegvideo”
main debug: looking for video decoder module matching “any”: 17 candidates
avcodec debug: using ffmpeg Lavc58.54.100
avcodec debug: CPU flags: 0x000fd3db
avcodec debug: allowing 5 thread (s) for decoding
avcodec debug: codec (mpeg2video) started
main debug: using video decoder module “avcodec”
ps warning: garbage at input from 30305238, trying to resync…
ps warning: found sync code
ps warning: garbage at input from 36974095, trying to resync…
ps warning: found sync code
main debug: looking for packetizer module matching “any”: 25 candidates
main debug: using packetizer module “mpegaudio”
main debug: looking for audio decoder module matching “any”: 20 candidates
mpg123 debug: mpga->f32l, bits per sample: 32
main debug: using audio decoder module “mpg123”
mpegaudio debug: waiting for PTS
ps warning: garbage at input from 38476828, trying to resync…
ps warning: found sync code
main debug: looking for packetizer module matching “any”: 25 candidates
main debug: using packetizer module “mpegvideo”
main debug: looking for video decoder module matching “any”: 17 candidates
avcodec debug: using ffmpeg Lavc58.54.100
avcodec debug: CPU flags: 0x000fd3db
avcodec debug: allowing 5 thread (s) for decoding
avcodec debug: codec (mpeg2video) started
main debug: using video decoder module “avcodec”
ps warning: garbage at input from 38511615, trying to resync…
ps warning: found sync code
ps warning: garbage at input from 38609088, trying to resync…

真心看不懂。。。

这就是 SMB 的锅。VLC 没有读出数据,缓存失败。
但不知道是 VLC 的 SMB 支持库有问题,还是你的 SMB 服务器本身有问题。

还有 “电视盒子挂载” 应该用的是开源方案,会缺失一些 SMB 的特性,但不知道导致问题的是不是这个。

但是同样的读取小一些的.mp4 文件 却能正常播放,smb 其他浏览什么的 都正常

把小一些的 mp4 的 log 放上来看看?
对比才能找出原因。

我个人猜测,
VLC 对大文件采用 “一边缓存,一边播放” 的策略,而小文件直接缓存完毕再播放。

@marguerite @BearChild,谢谢了,这个是一个 smb 上的 1G 左右的 mp4 文件,这个可以正常播放,好像超过 2G 就播不了

main debug: processing request item: xxxxxxx.mp4, node: 播放列表, skip: 0
main debug: rebuilding array of current - root 播放列表
main debug: rebuild done - 1 items, index 0
main debug: starting playback of new item
main debug: resyncing on xxxxxxx.mp4
main debug: xxxxxxx.mp4 is at 0
main debug: creating new input thread
main debug: Creating an input for ‘xxxxxxx.mp4’
main debug: requesting art for new input thread
main debug: looking for meta fetcher module matching “any”: 1 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching “any”: 2 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac
dbus debug: Getting All properties
lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/01_googleimage.luac
dbus debug: Getting All properties
lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac
lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/03_lastfm.luac
dbus debug: Getting property Position
lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: smb://192.168.0.2/xxxxxxx.mp4' gives accesssmb’ demux any' path192.168.0.2/xxxxxxx.mp4’
main debug: creating demux: access=‘smb’ demux=‘any’ location=‘192.168.0.2/xxxxxxx.mp4’ file=’(null)’
main debug: looking for access_demux module matching “smb”: 19 candidates
main debug: looking for meta fetcher module matching “any”: 1 candidates
main debug: no access_demux modules matched
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/fetcher
main debug: creating access: smb://192.168.0.2/xxxxxxx.mp4
main debug: looking for access module matching “smb”: 29 candidates
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching “any”: 2 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
qt debug: IM: Setting an input
main debug: using access module “smb”
main debug: looking for stream_filter module matching “prefetch,cache_read”: 26 candidates
prefetch debug: using 16777216 bytes buffer, 16777216 bytes read
main debug: using stream_filter module “prefetch”
main debug: looking for stream_filter module matching “any”: 26 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/playlist
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/playlist
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/anevia_streams.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/anevia_xml.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/appletrailers.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/bbc_co_uk.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/cue.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/dailymotion.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/jamendo.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/koreus.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/liveleak.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/newgrounds.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/rockbox_fm_presets.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/soundcloud.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/twitch.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/vimeo.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/vocaroo.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/youtube.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/playlist
main debug: no stream_filter modules matched
main debug: looking for stream_directory module matching “any”: 1 candidates
main debug: no stream_directory modules matched
main debug: attachment of directory-extractor failed for smb://192.168.0.2/xxxxxxx.mp4
main debug: looking for stream_filter module matching “record”: 26 candidates
main debug: using stream_filter module “record”
main debug: creating demux: access=‘smb’ demux=‘any’ location=‘192.168.0.2/xxxxxxx.mp4’ file=’(null)’
main debug: looking for demux module matching “any”: 53 candidates
smb debug: seeking to 1166570951
prefetch debug: end of stream
mp4 debug: dumping root Box “root”
mp4 debug: | + ftyp size 24 offset 0
mp4 debug: | + free size 8 offset 24
mp4 debug: | + mdat size 1166570919 offset 32
mp4 debug: | + moov size 2746998 offset 1166570951
mp4 debug: | | + mvhd size 108 offset 1166570959
mp4 debug: | | + iods size 33 offset 1166571067
mp4 debug: | | + trak size 1031993 offset 1166571100
mp4 debug: | | | + tkhd size 92 offset 1166571108
mp4 debug: | | | + mdia size 1031893 offset 1166571200
mp4 debug: | | | | + mdhd size 32 offset 1166571208
mp4 debug: | | | | + hdlr size 52 offset 1166571240
mp4 debug: | | | | + minf size 1031801 offset 1166571292
mp4 debug: | | | | | + vmhd size 20 offset 1166571300
mp4 debug: | | | | | + dinf size 36 offset 1166571320
mp4 debug: | | | | | | + dref size 28 offset 1166571328
mp4 debug: | | | | | | | + url size 12 offset 1166571344
mp4 debug: | | | | | + stbl size 1031737 offset 1166571356
mp4 debug: | | | | | | + stsd size 165 offset 1166571364
mp4 debug: | | | | | | | + avc1 size 149 offset 1166571380
mp4 debug: | | | | | | | | + avcC size 63 offset 1166571466
mp4 debug: | | | | | | + stts size 24 offset 1166571529
mp4 debug: | | | | | | + stsc size 40 offset 1166571553
mp4 debug: | | | | | | + stsz size 912084 offset 1166571593
mp4 debug: | | | | | | + stco size 91224 offset 1167483677
mp4 debug: | | | | | | + stss size 28192 offset 1167574901
mp4 debug: | | + trak size 1714856 offset 1167603093
mp4 debug: | | | + tkhd size 92 offset 1167603101
mp4 debug: | | | + mdia size 1714756 offset 1167603193
mp4 debug: | | | | + mdhd size 32 offset 1167603201
mp4 debug: | | | | + hdlr size 52 offset 1167603233
mp4 debug: | | | | + minf size 1714664 offset 1167603285
mp4 debug: | | | | | + smhd size 16 offset 1167603293
mp4 debug: | | | | | + dinf size 36 offset 1167603309
mp4 debug: | | | | | | + dref size 28 offset 1167603317
mp4 debug: | | | | | | | + url size 12 offset 1167603333
mp4 debug: | | | | | + stbl size 1714604 offset 1167603345
mp4 debug: | | | | | | + stsd size 100 offset 1167603353
mp4 debug: | | | | | | | + mp4a size 84 offset 1167603369
mp4 debug: | | | | | | | | + esds size 48 offset 1167603405
mp4 debug: | | | | | | + stts size 24 offset 1167603453
mp4 debug: | | | | | | + stsc size 196696 offset 1167603477
mp4 debug: | | | | | | + stsz size 1426552 offset 1167800173
mp4 debug: | | | | | | + stco size 91224 offset 1169226725
mp4 debug: ISO Media (isom) version 0.
mp4 debug: found 2 tracks
mp4 debug: track [Id 0x1] read 22802 chunk
mp4 warning: STTS table of 1 entries
mp4 debug: track [Id 0x1] read 228016 samples length:7608s
main debug: selecting program id=0
mp4 debug: adding track [Id 0x1] video (enable) language eng
mp4 debug: track [Id 0x2] read 22802 chunk
mp4 warning: STTS table of 1 entries
mp4 debug: track [Id 0x2] read 356633 samples length:7608s
mp4 debug: adding track [Id 0x2] audio (enable) language eng
main debug: using demux module “mp4”
main debug: looking for video decoder module matching “any”: 17 candidates
avcodec debug: using ffmpeg Lavc58.54.100
avcodec debug: CPU flags: 0x000fd3db
avcodec debug: allowing 5 thread (s) for decoding
avcodec debug: codec (h264) started
avcodec debug: using frame thread mode with 5 threads
main debug: using video decoder module “avcodec”
main debug: looking for audio decoder module matching “any”: 20 candidates
main debug: using audio decoder module “faad”
main debug: looking for meta reader module matching “any”: 2 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/reader
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/reader
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/reader/filename.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
main debug: no meta reader modules matched
main debug: `smb://192.168.0.2/xxxxxxx.mp4’ successfully opened
mp4 debug: track [Id 0x1] using Sync Sample Box (stss)
mp4 debug: stss gives 0 --> 0 (sample number)
smb debug: seeking to 40
dbus debug: Getting property Position
main debug: Buffering 0%
main debug: Buffering 25%
avcodec debug: available hardware decoder output format 100 (vdpau)
avcodec debug: available hardware decoder output format 119 (cuda)
avcodec debug: available hardware decoder output format 46 (vaapi_vld)
avcodec debug: available software decoder output format 0 (yuv420p)
avcodec debug: trying format vaapi_vld
faad warning: decoded zero sample
main debug: reusing audio output
main debug: Buffering 50%
pulse debug: using stereo channel map
main debug: looking for text renderer module matching “any”: 3 candidates
main debug: Buffering 75%
main debug: Buffering 100%
main debug: Stream buffering done (1250 ms in 0 ms)
pulse debug: changed buffer metrics: maxlength=4194304, tlength=46080, prebuf=0, minreq=15360
pulse debug: connected to sink alsa_output.pci-0000_00_1b.0.analog-stereo
main debug: output ‘f32l’ 48000 Hz Stereo frame=1 samples/8 bytes
main debug: looking for audio volume module matching “any”: 2 candidates
freetype debug: Building font databases.
main debug: using audio volume module “float_mixer”
main debug: input ‘f32l’ 48000 Hz Stereo frame=1 samples/8 bytes
main debug: looking for audio filter module matching “scaletempo”: 15 candidates
scaletempo debug: format: 48000 rate, 2 nch, 4 bps, fl32
scaletempo debug: params: 30 stride, 0.200 overlap, 14 search
scaletempo debug: 1.000 scale, 1440.000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode
main debug: using audio filter module “scaletempo”
main debug: conversion: ‘f32l’->‘f32l’ 48000 Hz->48000 Hz Stereo->Stereo
main debug: conversion pipeline complete
main debug: conversion: ‘f32l’->‘f32l’ 48000 Hz->48000 Hz Stereo->Stereo
main debug: conversion pipeline complete
main debug: looking for audio resampler module matching “any”: 4 candidates
main debug: using audio resampler module “samplerate”
freetype debug: Took -17623 microseconds
main debug: using text renderer module “freetype”
main debug: looking for video converter module matching “any”: 23 candidates
swscale debug: 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma: RGBA with scaling using Bicubic (good quality)
main debug: using video converter module “swscale”
main debug: looking for video converter module matching “any”: 23 candidates
yuvp debug: YUVP to YUVA converter
main debug: using video converter module “yuvp”
main debug: Deinterlacing available
main debug: deinterlace -1, mode auto, is_needed 0
main debug: looking for vout window module matching “qt,any”: 6 candidates
qt debug: requesting video window…
main debug: using vout window module “qt”
main debug: looking for inhibit module matching “any”: 2 candidates
dbus_screensaver debug: found service org.freedesktop.ScreenSaver
main debug: using inhibit module “dbus_screensaver”
main debug: resized to 720x396
main debug: Opening vout display wrapper
main debug: looking for vout display module matching “any”: 13 candidates
main debug: VoutDisplayEvent ‘resize’ 720x396
main debug: looking for opengl module matching “any”: 3 candidates
egl_x11 debug: EGL version 1.4 by Mesa Project
egl_x11 debug: extensions: EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_CHROMIUM_sync_control EGL_EXT_buffer_age EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_NOK_texture_from_pixmap EGL_WL_bind_wayland_display
qt debug: Logical video size: 720x396
main debug: resized to 720x396
main debug: VoutDisplayEvent ‘resize’ 720x396
main debug: using opengl module “egl_x11”
main debug: looking for glconv module matching “any”: 4 candidates
main debug: using glconv module “glconv_vaapi_x11”
main debug: using vout display module “gl”
main debug: original format sz 720x400, of (0,0), vsz 720x396, 4cc VAOP, sar 1:1, msk r0x0 g0x0 b0x0
main debug: removing module “freetype”
main debug: looking for text renderer module matching “any”: 3 candidates
freetype debug: Building font databases.
qt debug: Logical video size: 720x396
main debug: resized to 720x396
main debug: VoutDisplayEvent ‘resize’ 720x396
freetype debug: Took -11014 microseconds
main debug: using text renderer module “freetype”
main debug: looking for hw decoder module matching “any”: 3 candidates
main debug: using hw decoder module “vaapi”
avcodec info: Using Intel i965 driver for Intel ® Haswell Mobile - 2.3.0 for hardware decoding
main debug: Received first picture
main debug: Decoder wait done in 178 ms
pulse debug: cannot synchronize start
pulse debug: deferring start (28842 us)
pulse debug: deferring start (7505 us)
pulse warning: starting late (-14183 us)
pulse debug: started
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main warning: playback too early (-41729): down-sampling
main warning: playback too late (60160): up-sampling
main warning: timing screwed (drift: 120322 us): stopping resampling
main warning: playback too late (120427): up-sampling
main debug: resampling stopped (drift: -240 us)
main warning: playback too early (-41751): down-sampling

看来我的猜测被推翻了。
在这里,VLC 的 prefetch 成功拿到数据。
前面 smb error: read failed (Invalid argument)估计是盒子的 bug。
可能原因太多了。
smb 服务的版本不同,甚至盒子内存过小,或者单纯的那个版本的 smb 服务有 bug。。。。。。

就是说这个锅要 smb 背喽:joy:

等下午我在路由器上试一试 :joy:
但我好像没有这么大的电影 :crying_cat_face:

拜托你根本没设置成功。你的 prefetch buffer 现在还是那个 16 MB (16777216) 的。楼上改成 16 KB (16384) 的已经成功了。

你仔细比较你两个 log 的这个位置,小文件一次能取到 16 MB 的 buffer,而大文件即使你的 buffer 是 16 MB,vlc 也只能取到 16 KB,然后再后面用这个 buffer 的时候就出错了。

可能我截图问题,我该了,它不是秒错了,而是一直在那滚进度条,左右左右来回滚,差不多 3 分钟,还在滚:rofl:,我就手动终止了,然后又改回去了

所以再发一边日志?
修改过后的?

@marguerite@BearChild
默认的时候,不能播的,是秒终止的,该了之后,一直在那左右左右滚。。。
这个是改了之后的 log:
main debug: processing request item: xxxxxx.mp4, node: 播放列表, skip: 0
main debug: rebuilding array of current - root 播放列表
main debug: rebuild done - 1 items, index 0
main debug: starting playback of new item
main debug: resyncing on xxxxxx.mp4
main debug: xxxxxx.mp4 is at 0
main debug: creating new input thread
main debug: Creating an input for ‘xxxxxx.mp4’
main debug: requesting art for new input thread
main debug: looking for meta fetcher module matching “any”: 1 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching “any”: 2 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/01_googleimage.luac
lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac
lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/03_lastfm.luac
lua debug: skipping script (unmatched scope) /usr/lib64/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
main debug: looking for meta fetcher module matching “any”: 1 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching “any”: 2 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: smb://192.168.0.2/Downloads/xxxxxx.mp4' gives accesssmb’ demux any' path192.168.0.2/Downloads/xxxxxx.mp4’
main debug: creating demux: access=‘smb’ demux=‘any’ location=‘192.168.0.2/Downloads/xxxxxx.mp4’ file=’(null)’
main debug: looking for access_demux module matching “smb”: 19 candidates
main debug: no access_demux modules matched
main debug: creating access: smb://192.168.0.2/Downloads/xxxxxx.mp4
main debug: looking for access module matching “smb”: 29 candidates
dbus debug: Getting All properties
dbus debug: Getting All properties
dbus debug: Getting property Position
main debug: using access module “smb”
main debug: looking for stream_filter module matching “prefetch,cache_read”: 26 candidates
prefetch debug: using 16777216 bytes buffer, 16384 bytes read
main debug: using stream_filter module “prefetch”
main debug: looking for stream_filter module matching “any”: 26 candidates
qt debug: IM: Setting an input
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/playlist
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/playlist
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/anevia_streams.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/anevia_xml.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/appletrailers.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/bbc_co_uk.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/cue.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/dailymotion.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/jamendo.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/koreus.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/liveleak.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/newgrounds.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/rockbox_fm_presets.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/soundcloud.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/twitch.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/vimeo.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/vocaroo.luac
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/playlist/youtube.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/playlist
main debug: no stream_filter modules matched
main debug: looking for stream_directory module matching “any”: 1 candidates
main debug: no stream_directory modules matched
main debug: attachment of directory-extractor failed for smb://192.168.0.2/Downloads/xxxxxx.mp4
main debug: looking for stream_filter module matching “record”: 26 candidates
main debug: using stream_filter module “record”
main debug: creating demux: access=‘smb’ demux=‘any’ location=‘192.168.0.2/Downloads/xxxxxx.mp4’ file=’(null)’
main debug: looking for demux module matching “any”: 53 candidates
smb debug: seeking to 7084816230
smb error: read failed (Invalid argument)
prefetch debug: end of stream
mp4 debug: dumping root Box “root”
mp4 debug: | + ftyp size 32 offset 0
mp4 debug: | + mdat size 7084816198 offset 32
mp4 debug: ISO Media (isom) version 512.
mp4 error: MP4 plugin discarded (no moov,foov,moof box)
mp4 debug: freeing all memory
smb debug: seeking to 0
main debug: looking for xml reader module matching “any”: 1 candidates
main debug: using xml reader module “xml”
webvtt debug: subtitle demux discarded
ts debug: TS module discarded (lost sync)
avformat debug: trying url: smb://192.168.0.2/Downloads/xxxxxx.mp4
avformat debug: CPU flags: 0x000fd3db
avformat debug: detected format: mov,mp4,m4a,3gp,3g2,mj2
smb debug: seeking to 7084816230
smb error: read failed (Invalid argument)
prefetch debug: end of stream
smb debug: seeking to 0
smb debug: seeking to 7084816230
smb error: read failed (Invalid argument)
prefetch debug: end of stream
avformat error: Could not open smb://192.168.0.2/Downloads/xxxxxx.mp4: Unknown error 1094995529
smb debug: seeking to 0
vobsub debug: this doesn’t seem to be a vobsub file
ps warning: this does not look like an MPEG PS stream, continuing anyway
main debug: using demux module “ps”
main debug: looking for meta reader module matching “any”: 2 candidates
lua debug: Trying Lua scripts in /home/xyz/.local/share/vlc/lua/meta/reader
lua debug: Trying Lua scripts in /usr/lib64/vlc/lua/meta/reader
lua debug: Trying Lua playlist script /usr/lib64/vlc/lua/meta/reader/filename.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
main debug: no meta reader modules matched
main debug: `smb://192.168.0.2/Downloads/xxxxxx.mp4’ successfully opened
ps warning: garbage at input from 509, trying to resync…
dbus debug: Getting property CanSeek
dbus debug: Getting property Position
ps warning: found sync code
ps warning: garbage at input, trying to resync…
smb debug: seeking to 7096869862
smb error: read failed (Invalid argument)
prefetch debug: end of stream
smb debug: seeking to 25795436
ps warning: found sync code
main debug: selecting program id=0
main debug: looking for packetizer module matching “any”: 25 candidates
main debug: using packetizer module “mpegvideo”
main debug: looking for video decoder module matching “any”: 17 candidates
avcodec debug: using ffmpeg Lavc58.54.100
avcodec debug: CPU flags: 0x000fd3db
avcodec debug: allowing 5 thread (s) for decoding
avcodec debug: codec (mpeg2video) started
main debug: using video decoder module “avcodec”
ps warning: garbage at input from 30305238, trying to resync…
ps warning: found sync code
ps warning: garbage at input from 36974095, trying to resync…
ps warning: found sync code
main debug: looking for packetizer module matching “any”: 25 candidates
main debug: using packetizer module “mpegaudio”
main debug: looking for audio decoder module matching “any”: 20 candidates
mpg123 debug: mpga->f32l, bits per sample: 32
main debug: using audio decoder module “mpg123”
mpegaudio debug: waiting for PTS
ps warning: garbage at input from 38476828, trying to resync…
ps warning: found sync code
main debug: looking for packetizer module matching “any”: 25 candidates
main debug: using packetizer module “mpegvideo”
main debug: looking for video decoder module matching “any”: 17 candidates
avcodec debug: using ffmpeg Lavc58.54.100
avcodec debug: CPU flags: 0x000fd3db
avcodec debug: allowing 5 thread (s) for decoding
avcodec debug: codec (mpeg2video) started
main debug: using video decoder module “avcodec”
ps warning: garbage at input from 38511615, trying to resync…
ps warning: found sync code
ps warning: garbage at input from 38609088, trying to resync…

反正与 SMB 有关。
它一直在反复加载一块:
先从头开始,然后再加载另一块。奇怪的是,这个值非常大 “7096869862”,比 16 MB (16777216) 大得多,这绝对不是缓存一次所需要的量。所以 smb error: read failed (Invalid argument),因为这个参数太大。
所以是 vlc 的锅?

我想到一个点子:你试试在手机上能不能用 smb 流媒体的形式播放。用个人推荐 Mix 文件管理器(因为它播放 smb 是流媒体形式,自带视频播放功能)。或者用 wine 装个其他播放器试试。定位问题。
如果的确是 vlc 的锅,就向官方提交 issue。

@marguerite 不会是因为这个原因导致的无法播放:
.mp4 视频存在 moov 标记了元数据信息(即一些参数),且其位置在 mdat(媒体内容)之后,播放器解析需要 moov,待下载完 mdat,才能读取到 moov,之后再进行播放

回家分别弄两个一个在前面 一个在后面的视频文件试试

访问错误;

工具 - 偏好 - 选择全部 - 搜索 smb(访问模块-smb),填入 smb 的 user/pwd