convert command line script to Python

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
sam reckoner
New Cone
New Cone
Posts: 3
Joined: 23 Apr 2012 18:17

convert command line script to Python

Postby sam reckoner » 23 Apr 2012 18:23

I have the following script in windows:

Code: Select all

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --dummy-quiet %1 :sout=#transcode{acodec=mp3}:duplicate{dst=std{access=file,mux=raw,dst=%1.mp3},select=novideo} vlc://quit
and I'm trying to convert it to a Python script using the vlc.py module. The problem is that there is not much documentation with the vlc Python module and I'm hoping somebody here can just quickly translate what I have into the appropriate Python code.

Thanks in advance.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: convert command line script to Python

Postby Jean-Baptiste Kempf » 23 Apr 2012 19:38

Else you can just use subprocess to do the same as on Windows.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

sam reckoner
New Cone
New Cone
Posts: 3
Joined: 23 Apr 2012 18:17

Re: convert command line script to Python

Postby sam reckoner » 24 Apr 2012 15:31

Yes, that would be one option. I am additionally trying to suppress the VLC window that opens with this. I would like the entire process to be command-line driven and silent.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 2 guests