Do not read complete videos in RAM (#419)
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 19 Dec 2012 14:03:43 +0000 (15:03 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 16 Jan 2013 19:19:26 +0000 (20:19 +0100)
commitc00e18fe49ae357c897855dfbc2e7d110c0762b1
treec46bffc0f20e06cb6affe9b11c4fd0e864c5292d
parent9408938bcca29c385b95beb043c04f6d25e65316
Do not read complete videos in RAM (#419)

We were reading the complete "medium" "thumbnail" and "original"
in RAM via dst.write(src.read()). Just call the appropriate storage
methods copy_local_to_storage which are responsible for streaming
local files efficiently.

The efficiency of this patch depends on the separate branch that
actually implements chunked copying for Storage().copy_local_to_storage()
mediagoblin/media_types/video/processing.py