Some other progream is using your Ultralite AVB.

Run this command from a terminal to find out what is using it:

   cd /tmp && wget http://jackaudio.org/downloads/adevices.sh && bash ./adevices.sh

On Mon, Aug 7, 2017 at 8:12 PM, list <list@contacte.xyz> wrote:
Hello.

Debian 9 - Stretch.
ffmpeg version 3.2.5-1
I run Jackd from Qjackctl

jackd2 1.9.10+20150825git1ed50c92~dfsg-5



cat /proc/asound/cards

 1 [AVB            ]: USB-Audio - UltraLite AVB
                      MOTU UltraLite AVB at usb-0000:00:1a.7-5, high
                      speed



aplay -l

**** Liste des Périphériques Matériels PLAYBACK ****
carte 1: AVB [UltraLite AVB], périphérique 0: USB Audio [USB Audio]
  Sous-périphériques: 0/1
  Sous-périphérique #0: subdevice #0





When i try to record my screen i use :

ffmpeg -f x11grab -s 1920x1080 -r 25 -i :0.0 00screencast.mp4

And it's working great.



But, when i try to add the sound.... no success

ffmpeg -f alsa -ac 2 -i hw:1 -f x11grab -s 1920x1080 -r 25 -i :0.0
00screencast.mp4

[alsa @ 0x563a80c18b60] cannot open audio device hw:1 (Device or
resource busy)
hw:1: Input/output error




arecord -l

**** Liste des Périphériques Matériels CAPTURE ****
carte 1: AVB [UltraLite AVB], périphérique 0: USB Audio [USB Audio]
  Sous-périphériques: 0/1
  Sous-périphérique #0: subdevice #0




arecord -L
null
    Discard all samples (playback) or generate zero samples (capture)
default
jack
sysdefault:CARD=AVB
    UltraLite AVB, USB Audio
    Default Audio Device
front:CARD=AVB,DEV=0
    UltraLite AVB, USB Audio
    Front speakers
surround21:CARD=AVB,DEV=0
    UltraLite AVB, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=AVB,DEV=0
    UltraLite AVB, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=AVB,DEV=0
    UltraLite AVB, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=AVB,DEV=0
    UltraLite AVB, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=AVB,DEV=0
    UltraLite AVB, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=AVB,DEV=0
    UltraLite AVB, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=AVB,DEV=0
    UltraLite AVB, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=AVB,DEV=0
    UltraLite AVB, USB Audio
    Direct sample mixing device
dsnoop:CARD=AVB,DEV=0
    UltraLite AVB, USB Audio
    Direct sample snooping device
hw:CARD=AVB,DEV=0
    UltraLite AVB, USB Audio
    Direct hardware device without any conversions
plughw:CARD=AVB,DEV=0
    UltraLite AVB, USB Audio
    Hardware device with all software conversions



ffmpeg -f alsa -ac 2 -i plughw:1 -f x11grab -s 1920x1080 -r 25 -i :0.0
test.mp4

[alsa @ 0x55be84165b60] cannot open audio device plughw:1 (Device or
resource busy) plughw:1: Input/output error




Any advices, feeback, experiences.... ?

All the best.



_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-user