ammen99 / wf-recorder

MIT License
808 stars 62 forks source link

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

Open traeanto opened 1 year ago

traeanto commented 1 year ago

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

image

image

traeanto commented 1 year ago

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 commented 1 year ago

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

traeanto commented 1 year ago

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 commented 1 year ago

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

soreau commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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

soreau commented 1 year ago

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

cenunix commented 1 year ago

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 commented 4 weeks ago

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