libVLC と Python バインディングを使用して、不完全な 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 が使用しないいくつかのデフォルト オプションを使用していると思います。これに関するヘルプをいただければ幸いです。