Avfilters don't work [Cannot set sink channel counts]

Recently, I have a problem with audio filters like Compressors and limiter. All of them give me an MLT error “Cannot set sink channel counts”. Firstly, i tried switching audio engines, but it did nothing. Then I tried other versions of ffmpeg (i use ffmpeg-obs) and even built latest version of mlt 7.24 from source and still have this problem.


[in @ 0x7b99fd711180] Changing video frame properties on the fly is not supported by all filters.

[in @ 0x7b99fd711180] filter context - w: 720 h: 720 fmt: 1 csp: unknown range: unknown, incoming frame - w: 720 h: 720 fmt: 1 csp: bt709 range: tv pts_time: 3.1

::::: ASSET IS AUDIO!!!

qml: Add effect: avfilter.asoftclip

XML parsing of "avfilter.asoftclip" . found 6 parameters

WARNING: Unknown type : "fixed"

END parsing of "avfilter.asoftclip" . Number of found parameters 5

// GOT CLIP STACK DATA CHANGE: QList(308)

// GOT CLIP STACK DATA CHANGE DONE: QModelIndex(0,0,0x6,TimelineItemModel(0x5d663a3b4b10)) = QList(308)

pos: 74 out: 9502

MLT: "[filter avfilter.asoftclip ] Cannot set sink channel counts"

When i tested in appimage of kdenlive everything works fine. I also noticed that it uses MLT 7.25.


// SETTING CLIP PROPERTIES: QMap(("kdenlive:duration", "00:00:16:22")("kdenlive:maxduration", "502")("length", "502")("out", "501"))

::::: ASSET IS AUDIO!!!

qml: Add effect: avfilter.asoftclip

XML parsing of "avfilter.asoftclip" . found 6 parameters

WARNING: Unknown type : "fixed"

END parsing of "avfilter.asoftclip" . Number of found parameters 5

// GOT CLIP STACK DATA CHANGE: QList(308)

// GOT CLIP STACK DATA CHANGE DONE: QModelIndex(0,0,0x6,TimelineItemModel(0x142f3770)) = QList(308)

[out @ 0x7b8fb0139140] Removing channel layout 0x3, redundant with 2 channels

pos: 159 out: 9502

I am not really tech savvy, but is it a good idea to copy all the mlt files from appimage to my system and try it. Or is it a problem with my audio system witch is fixed by appimage environment?(pipewire)


Server String: /run/user/1000/pulse/native

Library Protocol Version: 35

Server Protocol Version: 35

Is Local: yes

Client Index: 4575

Tile Size: 65472

User Name: egorechek

Host Name: egorechek

Server Name: PulseAudio (on PipeWire 1.2.0)

Server Version: 15.0.0

Default Sample Specification: float32le 2ch 48000Hz

Default Channel Map: front-left,front-right

Default Sink: alsa_output.pci-0000_06_00.6.analog-stereo

Default Source: alsa_input.pci-0000_06_00.6.analog-stereo

Cookie: 2a16:e275

thanks

Hello and welcome to the forum.
Building Kdenlive is not easy. If the AppImage is working why don’t you work with them?
I think FFMPEG version 6 is the one you should use and is compatible with MLT.
You can try with copy the MLT files from AppImage.

1 Like

I’m having the same issue and know even less than you…
Please let me know if you come across anything - I hope this gets a little more attention.

-6

Found more information, looks like it’s a bug and they’re working on a fix. If you download the latest nightly build (flatpak or appimage) everything is working correctly. I’m using it until they release the update to the stable channel.

Apparently I can’t include links but if you go to the kdenlive website and click download the nightly downloads there for you.

1 Like

Also have had same issue. Thanks for the good advice.

I also have the same issue.

Hallo @Eugen_Mohr,
there are more problems at the moment (wave mono is only played back on the left, as with Shotcut), but the AppImage works well. But how can you use the SWH plugins there? I absolutely need them.

Hello @egorechek
Which compressor do you use? I’m very interested in this topic. I use SC4.
And which limiter? I think the Fast Lookahead limiter (ladspa.1913). Both from Steve Harrie’s and in my opinion the best for Kdenlive.

The same bug also seems to exist in Shotcut, both of which are based on MLT. The bug seems to have been recognized here, so there is hope that it can also be fixed in Kdenlive:

I made a bug report:
https://bugs.kde.org/show_bug.cgi?id=491073

The problem with the AVFilter has been solved by updating MLT to version 7.30.0