problem with libvlc_media_new_path
Posted: 13 Apr 2015 14:04
Hello,
I have trouble with the deploiement of a example on my computer.
I use that code:
When I launch the program on my first computer the video source works properly. But on my second computer I get that error:
I don't understand why the program add "/home/xxxxx/xxxx/" before v4l2:///dev/video0 .
Can someone give me a hand?
Best regard.
I have trouble with the deploiement of a example on my computer.
I use that code:
Code: Select all
m = libvlc_media_new_path(inst, "v4l2:///dev/video0");
/* Create a media player playing environement */
mp = libvlc_media_player_new_from_media (m);
libvlc_media_player_play(mp);
Code: Select all
[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.
Can someone give me a hand?
Best regard.