VSE:Sound Clip with some .flac sound file show as length=0 #38719

Closed
opened 2014-02-19 12:10:55 +01:00 by mato T · 38 comments

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

  1. Put some sound clip on VSE and mixdown it. ( or download this file > https://dl.dropboxusercontent.com/u/67560987/testfile.flac)
    2.Open the generated sound file with VSE.
**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** 1. Put some sound clip on VSE and mixdown it. ( or download this file > https://dl.dropboxusercontent.com/u/67560987/testfile.flac) 2.Open the generated sound file with VSE.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @mato_sus304

Added subscriber: @mato_sus304
Sergey Sharybin self-assigned this 2014-02-19 13:56:06 +01:00
Sergey Sharybin removed their assignment 2014-02-21 09:22:31 +01:00
Joerg Mueller was assigned by Sergey Sharybin 2014-02-21 09:22:31 +01:00

Added subscriber: @Sergey

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.

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

Changed status from 'Open' to: 'Archived'

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

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

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
Author

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?

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'

Changed status from 'Archived' to: 'Open'

Added subscriber: @neXyon

Added subscriber: @neXyon

@neXyon, blender shall not produce files it couldn't read. This is to be investigated.

@neXyon, blender shall not produce files it couldn't read. This is to be investigated.
Member

Is this fixed with the recent changes to the AVCODEC_ENCODE_AUDIO_2 changes?

Is this fixed with the recent changes to the AVCODEC_ENCODE_AUDIO_2 changes?
Author

I tried Blender git f03df4f and ffmpeg version N-61155-g61ff043. But it looks like same trouble happens.

I tried Blender git f03df4f and ffmpeg version N-61155-g61ff043. But it looks like same trouble happens.
Member

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

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

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](https://archive.blender.org/developer/F81426/T38719_f1.blend) Regards
Member

Can you still add which ffmpeg version you're using on the linux distributions? It still works fine here on arch linux...

Can you still add which ffmpeg version you're using on the linux distributions? It still works fine here on arch linux...
Author

Fedora20

$ ffmpeg -version
ffmpeg version 2.1.4
built on Feb 25 2014 08:24:47 with gcc 4.8.2 (GCC) 20131212 (Red Hat 4.8.2-7)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil      52. 48.101 / 52. 48.101
libavcodec     55. 39.101 / 55. 39.101
libavformat    55. 19.104 / 55. 19.104
libavdevice    55.  5.100 / 55.  5.100
libavfilter     3. 90.100 /  3. 90.100
libavresample   1.  1.  0 /  1.  1.  0
libswscale      2.  5.101 /  2.  5.101
libswresample   0. 17.104 /  0. 17.104
libpostproc    52.  3.100 / 52.  3.100

Ubuntu12.04LTS

$ ffmpeg -version
ffmpeg version 0.8.9-4:0.8.9-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
  built on Nov  9 2013 19:08:00 with gcc 4.6.3

THIS PROGRAM IS DEPRECATED

This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
ffmpeg 0.8.9-4:0.8.9-0ubuntu0.12.04.1
libavutil    51. 22. 1 / 51. 22. 1
libavcodec   53. 35. 0 / 53. 35. 0
libavformat  53. 21. 1 / 53. 21. 1
libavdevice  53.  2. 0 / 53.  2. 0
libavfilter   2. 15. 0 /  2. 15. 0
libswscale    2.  1. 0 /  2.  1. 0
libpostproc  52.  0. 0 / 52.  0. 0 
Fedora20 ``` $ ffmpeg -version ffmpeg version 2.1.4 built on Feb 25 2014 08:24:47 with gcc 4.8.2 (GCC) 20131212 (Red Hat 4.8.2-7) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect libavutil 52. 48.101 / 52. 48.101 libavcodec 55. 39.101 / 55. 39.101 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 ``` Ubuntu12.04LTS ``` $ ffmpeg -version ffmpeg version 0.8.9-4:0.8.9-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers built on Nov 9 2013 19:08:00 with gcc 4.6.3 ``` ***THIS PROGRAM IS DEPRECATED*** ``` This program is only provided for compatibility and will be removed in a future release. Please use avconv instead. ffmpeg 0.8.9-4:0.8.9-0ubuntu0.12.04.1 libavutil 51. 22. 1 / 51. 22. 1 libavcodec 53. 35. 0 / 53. 35. 0 libavformat 53. 21. 1 / 53. 21. 1 libavdevice 53. 2. 0 / 53. 2. 0 libavfilter 2. 15. 0 / 2. 15. 0 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 52. 0. 0 / 52. 0. 0 ```

We did some fixes in blender. Does the issue happens with official builds from blender.org still?

We did some fixes in blender. Does the issue happens with official builds from blender.org still?
Author

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.

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?

@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?
Author

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.

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](https://archive.blender.org/developer/F91862/T38719_f2.blend) create by Blender2.71testbuild2) But it seems like same thing, The issue still happens.

Added subscriber: @jonata

Added subscriber: @jonata

I can confirm that this issue is still present in Blender 2.71.

I can confirm that this issue is still present in Blender 2.71.
Member

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?

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

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

Added subscriber: @Kunda

This bug is still present on Blender 2.73

This bug is still present on Blender 2.73
Member

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!

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.

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

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!

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

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

Has there been any progress on this? @neXyon, do you have it on track?

Has there been any progress on this? @neXyon, do you have it on track?
Member

Added subscriber: @ideasman42

Added subscriber: @ideasman42
Member

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?

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.

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

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!

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](https://archive.blender.org/developer/F165014/lossless_ui_patch.diff) which @ideasman42 can review please before one of us commits it!

Added subscriber: @JoelXu

Added subscriber: @JoelXu
Joerg Mueller removed their assignment 2015-07-30 11:55:47 +02:00
Campbell Barton was assigned by Joerg Mueller 2015-07-30 11:55:47 +02:00

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Committed [lossless_ui_patch.diff](https://archive.blender.org/developer/F165014/lossless_ui_patch.diff) a2a0e7aed9
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
8 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#38719
No description provided.