I have a wmv file at a particular url that I want to grab and save as a file using Python. My script uses urllib2 to authenticate and read the bytes and save them locally in chunks. However, once I open the file, no video player recognizes it. When I download the wmv manually from a browser, the file plays fine, but oddly enough ends up being about 500kb smaller than the file I end up with using Python. What's going on? Is there header information I need to somehow exclude?
Downloading wmv from a url in Python 2.6
406 Views Asked by Noah At
3
There are 3 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in URLLIB2
- Use python to access a site with PKI security
- source code of web page not available using urllib.urlopen()
- Python 3 urllib produces TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str
- Python Web Login Script not working
- I can't import urllib2
- Get File Upload Time From Server
- Celery/RabbitMQ unacked messages blocking queue?
- How to get a response for a streaming url on google app engine (python)
- How to POST a tgz file in Python using urllib2
- Python, Urllib2 and Openers
- Strange Output from Python urllib2
- Python urllib2 response 404 error but url can be opened
- Add SSL CA File Using urllib2
- How to use urllib2 in python 3.4 to get information from an API?
- Python 2.7.10 Trying to print text from website using Beautiful Soup 4
Related Questions in URLLIB
- Python keylogger: an integer is required
- Openstack token, I can get token with curl but can't with urllib
- Python web request slow through Proxy
- Python 3 urllib produces TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str
- I can't import urllib2
- Get File Upload Time From Server
- How Python3 urllib use selenium cookie
- How to POST - API in thingspeak.comusing urllib in Python
- Python avoid item = None in a request of multiple items
- Python: Urllib proxyhandler error
- Strange Output from Python urllib2
- Downloading a section of an Image from a website in python?
- Adding tags to mp3 with eyed3 results in no change
- Getting errors while using Python urllib
- Parse the html code for a whole webpage scrolled down
Related Questions in PYTHON-2.6
- I want to add a string in between of 2 strings in file, but in output whole text is getting appended at the end of file
- python formatting return value of subprocess
- How to install GSSAPI Python module?
- Python subprocess throws [Errno 2] No such file or directory, error generated only when it on a remote host
- Workarounds to get Google sign-in functioning with Python 2.6 and pyOpenSSL 0.10-2
- Python: Group and aggregate list of dictionaries [without Counter]
- python 2.6 subprocess enter psql password C shell
- Python Unittest- class variables
- Python script doesn't create text file on linux
- Error: pip install scipy
- Error: No matching distribution found for pip
- Why are python generator frames' (gi_frame) f_back attribute always none?
- Error while defining dictionary in spark 1.5.0, python 2.6
- import pandas : ImportError: cannot import name Counter in python 2.6.6
- Python: run service after hostapd
Related Questions in WMV
- how to add video player in mvc4 which supports .wmv, .3gp, .avi and different other formats
- How to get Pixel Aspect Ratio(PAR) from WMV clip in DShow Graph?
- ffmpeg: wmv files generated on Mac can't be played in Windows
- PHP headers to stream a wmv video file
- How to add a WmAsfReader Filter into the directshow filtergraph using c#? Using the qasf.dll right?
- Downloading wmv from a url in Python 2.6
- Opening a WMV file with window.open, in firefox; how can I prevent blank window from opening or close after file downloads?
- Using WMASFWriter generates a video which pauses at each keyframe interval
- how to set wmv spec info for decoder in media foundation
- How can I convert WMV to FLA?
- how to embed .wmv in html page and play / stop / change file using javascript?
- Conversion from avi to wmv
- Format of a .wmv file. (or any video file would be great)
- WMV Converter Fails FFMpeg
- Why opens the embedded real player plugin on Firefox a external window?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
What Transfer-Encoding is the server sending back? I would bet it is sending back Transfer-Encoding: chunked, which is ending up in your data.
http://en.wikipedia.org/wiki/Chunked_transfer_encoding