Search found 5 matches

Go to advanced search

by Undefinedmaniac
31 Dec 2016 17:35
Forum: Development around libVLC
Topic: How to play an Audio CD / DVD with VLC Python Bindings
Replies: 13
Views: 4951

Re: How to play an Audio CD / DVD with VLC Python Bindings

@Undefinedmaniac: With this code you can play a single Track: import vlc Player = vlc.MediaPlayer("cdda:///O:/", ":cdda-track=3") Player.play() while True: pass With this code you can play a Audio-CD: import vlc def setup_player(): instance = vlc.Instance() player = instance.med...
by Undefinedmaniac
27 Dec 2016 23:12
Forum: Development around libVLC
Topic: How to play an Audio CD / DVD with VLC Python Bindings
Replies: 13
Views: 4951

Re: How to play an Audio CD / DVD with VLC Python Bindings

Thanks again for the help, the CDDB module appears to be for python 2.0 and I am currently using python 3.5. I attempted to install the module regardless of the version mismatch however python 3.5 refused to run the files giving several errors. I also tried using the python 2to3 conversion tool to m...
by Undefinedmaniac
26 Dec 2016 19:11
Forum: Development around libVLC
Topic: How to play an Audio CD / DVD with VLC Python Bindings
Replies: 13
Views: 4951

Re: How to play an Audio CD / DVD with VLC Python Bindings

I used your code from above, but replaced the optical drive "O:/" with my drive "H:/". import vlc def setup_player(name): vlc_instance = vlc.Instance() player = vlc_instance.media_player_new() media = vlc_instance.media_new(name) player.set_media(media) player.play() setup_player...
by Undefinedmaniac
24 Dec 2016 00:34
Forum: Development around libVLC
Topic: How to play an Audio CD / DVD with VLC Python Bindings
Replies: 13
Views: 4951

Re: How to play an Audio CD / DVD with VLC Python Bindings

Thanks for the reply, the code for the DVD works flawlessly. However, when I try to play a CD with "cdda:///H:/" as my source (H is my CD reader on windows) I get the error "[00000240056f01f0] core stream error: cannot pre fill buffer".
by Undefinedmaniac
15 Dec 2016 02:21
Forum: Development around libVLC
Topic: How to play an Audio CD / DVD with VLC Python Bindings
Replies: 13
Views: 4951

How to play an Audio CD / DVD with VLC Python Bindings

Hello, I am currently working on a media player program using python 3.5, pyqt4, and the VLC python bindings. Although I have figured out how to play mp3s and other media files, I would like to be able to play from audio CDs and DVDs as well. The only example code I have seen is in C++ and I am havi...

Go to advanced search