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

Closed
opened 9 years ago by mato_sus304 · 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.
Poster

Changed status to: 'Open'

Changed status to: 'Open'
Poster

Added subscriber: @mato_sus304

Added subscriber: @mato_sus304
Sergey self-assigned this 9 years ago
Sergey removed their assignment 9 years ago
neXyon was assigned by Sergey 9 years ago
Sergey commented 9 years ago
Owner

Added subscriber: @Sergey

Added subscriber: @Sergey
Sergey commented 9 years ago
Owner

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.
neXyon commented 9 years ago
Collaborator

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
neXyon closed this issue 9 years ago
neXyon commented 9 years ago
Collaborator

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
Poster

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?
Sergey commented 9 years ago
Owner

Changed status from 'Archived' to: 'Open'

Changed status from 'Archived' to: 'Open'
Sergey reopened this issue 9 years ago
Sergey commented 9 years ago
Owner

Added subscriber: @neXyon

Added subscriber: @neXyon
Sergey commented 9 years ago
Owner

@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.
neXyon commented 9 years ago
Collaborator

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

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.
neXyon commented 9 years ago
Collaborator

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
Poster

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
neXyon commented 9 years ago
Collaborator

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

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 ```
Sergey commented 9 years ago
Owner

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

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.
Sergey commented 9 years ago
Owner

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

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.
jonata commented 9 years ago

Added subscriber: @jonata

Added subscriber: @jonata
jonata commented 9 years ago

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.
neXyon commented 9 years ago
Collaborator

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?
jonata commented 9 years ago

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
Kunda commented 8 years ago

Added subscriber: @Kunda

Added subscriber: @Kunda
jonata commented 8 years ago

This bug is still present on Blender 2.73

This bug is still present on Blender 2.73
neXyon commented 8 years ago
Collaborator

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!
jonata commented 8 years ago

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.
neXyon commented 8 years ago
Collaborator

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

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Collaborator

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?
neXyon commented 8 years ago
Collaborator

Added subscriber: @ideasman42

Added subscriber: @ideasman42
neXyon commented 8 years ago
Collaborator

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

@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.
neXyon commented 8 years ago
Collaborator

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!
JoelXu commented 8 years ago

Added subscriber: @JoelXu

Added subscriber: @JoelXu
neXyon removed their assignment 8 years ago
ideasman42 was assigned by neXyon 8 years ago
Owner

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
ideasman42 closed this issue 8 years ago
Owner
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/Collada
Interest/Compositing
Interest/Core
Interest/Cycles
Interest/Dependency Graph
Interest/Development Management
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/Modeling
Interest/Modifiers
Interest/Motion Tracking
Interest/Nodes & Physics
Interest/Overrides
Interest/Performance
Interest/Performance
Interest/Physics
Interest/Pipeline, Assets & I/O
Interest/Platforms, Builds, Tests & Devices
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
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/Triaging
legacy module/User Interface
legacy module/VFX & Video
legacy project/1.0.0-beta.2
legacy project/Asset Browser (Archived)
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Code Quest
legacy project/Datablocks and Libraries
legacy project/Eevee
legacy project/Game Animation
legacy project/Game Audio
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Logic
legacy project/Game Physics
legacy project/Game Python
legacy project/Game Rendering
legacy project/Game UI
legacy project/GPU / Viewport
legacy project/GSoC
legacy project/Infrastructure: Websites
legacy project/LibOverrides - Usability and UX
legacy project/Milestone 1: Basic, Local Asset Browser
legacy project/Nodes
legacy project/OpenGL Error
legacy project/Papercut
legacy project/Pose Library Basics
legacy project/Retrospective
legacy project/Tracker Curfew
legacy project/Wintab High Frequency
Meta/Good First Issue
Meta/Papercut
migration/requires-manual-verification
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 & Devices
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 Information 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…
There is no content yet.