Given a wmv file that is streaming online. The file is around 10kb as it does not have any video. If i click on the file it opens windows media player which then connects to the net. Windows media player starts to cache the file and then play the video for me.
Instead I would like my python program to open the file. Grab the content from the net and then download it for me. How would can I do this?
I was facing the same issue and looked into the Python VLC bindings but because I was pressed for time and there was a lack of examples using the bindings, I went for another approach.
The vlc command line is extremely powerful. Using subprocess.call i did direct calls to the vlc command line.
This is the format I used and it worked beautifully.
In the part of the list of parameters you send to call, here is a description of each:
If you wish to see the full code i used to first find the it here.