VSE:Sound Clip with some .flac sound file show as length=0 #38719
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
8 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#38719
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
OS:Fedora19
GPU:AMD Radeon HD 7750
Blender Version
2.69.8
8094ac9
Short description of error
VSE:Sound Cilp with .flac sound file ( generated by Blender ) show as clip length = 0.
Exact steps for others to reproduce the error
2.Open the generated sound file with VSE.
Changed status to: 'Open'
Added subscriber: @mato_sus304
Added subscriber: @Sergey
It's an issue of mixdown by the looks of it. The file doesn't contain proper duration or timebase.
Re-assigning to our audio guru.
Changed status from 'Open' to: 'Archived'
This flac file is damaged! You can fix what is there for example with
ffmpeg -i testfile.flac testfile2.flac
but I fear that part of the end is missing.
Closing
Thanks for the answer. I understand it's an issue of flac file.
But this flac file is just generated from blender. And this bug happens every time when I mixdown the audio file on blender.
So...Am I have to fix the audio file every time I mixdown the flac file on blender?
Changed status from 'Archived' to: 'Open'
Added subscriber: @neXyon
@neXyon, blender shall not produce files it couldn't read. This is to be investigated.
Is this fixed with the recent changes to the AVCODEC_ENCODE_AUDIO_2 changes?
I tried Blender git
f03df4f
and ffmpeg version N-61155-g61ff043. But it looks like same trouble happens.I still cannot reproduce the issue, can you try the official RC build for 2.70? http://download.blender.org/release/Blender2.70/
I also don't know how you get that ffmpeg version you wrote, I have:
% ffmpeg -version
ffmpeg version 2.1.4
If it still happens can you upload a minimalistic .blend file with a packed sound that produces this error on audio mixdown to flac?
Regards
I noticed that this issue depends on platform. I tried Blender 2.70 RC2 on Windows7 64bit and it works fine.
But on Linux ( I tried Blender 2.70RC2 64bit on Fedora20 and Ubuntu12.04 LTS) this error caused.
This error caused by this .blend file.
T38719_f1.blend
Regards
Can you still add which ffmpeg version you're using on the linux distributions? It still works fine here on arch linux...
Fedora20
Ubuntu12.04LTS
THIS PROGRAM IS DEPRECATED
We did some fixes in blender. Does the issue happens with official builds from blender.org still?
I tried Blender 2.70a and 2.71testbuild2 (both x86_64, download from blender.org ) on Fedora20 ,the issue still happens.
I also tried change cmake flags to build blender, but it doesn't work well.
@mato_sus304, the thing is, the original file was corrupted. Opening it in newer blender wouldn't help. You need to re-create the file from blender. Is it something you did?
I see. At last post, I tried the blend file made by older blender. So I re-create the file by newer blender.( T38719_f2.blend create by Blender2.71testbuild2)
But it seems like same thing, The issue still happens.
Added subscriber: @jonata
I can confirm that this issue is still present in Blender 2.71.
And I still couldn't confirm this problem with my own blender builds and the one from my distro, but I just downloaded the official release from the website and indeed this bug is still present. Maybe it's a problem of the ffmpeg libraries used for the official build @Sergey?
We can see this issue while exporting a sequence from VSE in h264 format with FLAC as audio codec. The result is a file that does not contain "regular" flac audio stream and is mute even in VLC. What I need to do in this case is convert the file like this:
avconv -i final_file.avi -c:v copy -c:a flac converted_file.mkv
Added subscriber: @Kunda
This bug is still present on Blender 2.73
I've just conducted an experiment with ffmpeg, outside of blender running the following commands:
ffmpeg -i input.mp3 -c:a flac test.avi
ffmpeg -i test.avi test.wav
ffmpeg -i test.avi test.mkv
ffmpeg -i test.avi -c:a flac test.mkv
ffmpeg -i test.avi -c:a flac test.flac
I tried to play each output file with vlc and only the .flac and .wav file play. Using mplayer however all output files were played, but then again they use ffmpeg in the background.
Converting from the input file directly:
ffmpeg -i input.mp3 test.wav
ffmpeg -i input.mp3 test.mkv
ffmpeg -i input.mp3 -c:a flac test.mkv
ffmpeg -i input.mp3 -c:a flac test.flac
All resulting files can be played back properly.
At fault here is the avi container, which, besides outdated, doesn't support flac really. I don't know why this is the default container selected in blender, maybe because it's age results in a widespread compatibility (for the codecs supported...). I recommend you to use matroska directly as output container if you want flac as audio codec!
So, how can we generate a "lossless" h264 output with flac audio codec inside a mkv? The only way to get the h264 codec with the "lossless" option is generating an AVI.
You can check the lossless checkbox and then switch to matroska. Even though the checkbox disappears it is still set. If you want this user interface problem to be fixed, I'd recommend opening a separate bug/feature report for that!
Added subscriber: @JulianEisel
Has there been any progress on this? @neXyon, do you have it on track?
Added subscriber: @ideasman42
The user interface needs to be changed for this and as this affects the whole video encoding/exporting settings we might better ask the developer in charge for this area. Maybe @ideasman42 can help with a decision on what to do?
@neXyon, If AVI doesn't support flac - can't we just disable this combination? Its not only a UI issue. Python can setup these values too.
I've opened a separate report for the UI issue (#44468) regarding invalid format/codec combinations as this report is getting too big.
To enable the problem of @jonata to enable lossless H.264 output for MKV, I append the patch lossless_ui_patch.diff which @ideasman42 can review please before one of us commits it!
Added subscriber: @JoelXu
Changed status from 'Open' to: 'Resolved'
Committed lossless_ui_patch.diff
a2a0e7aed9