Video: Remove non-ffmpeg AVI support #118409
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#118409
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "aras_p/blender:remove_avi"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blender had a very limited (only uncompressed or MJPEG frames) .avi file support, for both reading and writing. This is something that ffmpeg can fully do.
This is an experiment to remove all of that. 3500 lines of code gone, primary motivations being:
User visible changes:
Performance tests: I tested whether there's any measurable performance difference in rendering out a movie with ffmpeg vs the old AVI options. In short, I can't see any. Rendering out 2000 frames of Sprite Fright data set, on Windows/Ryzen5950X, all of these options take ~1 minute. Difference is in file sizes:
@blender-bot build
WIP: Video: Remove non-ffmpeg AVI supportto Video: Remove non-ffmpeg AVI supportOn balance I'd rather keep this functionality although I realize the case for doing so isn't all that strong.
The multiple back-end argument assumes we might need to add another in the future, or switch away from FFMPEG at some point - neither seem all that likely.
An alternative to your PR could be to set
WITH_CODEC_AVI=OFF
for release builds, it means we ensure multiple implementations are available and the down-sides you mention for release builds are gone.Typically the overhead of maintaining additional code would be reason enough to remove code where possible, in practice I don't think this is such an issue for this area of the code.
@ideasman42 I guess a counterpoint, is that just because something compiles (i.e. a "different video backend"), does not necessarily mean it actually works. Actual case in point: today, the existing non-ffmpeg AVI reading code, apparently produces garbage: see image, VLC window is how it's supposed to look like, but within blender without ffmpeg it is decoded wrong.
My vote would be to remove this code. I think the abstraction mainly gets in the way and is not that difficult to restore in the unlikely event we switch to something else than ffmpeg. And leaving this as a feature for developers building without ffmpeg doesn't seem worth it.
I am with Brecht here, but from a perspective who was deeper involved into maintenance of video IO: I too think the code is to be removed to simplify maintenance of the code.
I could have been convinced that compiling with FFmpeg could be problematic, but now their API is quite stable, and we do provide precompiled libraries for all platforms. And the cost of the FFmpeg enabled is not that big.
The UI level is also important. I'd rather to have a single Video output option, and make that to work as good as possible than to provide non-obvious choice.