Page MenuHome

VSE proxies
Closed, ArchivedPublic

Description

To generate multiple proxies in a batch way, one is to add the video files in the VSE then one selects all the video files then generates proxies in the side panel. In the VSE, add movie then select the files you want to generate proxies from then add movie strip will import video files in the VSE as strips.
When doing so with a large amount of files (superior to 30), blender crashes. When reducing the amount of files to around 10 to 20 files, it will work but the following happens: after selecting the file then clicking on "add movie strip", blender freezes for about 30 secondes to a minute. Once in the VSE, after selecting the video strips and asking blender to generate proxies, blender will freeze once again (not responding on top) and eventually will unfreeze after a minute or so and start generating proxies. The more files are added, the longer the wait (several minutes). Depending on the computer, adding more than 20 to 30 files at once in the VSE will generate a crash.

This bug has been noticed on several windows 7 and windows 8 computers (desktops and laptops) with 8 GB of ram.
Video files imported were 4K mp4 files (H265) from a samsung NX1 (samples available online)
Occasionnaly windows will display a window saying that there is not enough memory on the computer and will suggest to close all programs. Task manager shows use of 7,25 Gb of memory out of 8 gb, cpu used at 100% during the proxy building.

Event Timeline

Maxime (spaceman) raised the priority of this task from to 90.
Maxime (spaceman) updated the task description. (Show Details)
Maxime (spaceman) edited a custom field.
Sergey Sharybin (sergey) lowered the priority of this task from 90 to 30.Aug 24 2015, 10:47 AM

Please follow report bug guidelines and provide:

  • Exact version of blender you're using
  • Sample .blend file and files needed to reproduce the issue

This bug occurs on version 2.74 and 2.75a windows and mac versions.

Sample images in 4k:
http://www.imaging-resource.com/PRODS/samsung-nx1/FULLRES/yvid_SAM_0164-C4K_Sample2.MP4
http://www.imaging-resource.com/news/2014/11/19/samsung-nx1-4k-video-samples-and-new-full-res-frame-grabs-available-for-do
multiplying file sample2.mp4 by 200 in a folder will reproduce the issue.

Importing the mp4 files in the vse in a new scene will reproduce the issue so I guess a sample .blend file would not be of any help but I'm happy to provide one if needed! :)

Sergey Sharybin (sergey) raised the priority of this task from 30 to Normal.Aug 24 2015, 2:52 PM
Sergey Sharybin (sergey) changed the task status from Unknown Status to Unknown Status.Aug 28 2015, 3:28 PM
Sergey Sharybin (sergey) claimed this task.

Sample images gives like 403 error, however looked into more details about timing/memory with 2K movie here.

The reason of initial delay is because there's some non-thread-safe code happening before re-encoding process, starting all the FFmpeg contexts and so. Depending on container/codec it could take more time or less.

As for memory usage -- currently contexts for all selected strips are being created.

Surely it could all become more lazily initialized and so, but it adds some extra tread safety issues and technically such an improvements does not belong to bug tracking process.

So thanks for the report, but closing as a TODO.

P.S. @Antonis Ryakiotakis (psy-fi) might be interested in looking into improving this system one day.