FFMPEG Output allows invalid format/codec combinations #44468

Open
opened 2015-04-21 16:08:00 +02:00 by Joerg Mueller · 11 comments
Member

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"?

**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"?
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @neXyon

Added subscriber: @neXyon

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2015-04-22 17:58:20 +02:00

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.

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.
Author
Member

Added subscriber: @ideasman42

Added subscriber: @ideasman42
Author
Member

This report comes from #38719 and I forgot that I also wanted to add @ideasman42 as subscriber.

This report comes from #38719 and I forgot that I also wanted to add @ideasman42 as subscriber.
Member

Added subscribers: @troy_s, @jta, @intracube, @JulianEisel, @Blendify

Added subscribers: @troy_s, @jta, @intracube, @JulianEisel, @Blendify
Member

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.

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.
Member

Changed status from 'Archived' to: 'Open'

Changed status from 'Archived' to: 'Open'
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

Please also see discussion in #47358

Please also see discussion in #47358
Sergey Sharybin was unassigned by Aaron Carlisle 2017-04-16 19:54:19 +02:00
Philipp Oeser removed the
Interest
User Interface
label 2023-02-10 09:26:31 +01:00
Sign in to join this conversation.
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
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#44468
No description provided.