Page 1 of 1

convert command line script to Python

Posted: 23 Apr 2012 18:23
by sam reckoner
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.

Re: convert command line script to Python

Posted: 23 Apr 2012 19:38
by Jean-Baptiste Kempf
Else you can just use subprocess to do the same as on Windows.

Re: convert command line script to Python

Posted: 24 Apr 2012 15:31
by sam reckoner
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.