You are not logged in.

#1 2025-12-03 13:26:09

Orange-Icepop
Member
Registered: 2025-11-09
Posts: 5

Cannot record audio in kdenlive and krecorder

When I was using kdenlive, I found that I cannot record audio inside the application. More precisely, it shows the following error:

qml: item not found
start recording 1
qt.multimedia.ffmpeg.encoder: Recording new media with muxer WAV / WAVE (Waveform Audio) to "/home/username/Videos/capture0018.wav" with format: QMediaFormat::Wave, QMediaFormat::AudioCodec::Wave, QMediaFormat::VideoCodec::Unspecified
qt.multimedia.ffmpeg.encoder: Stream initialization error: "Audio device has invalid preferred format"
 !!!!!!!!!!!!!!!! ERROR : QMediarecorder - Capture failed
 !!!!!!!!!!!!!!!! ERROR : QMediarecorder - Capture failed
qt.multimedia.ffmpeg.encoder: Failed to start recording engine

along with another error presented throughout the lifespan of kdenlive(occurs when my mouse pointer moves from application to application on the task bar):

No sample format supported found for device "alsa_input.usb-Yamaha_Corporation_Steinberg_UR242-00.analog-surround-40"
No sample format supported found for device "alsa_output.usb-Yamaha_Corporation_Steinberg_UR242-00.analog-stereo"

The device has been selected as 'pipewire' manually in kdenlive, and I've tried several profiles of pipewire in the kde control panel, but nothing changes.
Meanwhile, similar issue occurs in krecorder:

qt.multimedia.ffmpeg.encoder: Recording new media with muxer WAV / WAVE (Waveform Audio) to "/home/username/Music/record_0006.wav" with format: QMediaFormat::Wave, QMediaFormat::AudioCodec::Wave, QMediaFormat::VideoCodec::Unspecified
qt.multimedia.ffmpeg.encoder: Stream initialization error: "Audio device has invalid preferred format"
qml: Error on the recorder Audio device has invalid preferred format
qml: Error on the recorder No valid stream found for encoding
qt.multimedia.ffmpeg.encoder: Failed to start recording engine

along with the same 'sample format' issue as kdenlive's.
Files are all created but broken.

I'm using a laptop, with yamaha steinberg UR242 USB soundcard. All hardware problems can be excluded, because everything works well while I was using Windows.
The sound system is pipewire, with no JACK daemon running.
It's interesting that stuff except recording in kdenlive and krecorder all run smoothly, including audio output and input. Recording is successful while using arecord, ffmpeg and even kwave(uses QT multimedia engine as well, and the sample format issue also exists, so I suppose it's not the reason?). Volume display is also constantly proper in kdenlive.

While using integrated soundcard, the problem doesn't exist.(But the integrated microphone always have loud noise covering everything so I'm not able to use it, while the speakers works fine.)

(PS. The issue is similar to topic 253734, but the problem cannot be solved by installing gst plugins.)

Any guidance would be greatly appreciated.

Offline

Board footer

Powered by FluxBB