Bug 491800

Summary: Cannot record audio track. Gives error message that it cannot open a .wav file.
Product: [Applications] kdenlive Reporter: TxTechnician <andrew>
Component: Timeline & EditingAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED WORKSFORME    
Severity: normal CC: fritzibaby, grishka, penguin, piuuttri
Priority: NOR Keywords: triaged
Version First Reported In: 24.05.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description TxTechnician 2024-08-16 22:29:55 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY


STEPS TO REPRODUCE
Open new project.
Insert a record track.
Start recording.

OBSERVED RESULT
After the 3 second count down.  A message saying:  "cannot open file /.../capture1.wav"
Audio recording fails.  

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

Operating System: openSUSE Tumbleweed 20240815
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.4-1-default (64-bit)
Graphics Platform: X11
Processors: 20 × 13th Gen Intel® Core™ i9-13900H
Memory: 15.2 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: Vivobook_ASUSLaptop TP3604VA_TP3604VA
System Version: 1.0

ADDITIONAL INFORMATION
I ran kdenlive via the terminal:

```
txtechnician@tx-susetw-asus:~> kdenlive
Could not detect package type, probably default? App dir is "/usr/bin"
kf.config.core: Watching absolute paths is not supported "/usr/share/color-schemes/BreezeDark.colors"
profilePath from KdenliveSetting::mltPath:  "/usr/share/mlt-7/profiles"
meltPath from KdenliveSetting::meltPath:  "/usr/bin/melt-7"
plugin not available: "region"
Empty metadata for  "glsl.manager"
Empty metadata for  "telecide"
plugin not available: "avfilter.acompressor"
plugin not available: "avfilter.aecho"
plugin not available: "avfilter.agate"
plugin not available: "avfilter.atadenoise"
plugin not available: "avfilter.bwdif"
plugin not available: "avfilter.deblock"
plugin not available: "avfilter.dedot"
plugin not available: "avfilter.deflate"
plugin not available: "avfilter.derain"
plugin not available: "avfilter.doubleweave"
plugin not available: "avfilter.field"
plugin not available: "avfilter.framestep"
plugin not available: "avfilter.fspp"
plugin not available: "avfilter.graphmonitor"
plugin not available: "avfilter.hqdn3d"
plugin not available: "avfilter.inflate"
plugin not available: "avfilter.lagfun"
plugin not available: "avfilter.loudnorm"
plugin not available: "avfilter.random"
plugin not available: "avfilter.removegrain"
plugin not available: "avfilter.separatefields"
plugin not available: "avfilter.shuffleplanes"
plugin not available: "avfilter.sr"
plugin not available: "avfilter.tmix"
plugin not available: "avfilter.w3fdif"
plugin not available: "avfilter.weave"
plugin not available: "avfilter.yadif"
plugin not available: "frei0r.baltan"
plugin not available: "frei0r.bgsubtract0r"
plugin not available: "frei0r.bigsh0t_eq_mask"
plugin not available: "frei0r.bigsh0t_eq_to_rect"
plugin not available: "frei0r.bigsh0t_eq_to_stereo"
plugin not available: "frei0r.bigsh0t_hemi_to_eq"
plugin not available: "frei0r.bigsh0t_rect_to_eq"
plugin not available: "frei0r.bigsh0t_stabilize_360"
plugin not available: "frei0r.bigsh0t_transform_360"
plugin not available: "frei0r.delay0r"
plugin not available: "frei0r.delaygrab"
plugin not available: "frei0r.facebl0r"
plugin not available: "frei0r.facedetect"
plugin not available: "frei0r.lightgraffiti"
plugin not available: "frei0r.lightgraffiti"
plugin not available: "frei0r.tehRoxx0r"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa.9354877"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "ladspa"
plugin not available: "movit.unsharp_mask"
plugin not available: "timewarp"
=== /// CANNOT ACCESS SPEECH DICTIONARIES FOLDER
begin
OpenGL vendor "Intel"
OpenGL renderer "Mesa Intel(R) Graphics (RPL-P)"
OpenGL threaded? true
OpenGL ES? false
OpenGL maximum texture size = 16384
OpenGL maximum viewport size = 16384 x 16384
end
begin
OpenGL vendor "Intel"
OpenGL renderer "Mesa Intel(R) Graphics (RPL-P)"
OpenGL threaded? true
OpenGL ES? false
OpenGL maximum texture size = 16384
OpenGL maximum viewport size = 16384 x 16384
end
:::: USING TRACK COMPOSITING:  "frei0r.cairoblend"
:::: NOT FOUND DOCUMENT GUIDES !!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!
qrc:/qml/timeline.qml:509: ReferenceError: proxy is not defined
qrc:/qml/timeline.qml:489: ReferenceError: proxy is not defined
==== NO PREVIOUS TIMELINE
::::::::::: connecting timeline:  QUuid("{ee0ebbbb-6df0-45a6-8d03-9e9396034a04}") , DUR:  0
root context get sub model new function
HHHHHHHHHHHH
INVALID BIN PLAYLIST...
++++++++++ ININT VIEW WITH TYPE:  0
=== OPENING FILE WITH TRACKS:  5
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: FOUND TRACTOR WITH TRACKS:  2 

___________________________
=== MODEL DATA CHANGED: MUTE DONE TRACK NOT FOUND!!!
:::: USING TRACK COMPOSITING:  "frei0r.cairoblend"
===== ACTIVATING DOCUMENT:  QUuid("{ee0ebbbb-6df0-45a6-8d03-9e9396034a04}") 
::::::::::::::::::::::
!!!!!!!!!!!!! REMOVING COMPO:  0  /  4
!!!!!!!!!!!!! REMOVING COMPO:  0  /  3
!!!!!!!!!!!!! REMOVING COMPO:  0  /  2
!!!!!!!!!!!!! REMOVING COMPO:  0  /  1
:::: USING TRACK COMPOSITING:  "frei0r.cairoblend"
Found device :  "Raptor Lake-P/U/H cAVS Headphones Stereo Microphone"
Found device :  "Raptor Lake-P/U/H cAVS Digital Microphone"
:::: MONIOTORING AUDIO:  true
start recording 5
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
qt.multimedia.ffmpeg.encoder: Stream initialization error: "Audio device has invalid preferred format"
 !!!!!!!!!!!!!!!! ERROR : QMediarecorder - Capture failed
 !!!!!!!!!!!!!!!! ERROR : QMediarecorder - Capture failed
pos:  0 out:  8991
/////////// createClipFromFile "/home/txtechnician/Videos/capture0023.wav" "-1"
=== GOT DROPPED MIME:  "audio/vnd.wave"
/////////// final xml "<producer>\n <property name=\"resource\">/home/txtechnician/Videos/capture0023.wav</property>\n</producer>\n"
============STARTING LOAD TASK FOR:  4  =  "/home/txtechnician/Videos/capture0023.wav" 

:::::::::::::::::::
========== READY FOR TASK DISCARD ON:  4
// CLEARING REC MANAGER
qml: item not found


```
Comment 1 TxTechnician 2024-08-27 20:02:58 UTC
This is only happening when I try to use an external microphone.  I'm on a laptop.  If I use the laptop microphone, the recording will work.  But if I use an external mic (I've used two and also tested that they work with audacity).  The problem will happen.  

