不完整的*.rar适用于VLC,但不适用于libVLC

2024-04-26 00:42:29 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试使用带有python绑定的libVLC来播放一个不完整的rar文件。 如果我从控制台运行以下命令,我会得到一些错误,但我可以看到视频在VLC。在

VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d)
[0x652108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x7fde50c02028] filesystem access error: cannot open file /tmp/incomplete.r01 (No such file or directory)
[0x7fde50001438] main stream error: no suitable access module for `file:///tmp/incomplete.r01'
[0x8732e8] main playlist: stopping playback
[0x7fde50c0d5c8] filesystem access error: cannot open file /tmp/incomplete.r01 (No such file or directory)
[0x7fde50c018d8] main stream error: no suitable access module for `file:///tmp/incomplete.r01'
[0x7fde400505c8] freetype spu text error: Breaking unbreakable line

但是如果我用python绑定运行视频,它就不起作用了。在

^{pr2}$

输出:

[0x7f523800a0d8] filesystem access error: cannot open file /tmp/incomplete.r01 (No such file or directory)
[0x7f523800a0d8] main access error: File reading failed
[0x7f523800a0d8] main access error: VLC could not open the file "/tmp/incomplete.r01". (No such file or directory)
[0x7f5238006638] main stream error: no suitable access module for `/tmp/incomplete.r01'

我认为VLC使用了一些libVLC没有的默认选项。在


Tags: ornoaccessmainerroropendirectorytmp