Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No audio stream present. Audio cannot be recorded. #211

Open
traeanto opened this issue Mar 2, 2023 · 11 comments
Open

No audio stream present. Audio cannot be recorded. #211

traeanto opened this issue Mar 2, 2023 · 11 comments

Comments

@traeanto
Copy link

traeanto commented Mar 2, 2023

Im using pipewire-pulse for my audio. Here is my output:

image

image

@traeanto
Copy link
Author

traeanto commented Mar 2, 2023

I have tried to record a video but the audio is not recorded properly (just silent video). I have also tried recording audio with ffmpeg, and it works fine (but can't record video in wayland).
i just want to record video with audio~

@soreau
Copy link
Collaborator

soreau commented Mar 2, 2023

What happens if you try wf-recorder -a -f record.mkv?

@traeanto
Copy link
Author

traeanto commented Mar 2, 2023

UPDATE: when recording video with wf-recorder -a -f record.mkv, audio can also be recorded IF I remove the headset connected to the laptop. BUT when I try to play the video, the sound only comes from the left side of the speaker or headset. That's weird~

@cenunix
Copy link

cenunix commented Mar 3, 2023

getting the same issue but dont see an invalid audio stream error. Just no audio plays when I playback the recording

@soreau
Copy link
Collaborator

soreau commented Mar 3, 2023

As the wf-recorder man page states:

"To specify an audio device, use the -a<DEVICE> or --audio=<DEVICE> options."

This means that -a <DEVICE> (with a space between) will still choose the default device.

@cenunix
Copy link

cenunix commented Mar 3, 2023

As the wf-recorder man page states:

"To specify an audio device, use the -a<DEVICE> or --audio=<DEVICE> options."

This means that -a <DEVICE> (with a space between) will still choose the default device.

I've tried both of these, still no audio is coming through in playback.

@soreau
Copy link
Collaborator

soreau commented Mar 3, 2023

@Selmer443 Maybe check the build log to make sure wf-recorder is built with pulseaudio support? What device name are you trying to record from?

@cenunix
Copy link

cenunix commented Mar 3, 2023

I use this to get the default output device pactl get-default-sink
I've verified that it's correct

@soreau
Copy link
Collaborator

soreau commented Mar 3, 2023

It might need .monitor appended or something, try pactl list sources | grep Name.

@cenunix
Copy link

cenunix commented Mar 3, 2023

yeah, it needed .monitor at the end. weird because before it was able to pick it up, it might be pactl was returning the .monitor appended to the default sink before, but that changed on my system for some reason. Not really sure, i'll have to look into that. thanks for the help

@mrsteve0924
Copy link

i am running into this same issue when using bluetooth headset. i have use --audio=devicename.monitor

Seems the -a flag works only when my speakers are the default device but not when the bluetooth headset is the default device.

would be nice if it could work with bluetooth as the default device without having to specify it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants