[C] VLC mediaplayer besturen vanuit een c programma

Pagina: 1
Acties:

  • Odin
  • Registratie: November 2002
  • Laatst online: 30-07 10:54

Odin

¯¯¯¯¯

Topicstarter
hallo,

ik ben bezig met een projectje voor school waarvoor ik VLC playlists moet laten afspelen op bepaalde condities. ik gebruik VLC onder ubuntu. ik wil dus uiteindelijk 2 playlists gaan gebruiken en mijn C programma moet dus continue checken op bepaalde condities en aan de hand daarvan VLC on the fly aansturen met een andere playlist.

ik gebruik nu deze code:
code:
1
2
system("cd /etc");
system("vlc -I rc add /home/odin/playlist_p.xspf");


waarop ik de volgende error krijg:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
VLC media player 0.8.6 Janus
Remote control interface initialized. Type `help' for help.
libdvdnav: Using dvdnav version 0.1.9 from http://dvd.sf.net
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't stat add
No such file or directory
libdvdnav: vm: faild to open/read the DVD
[00000289] main input error: no suitable access module for `add'
status change: ( new input: add )
status change: ( audio volume: 256 )
status change: ( play state: 1 )
status change: ( stop state: 0 )
libdvdnav: Using dvdnav version 0.1.9 from http://dvd.sf.net
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't stat /home/odin/playlist_p.xspf
No such file or directory
libdvdnav: vm: faild to open/read the DVD
[00000303] main input error: no suitable access module for `/home/odin/playlist_p.xspf'
status change: ( new input: /home/odin/playlist_p.xspf )
status change: ( audio volume: 256 )
status change: ( play state: 1 )
status change: ( stop state: 0 )
[00000279] main playlist: nothing to play


Verder runt mijn programma niet door wanneer VLC draait, heeft iemand hier oplossingen voor?
En algemene programmeer tips over hoe ik deze aansturing aan moet pakken?

  • zeroxcool
  • Registratie: Januari 2001
  • Laatst online: 27-11 18:30
Wat doet dit:
C:
1
system("/etc/vlc -I rc add /home/odin/playlist_p.xspf");
?

Kijk anders eens naar de execxx(2) familie.

[ Voor 40% gewijzigd door zeroxcool op 21-03-2007 19:40 ]

zeroxcool.net - curity.eu


Verwijderd

Weet iemand trouwens of/hoe het mogelijk is om de vlc player(beeld van avi bijv.) te integreren in een QT applicatie?