Comments (4)
See also https://sourceforge.net/p/mlt/bugs/98/
A patch for this is welcomed.
from mlt.
Since you know more quickly how to analyze the problem (I have bad hearing and cannot hear the glitch), can you please make a quick test? Edit the .mlt XML file to remove lines from <transition>
through </transition>
and re-render it. That will help narrow down some things. Also, I see you are upsampling: 44.1 -> 48 KHz. Another quick test is to output 44.1 KHz to see if the problem goes away or is different: add "frequency=44100" somewhere after "-consumer" in the render script.
Once you do that, there is another couple of tests. Where MLT is installed, first make a backup copy of $prefix/share/mlt/core/loader.ini. Next, comment out the audio filter lines, one at a time: "channels=..." and "resampler=..." to see if that eliminates the problem.
With all of that done, it almost a pass-through as much as possible. However, I just noticed another thing. Your input audio is 32-bit floating point while the output is 16-bit signed integer. It is not enough to simply set the audio output sample format: "sample_fmt=flt" somewhere after "-consumer" in the render script. You must also change MLT's internal format: add "mlt_audio_format=float" somewhere after "-consumer".
from mlt.
Hi @ddennedy Thank you for the quick reply! The glitch is only audible with good headphones. I don't notice it with laptop speakers.
I tried the first thing you suggested (removing the transition) and it seems to have fixed the issue! I can't hear it nor see it on the spectrogram.
I wonder why is Kdenlive creating that transition. If you open my Kdenlive project you can see there's really nothing. No effects or transitions or multiple tracks. Just one track with the wav at the beginning.
Should I still try the other things you suggested? I don't know where to finde the "-consumer" you mentioned.
from mlt.
Closing this as will not fix. This is a side effect of using combine=1 with the mix transition. This was an attempt to provide a mixing algorithm with a simple, automatic approach to prevent attenuation of levels, which turns out to be a difficult problem in DSP. This simple approach inherently introduces artifacts. The workaround is to not use combine=1 and compensate for undesired attenuation levels with audio dynamics filters. Shotcut is moving away from using combine=1.
from mlt.
Related Issues (20)
- mlt 7.22.0 does not compile with libxml2 2.12.0
- Exporting AVI format videos is very blurry and clearly mosaic like HOT 2
- 7.22.0 CMakeLists.txt HOT 1
- mlt.so does not specify dependency on libruby.so HOT 1
- [SVT-AV1] MLT does not seem to support any configuration done via Kdenlive interface except "preset". HOT 1
- Discovered a bug regarding image size scaling and rotation
- sdl consumer may require SDL12COMPAT_NO_QUIT_VIDEO
- Protobuf duplicate library causes crash HOT 3
- Melt SIGSEGV when using the -chain flag HOT 5
- "Why does the outline range of fonts in Shotcut span from 0 to 200, while in MLT, the range is only from 0 to 3? Is there any solution?" HOT 6
- How to change the spacing of wrapped text? HOT 3
- how to use gpu decode video? HOT 1
- MLT master fails to build with ffmpeg 7.0 HOT 6
- Is there something wrong with the hash function of mlt_properties_add? HOT 2
- avformat: vbr parameter should also accept integer values HOT 1
- Audio not synchronized
- Setting lowres>=1 for codecs that don't support lowres results in broken output
- producer_avformat performs useless work when source is intra-only and consumer framerate is lower than the source's framerate HOT 4
- [producer_xml] failed to load filter "affine" HOT 2
- Rendering .mlt File to .mp4 with melt looses image transparency HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlt.