Bonjour,
J'ai des problemes de déploiement d'une application de libVLC sur mon ordinateur
J'ai ce code
Quand j'utilise le programme sur mon pc ou j'ai compiler mon programme j'ai bien le retour video mais quand je fais sur mon 2ieme pc j'obtiens ca:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 inst = libvlc_new(0,NULL); m = libvlc_media_new_path(inst, "v4l2:///dev/video0"); mp = libvlc_media_player_new_from_media (m); libvlc_media_player_play(mp);
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 [0xae002948] filesystem access error: cannot open file /home/xxxxx/xxxx/v4l2:///dev/video0 (No such file or directory) [0xae002948] main access error: File reading failed [0xae002948] main access error: VLC could not open the file "/home/xxxxx/xxxx/v4l2:///dev/video0" (No such file or directory). [0x87d4d20] main input error: open of `file:///home/xxxxx/xxxx/%20%20%20v4l2%3A///dev/video0' failed [0x87d4d20] main input error: Your input can't be opened [0x87d4d20] main input error: VLC is unable to open the MRL 'file:///home//xxxxx/xxxx/%20%20%20v4l2%3A///dev/video0'. Check the log for details.
Je ne sais pas pourquoi il ajoute "/home/xxxxx/xxxx/" avant v4l2:///dev/video0 .
J'ai essayé plein de truc mais rien ne fonctionne.
Quelqu'un pourrait-il m'aider?
D'avance merci.
Partager