Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4115770
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:37:29+00:00 2026-05-20T22:37:29+00:00

Given a wmv file that is streaming online. The file is around 10kb as

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T22:37:29+00:00Added an answer on May 20, 2026 at 10:37 pm

    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.

    subprocess.call([path_to_vlc, 
                     mms_url, 
                     '--sout', 
                     'file/avi:'+target_file,
                     'vlc://quit'])
    

    In the part of the list of parameters you send to call, here is a description of each:

    • path_to_vlc — As the name suggests. You don’t have to use ” to encapsulate spaces as with os.system for Program Files, etc. subprocess.call does that for you.
    • mms_url — is the url to the stream. Since in my case it was a mms stream the param name stuck. You can use any of the supported vlc stream prefixes.
    • ‘–sout’ — since call encapsulate spaces for you, you need to explicitly separate each param where a space is needed. The actual param here is –sout file/avi:…. but we have to split them into two.
    • ‘file/avi:’+target_file — The uri (and muxer) pointing to the target file. I used no path to the file since I was standing in the target directory when calling the python script. The target file should
    • ‘vlc://quit’ — Last we tell vlc to quit after playback. This way you get rid of the zombie vlc windows that stick around after.

    If you wish to see the full code i used to first find the it here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given that the web application doesn't have su privileges, I'd like to execute a
Given that I have the array Let Sum be 16 dintptr = { 0
Given this pseudo-code, what I'd like to do is ensure that if I have
Given that an input String may be specified as follows: read(xpath(‘...’)) or xpath(‘...’) or
I have to use Sync Framework 2.0 in our WPF app that will contain
Given the following string: s = 'abcdefg*' How can I match it or any
Given this: $ids = ''; I just realized that this: $single = $ids ==
Given a table of structure: CREATE TABLE [dbo].[Example]( [FiscalYear] INT NOT NULL, [Hours] [decimal](28,
Given a storyboard-based application, how can any one view controller invoke the methods of
Given the exampleString = [9+[7*3+[1+2]]-5] How does one extract and store elements enclosed by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.