Page MenuHome

VSE video strips with audio get packed into the .blend file when auto-packing enabled, leading to crashes with large amounts of videos
Open, Confirmed, LowPublic

Description

System Information
Operating system: Windows 8.1

Blender Version
Broken: 2.80, 2019-04-09
Worked: 2.79

Short description of error
Blender will try to pack all video/audio files in the vse into the .blend file if "File>External Data>Automatically Pack Into .blend" is enabled. This is terrible default behavior since it can very easily lead to blender attempting to save huge multi-gb files.
In addition to this, if you have more gb of files than you have ram, blender will crash when you enable auto-pack... really easy to do since a single video can easily be over 32gb.

Some notes:
Blender seems to only decide to do this for video files that have an audio track, even if the audio track is no longer loaded into the timeline.
There are no options to pack/unpack a video track. If the audio track is removed, the file will still attempt to be packed, but it cannot be unpacked.

Exact steps for others to reproduce the error
Create a new 'Video Editing' file.
Load several gb of videos with audio into the vse timeline.
Select "File>External Data>Automatically Pack Into .blend"
Save the file...

Details

Type
Bug

Event Timeline

Video file is a source of audio strip in some cases. Movie strips doesn't support packing, so technically it's doing what it is supposed to do.

We can't just pack audio stream data without running it through some decoder/encoder. So then question would be, what to do with that data.

If the audio track is removed, the file will still attempt to be packed

Can not confirm. This would be a bug however.

This could be feature request, not quite a valid bug report.

I will have to ask check what is that feature supposed to do and how it is supposed to work, to see if some workaround can be implemented (max size for auto packing, prompt, disable auto pack for audio strips, ...)

Video file is a source of audio strip in some cases. Movie strips doesn't support packing, so technically it's doing what it is supposed to do.

What do you mean? Thats the whole issue with this report, it IS packing movie strips.

If the audio track is removed, the file will still attempt to be packed

Can not confirm. This would be a bug however.

If I load in a 30gb file with audio/video tracks, then delete the audio track, then select the auto-pack, it will crash because it is packing the file.

I will have to ask check what is that feature supposed to do and how it is supposed to work, to see if some workaround can be implemented (max size for auto packing, prompt, disable auto pack for audio strips, ...)

Well, the way it used to work in 2.79 was that it would pack audio-only files (ie, a .wav or a .mp3) that are loaded in the timeline, it didn't pack video files.

Brecht Van Lommel (brecht) claimed this task.

We don't consider this a bug, even if this is something we can improve. Mainly we'd need to improve error handling or warnings I think, but that's difficult to detect. Separating audio from the video is not practical.

The purpose of the packing system is really to pack everything in a .blend file and be able to distribute it easily. It doesn't make too much sense for video editing, except for really small project. Not packing certain types of files because they might be big is not a good solution in my opinion though, it's rather arbitrary.

what about the fact that there is no way to unpack a video track once it is packed? and no way to manually pack a video-only track?
or how it doesn't auto-pack video-only tracks or image sequences?
or that it doesn't auto-pack a video that is a texture in the 3d view? or the movie clip editor?
if this isn't a bug, then certainly those things are.

there's also the fact that literally no video editor EVER has tried to do this.
do you really want anyone who is using the vse to accidentally crash blender, or at the very least create multi-gb files that take a crazy long time to save. if they click that auto-pack button?

what about the fact that there is no way to unpack a video track once it is packed? and no way to manually pack a video-only track?
or how it doesn't auto-pack video-only tracks or image sequences?
or that it doesn't auto-pack a video that is a texture in the 3d view? or the movie clip editor?

I understood, that ideally all assets should be supported.

do you really want anyone who is using the vse to accidentally crash blender, or at the very least create multi-gb files that take a crazy long time to save. if they click that auto-pack button?

No as a quick fix I will create a prompt explaining that this action will likely crash Blender, with option to proceed anyway or stop the action.

I am not exactly sure what exactly you do want to achieve, but seems to me you need tool like this
https://docs.blender.org/manual/en/latest/pipeline/bam.html#bam-pack

Brecht Van Lommel (brecht) triaged this task as Confirmed, Low priority.Apr 18 2019, 11:48 AM

We discussed this a bit and could add a warning when packing such huge files.

This is not so much a feature for the video editor but for other parts of Blender. It happens to work for the video editor because it's integrated into the rest of Blender, and disabling it specifically for the video editor is not well defined.

No as a quick fix I will create a prompt explaining that this action will likely crash Blender, with option to proceed anyway or stop the action.

I am not exactly sure what exactly you do want to achieve, but seems to me you need tool like this
https://docs.blender.org/manual/en/latest/pipeline/bam.html#bam-pack

I think you misunderstood my intentions - I think packing in video files at all is a terrible thing, I think it should simply behave as 2.79 did (ie, only try to pack in audio-only files). My opinion is that reverting to 2.79's behavior would be the best resolution to this problem.

However, from your replies, it sounded as if that that old behavior was no longer the intention (ie, that you were saying it now should pack all video files as well). If that is the case, I wanted to show that it will necessitate several other changes so as not to confuse or limit the user.
Again, I hope this isn't how blender ends up behaving, but more than my personal preferences, I want blender to behave consistently and reliably.

We discussed this a bit and could add a warning when packing such huge files.

Thank you for looking into this.

Is there any hope of having the video auto-packing removed again so it behaves like 2.79? Or will this only be made into a warning popup? I really miss being able to actually use the auto-pack feature...
I understand the desire for blender to behave uniformly across all file types, but sometimes it just doesn't make sense to do so.