Kdenlive: 24.05.2
Package Type: Unknown/Default
MLT: 7.24.0
Qt: 6.7.2 (built against 6.7.2 x86_64-little_endian-lp64)
Frameworks: 6.5.0
System: openSUSE Tumbleweed
Kernel: linux 6.10.5-1-default
CPU: x86_64
Windowing System: xcb
GPU: Intel/Mesa Intel(R) Graphics (RPL-P)
Movit (GPU): disabled
Track Compositing: frei0r.cairoblend
Comment 2 piuuttri 2024-09-03 13:40:40 UTC
I have the same issue when recording from external mic. Getting the "Audio device has invalid preferred format" error and "cannot open file ...". Looking at the report it might be ffmpeg issue? How can I test that?

Operating System: Arch Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.7-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × Intel® Core™ i7-10700KF CPU @ 3.80GHz
Memory: 46.9 GiB of RAM
Graphics Processor: AMD Radeon RX 7800 XT
Comment 3 penguin 2024-10-08 17:12:43 UTC
Can confirm this bug with kdenlive 24.08.1 for both flatpak and AppImage version on Ubuntu 24.04. Trying to record audio track using either build-in microphone or USB microphone results after coutdown in a pop-up: "Can not open capture0000.wav". This file is created in the project directory but remains 0 Bytes. A second click on the record button results in kdenlive crashing after a few seconds.
Comment 4 Grrrishka 2024-11-25 18:10:39 UTC
I !
Same bug on KdenLive 24.08.3.

Operating System: CachyOS Linux 
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.12.0-1-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7500F 6-Core Processor
Memory: 15.4 Gio of RAM
Graphics Processor: AMD Radeon RX 7600
Comment 5 emohr 2024-11-25 19:27:48 UTC
Try to run Kdenlive as administrator.
Comment 6 emohr 2024-12-22 10:57:18 UTC
Audio recording should be fixed. Please try with the current Kdenlive AppImage 24.12: https://kdenlive.org/en/download/
Comment 7 Bug Janitor Service 2025-01-06 03:47:29 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2025-01-21 03:47:43 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.