FFMPEG Output allows invalid format/codec combinations #44468
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
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
EEVEE & Viewport
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
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
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
EEVEE & Viewport
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
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#44468
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
System Information
Operating system and graphics card: any
Blender Version
Broken: all
Short description of error
Any video file format combination with video and audio codecs can be selected, but not all work.
Exact steps for others to reproduce the error
The encoding UI panel when selecting a Movie File Format allows different Formats (Flash, Matroska, Ogg, ...), Codecs (PNG, Theora, H.264, DV, ...) and Audio Codecs (PCM, FLAC, Vorbis, MP3, ...) to be selected in pretty much any combination. The (video) Codec is only hidden for Formats that only support one single Codec.
The same is true for the Python API, any combination of values for ffmpeg.format, ffmpeg.codec and ffmpeg.audio_codec can be set (ffmpeg = context.scene.render.ffmpeg).
One failing combination for example is setting H264 as Format and FLAC as Audio Codec. Another example is Quicktime as Format and Theora as Codec.
The problem is that FFMPEG has no API that tells us whether a specific combination works and encoding doesn't fail either. It outputs a file that simply cannot be played back (trying with VLC for example). So the big question is how to deal with this problem? Leave it up to the users to figure out possible combinations? Hardcode possible combinations in the UI or lower at RNA level so that Python API users are also "protected"?
Changed status to: 'Open'
Added subscriber: @neXyon
Changed status from 'Open' to: 'Archived'
I consider this is up to users to make sure settings are correct. Additionally, if the setting combination is not supported by FFmpeg, it is to be reported to FFmpeg so it throws a proper error.
Disabling anything in the UI in this case is not going to work apart from being a major PITA to maintain. Sure we can try disabling combinations which are not supported by FFmpeg (which we already kind of doing by reporting error message from FFmpeg, laving decision about what's supported and what's not up to FFmpeg itself). but at the same time not all the players supports all combinations which FFmpeg does which means artists are still to be aware of what are they doing.
So thanks for the report, but currently it's just FFmpeg which needs to provide proper error message if something is not supported.
Added subscriber: @ideasman42
This report comes from #38719 and I forgot that I also wanted to add @ideasman42 as subscriber.
Added subscribers: @troy_s, @jta, @intracube, @JulianEisel, @Blendify
I am going to argue the opposite and say that the extra code is worth it. Anyway, I really think that we should get some more user feedback here.
Changed status from 'Archived' to: 'Open'
Added subscriber: @BrendonMurphy
Please also see discussion in #47358