Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 不完整*.rar在VLC上工作,但在libVLC上不工作_Python_Vlc_Libvlc - Fatal编程技术网

Python 不完整*.rar在VLC上工作,但在libVLC上不工作

Python 不完整*.rar在VLC上工作,但在libVLC上不工作,python,vlc,libvlc,Python,Vlc,Libvlc,我试图使用带有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. [0x7fde50

我试图使用带有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绑定运行视频,它就不起作用了

import vlc, time
instance = vlc.Instance()
media=instance.media_new('/tmp/incomplete.rar')
player=instance.media_player_new()
player.set_media(media)
player.play()

time.sleep(10)
输出:

[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没有的默认选项。在此方面的任何帮助都将不胜感激