configuration aujourd'hui :
Source #0
État : IDLE
Nom : alsa_output.pci-0000_06_04.0.iec958-stereo.monitor
Description : Monitor of CMI8788 [Oxygen HD Audio] (CMI8786 (Xonar DGX)) Stéréo numérique (IEC958)
Pilote : module-alsa-card.c
Spécification de l'échantillon : s16le 2ch 44100Hz
Plan des canaux : front-left,front-right
Module du propriétaire : 6
Sourdine : non
Volume : front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
balance 0,00
Volume de base : 65536 / 100% / 0,00 dB
Moniteur de la destination : alsa_output.pci-0000_06_04.0.iec958-stereo
Latence : 0 usec, configuré 743038 usec
Marqueurs : DECIBEL_VOLUME LATENCY
Propriétés :
device.description = "Monitor of CMI8788 [Oxygen HD Audio] (CMI8786 (Xonar DGX)) Stéréo numérique (IEC958)"
device.class = "monitor"
alsa.card = "0"
alsa.card_name = "Xonar DGX"
alsa.long_card_name = "C-Media Oxygen HD Audio at 0xd000, irq 35"
alsa.driver_name = "snd_oxygen"
device.bus_path = "pci-0000:06:04.0"
sysfs.path = "/devices/pci0000:00/0000:00:01.3/0000:01:00.2/0000:02:03.0/0000:05:00.0/0000:06:04.0/sound/card0"
device.bus = "pci"
device.vendor.id = "13f6"
device.vendor.name = "C-Media Electronics Inc"
device.product.id = "8788"
device.product.name = "CMI8788 [Oxygen HD Audio] (CMI8786 (Xonar DGX))"
device.string = "0"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Formats :
pcm
Source #1
État : SUSPENDED
Nom : alsa_input.pci-0000_06_04.0.analog-stereo
Description : CMI8788 [Oxygen HD Audio] (CMI8786 (Xonar DGX)) Stéréo analogique
Pilote : module-alsa-card.c
Spécification de l'échantillon : s16le 2ch 44100Hz
Plan des canaux : front-left,front-right
Module du propriétaire : 6
Sourdine : non
Volume : front-left: 65531 / 100% / -0,00 dB, front-right: 65531 / 100% / -0,00 dB
balance 0,00
Volume de base : 41350 / 63% / -12,00 dB
Moniteur de la destination : n/d
Latence : 0 usec, configuré 0 usec
Marqueurs : HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Propriétés :
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "Multichannel"
alsa.id = "Multichannel"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "Xonar DGX"
alsa.long_card_name = "C-Media Oxygen HD Audio at 0xd000, irq 35"
alsa.driver_name = "snd_oxygen"
device.bus_path = "pci-0000:06:04.0"
sysfs.path = "/devices/pci0000:00/0000:00:01.3/0000:01:00.2/0000:02:03.0/0000:05:00.0/0000:06:04.0/sound/card0"
device.bus = "pci"
device.vendor.id = "13f6"
device.vendor.name = "C-Media Electronics Inc"
device.product.id = "8788"
device.product.name = "CMI8788 [Oxygen HD Audio] (CMI8786 (Xonar DGX))"
device.string = "front:0"
device.buffering.buffer_size = "131072"
device.buffering.fragment_size = "131072"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Stéréo analogique"
device.description = "CMI8788 [Oxygen HD Audio] (CMI8786 (Xonar DGX)) Stéréo analogique"
alsa.mixer_name = "CMI8786"
alsa.components = "CS4245 CMI8786"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Ports :
analog-input-front-mic: Microphone avant (priority: 8500)
analog-input-mic: Microphone (priority: 8700)
analog-input-linein: Entrée ligne (priority: 8100)
analog-input-aux: Entrée analogique (priority: 8000)
Port actif : analog-input-linein
Formats :
pcm
Source #2
État : SUSPENDED
Nom : alsa_output.pci-0000_0a_00.1.hdmi-stereo-extra2.monitor
Description : Monitor of Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] Digital Stereo (HDMI 3)
Pilote : module-alsa-card.c
Spécification de l'échantillon : s16le 2ch 44100Hz
Plan des canaux : front-left,front-right
Module du propriétaire : 7
Sourdine : non
Volume : front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
balance 0,00
Volume de base : 65536 / 100% / 0,00 dB
Moniteur de la destination : alsa_output.pci-0000_0a_00.1.hdmi-stereo-extra2
Latence : 0 usec, configuré 0 usec
Marqueurs : DECIBEL_VOLUME LATENCY
Propriétés :
device.description = "Monitor of Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] Digital Stereo (HDMI 3)"
device.class = "monitor"
alsa.card = "2"
alsa.card_name = "HDA ATI HDMI"
alsa.long_card_name = "HDA ATI HDMI at 0xfcf60000 irq 74"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:0a:00.1"
sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:0a:00.1/sound/card2"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
device.product.id = "aaf0"
device.product.name = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]"
device.string = "2"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Formats :
pcm
Source #3
État : SUSPENDED
Nom : alsa_input.usb-Hewlett_Packard_HP_Webcam_HD_4310-02.analog-stereo
Description : HP Webcam HD 4310 Stéréo analogique
Pilote : module-alsa-card.c
Spécification de l'échantillon : s16le 2ch 44100Hz
Plan des canaux : front-left,front-right
Module du propriétaire : 8
Sourdine : non
Volume : front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
balance 0,00
Volume de base : 41350 / 63% / -12,00 dB
Moniteur de la destination : n/d
Latence : 0 usec, configuré 0 usec
Marqueurs : HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Propriétés :
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "HP Webcam HD 4310"
alsa.long_card_name = "Hewlett Packard HP Webcam HD 4310 at usb-0000:0b:00.3-2, high speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:0b:00.3-usb-0:2:1.2"
sysfs.path = "/devices/pci0000:00/0000:00:07.1/0000:0b:00.3/usb5/5-2/5-2:1.2/sound/card1"
udev.id = "usb-Hewlett_Packard_HP_Webcam_HD_4310-02"
device.bus = "usb"
device.vendor.id = "03f0"
device.vendor.name = "HP, Inc"
device.product.id = "e807"
device.product.name = "HP Webcam HD 4310"
device.serial = "Hewlett_Packard_HP_Webcam_HD_4310"
device.form_factor = "webcam"
device.string = "front:1"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Stéréo analogique"
device.description = "HP Webcam HD 4310 Stéréo analogique"
alsa.mixer_name = "USB Mixer"
alsa.components = "USB03f0:e807"
module-udev-detect.discovered = "1"
device.icon_name = "camera-web-usb"
Ports :
analog-input-mic: Microphone (priority: 8700)
Port actif : analog-input-mic
Formats :
pcm
Source #4
État : SUSPENDED
Nom : alsa_input.usb-AKM_AK5371-00.analog-stereo
Description : AK5371 Stéréo analogique
Pilote : module-alsa-card.c
Spécification de l'échantillon : s16le 2ch 44100Hz
Plan des canaux : front-left,front-right
Module du propriétaire : 27
Sourdine : non
Volume : front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
balance 0,00
Volume de base : 26090 / 40% / -24,00 dB
Moniteur de la destination : n/d
Latence : 0 usec, configuré 0 usec
Marqueurs : HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Propriétés :
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "3"
alsa.card_name = "AK5371"
alsa.long_card_name = "AKM AK5371 at usb-0000:01:00.0-13, full speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:01:00.0-usb-0:13:1.0"
sysfs.path = "/devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-13/1-13:1.0/sound/card3"
udev.id = "usb-AKM_AK5371-00"
device.bus = "usb"
device.vendor.id = "0556"
device.vendor.name = "Asahi Kasei Microsystems Co., Ltd"
device.product.id = "0002"
device.product.name = "AK5371 "
device.serial = "AKM_AK5371"
device.string = "front:3"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Stéréo analogique"
device.description = "AK5371 Stéréo analogique"
alsa.mixer_name = "USB Mixer"
alsa.components = "USB0556:0002"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
Ports :
analog-input-mic: Microphone (priority: 8700)
Port actif : analog-input-mic
Formats :
pcm
tentative :
ffmpeg -thread_queue_size 512 -f pulse -ac 2 -i alsa_input.usb-AKM_AK5371-00.analog-stereo -f x11grab -s "$WIDHT"x"$HEIGHT" -i :0.0+"$ABSOLUTE_X","$ABSOLUTE_Y" -r 30 -acodec libmp3lame -vcodec libx264 -preset ultrafast -pix_fmt yuv444p -threads 0 -loglevel repeat+verbose "$OUTPUT/[Le $JOUR à $HEURE]_SCREENSHOT.mkv"
donc , j'ai ceci :
#!/bin/bash
OUTPUT=~/SCREENSHOT
[ -d "$OUTPUT" ] || mkdir "$OUTPUT"
xwininfo >> "$OUTPUT"/info.txt
WINDOW=$(cat "$OUTPUT"/info.txt | awk '/Window id:/ { print $5 }')
WIDHT=$(cat "$OUTPUT"/info.txt | awk '/Width:/ { print $2 }')
HEIGHT=$(cat "$OUTPUT"/info.txt | awk '/Height:/ { print $2 }')
ABSOLUTE_X=$(cat "$OUTPUT"/info.txt | awk '/Absolute upper-left X:/ { print $4 }')
ABSOLUTE_Y=$(cat "$OUTPUT"/info.txt | awk '/Absolute upper-left Y:/ { print $4 }')
## HQ LOSSLESS
#ffmpeg -thread_queue_size 512 -f alsa -ac 2 -i hw:0,0 -f x11grab -s "$WIDHT"x"$HEIGHT" -i :0.0+"$ABSOLUTE_X","$ABSOLUTE_Y" -r 30 -acodec libmp3lame -vcodec libx264 -preset ultrafast -qp 0 -pix_fmt yuv444p -threads 0 -loglevel repeat+verbose "$OUTPUT/[Le $JOUR à $HEURE]_SCREENSHOT.mkv"
#ffmpeg -thread_queue_size 512 -f alsa -ac 2 -i hw:0,0 -f x11grab -s "$WIDHT"x"$HEIGHT" -i :0.0+"$ABSOLUTE_X","$ABSOLUTE_Y" -r 30 -acodec libmp3lame -vcodec libx264 -preset ultrafast -pix_fmt yuv444p -threads 0 -loglevel repeat+verbose "$OUTPUT/[Le $JOUR à $HEURE]_SCREENSHOT.mkv"
#ffmpeg -thread_queue_size 512 -f pulse -ac 2 -i $(pactl list sources | sed -n '/alsa.*monitor/s/.*: \(.*\)$/\1/p') -f x11grab -s "$WIDHT"x"$HEIGHT" -i :0.0+"$ABSOLUTE_X","$ABSOLUTE_Y" -r 30 -acodec libmp3lame -c:v h264_nvenc -preset hq -loglevel repeat+verbose "$OUTPUT/$WINDOW-[Le $(date +%d-%m-%y) à $(date +%H:%M:%S)].mkv"
# sortie carte son pcie xonar dgx IEC958
# (pactl list sources)
#ffmpeg -thread_queue_size 512 -f pulse -ac 2 -i alsa_output.pci-0000_06_04.0.iec958-stereo.monitor -f x11grab -s "$WIDHT"x"$HEIGHT" -i :0.0+"$ABSOLUTE_X","$ABSOLUTE_Y" -r 30 -acodec libmp3lame -vcodec libx264 -preset ultrafast -pix_fmt yuv444p -threads 0 -loglevel repeat+verbose "$OUTPUT/[Le $JOUR à $HEURE]_SCREENSHOT.mkv"
# micro usb (pactl list sources)
# alsa_input.usb-AKM_AK5371-00.analog-stereo
ffmpeg -thread_queue_size 512 -f pulse -ac 2 -i alsa_input.usb-AKM_AK5371-00.analog-stereo -f x11grab -s "$WIDHT"x"$HEIGHT" -i :0.0+"$ABSOLUTE_X","$ABSOLUTE_Y" -r 30 -acodec libmp3lame -vcodec libx264 -preset ultrafast -pix_fmt yuv444p -threads 0 -loglevel repeat+verbose "$OUTPUT/[Le $JOUR à $HEURE]_SCREENSHOT.mkv"
rm -f "$OUTPUT"/info.txt
et / ou ceci :
#!/bin/bash
OUTPUT=~/SCREENSHOT
[ -d "$OUTPUT" ] || mkdir "$OUTPUT"
xwininfo >> "$OUTPUT"/info.txt
WINDOW=$(cat "$OUTPUT"/info.txt | awk '/Window id:/ { print $5 }')
WIDHT=$(cat "$OUTPUT"/info.txt | awk '/Width:/ { print $2 }')
HEIGHT=$(cat "$OUTPUT"/info.txt | awk '/Height:/ { print $2 }')
ABSOLUTE_X=$(cat "$OUTPUT"/info.txt | awk '/Absolute upper-left X:/ { print $4 }')
ABSOLUTE_Y=$(cat "$OUTPUT"/info.txt | awk '/Absolute upper-left Y:/ { print $4 }')
## HQ LOSSLESS
#ffmpeg -thread_queue_size 512 -f alsa -ac 2 -i hw:0,0 -f x11grab -s "$WIDHT"x"$HEIGHT" -i :0.0+"$ABSOLUTE_X","$ABSOLUTE_Y" -r 30 -acodec libmp3lame -vcodec libx264 -preset ultrafast -qp 0 -pix_fmt yuv444p -threads 0 -loglevel repeat+verbose "$OUTPUT/[Le $JOUR à $HEURE]_SCREENSHOT.mkv"
#ffmpeg -thread_queue_size 512 -f alsa -ac 2 -i hw:0,0 -f x11grab -s "$WIDHT"x"$HEIGHT" -i :0.0+"$ABSOLUTE_X","$ABSOLUTE_Y" -r 30 -acodec libmp3lame -vcodec libx264 -preset ultrafast -pix_fmt yuv444p -threads 0 -loglevel repeat+verbose "$OUTPUT/[Le $JOUR à $HEURE]_SCREENSHOT.mkv"
#ffmpeg -thread_queue_size 512 -f pulse -ac 2 -i $(pactl list sources | sed -n '/alsa.*monitor/s/.*: \(.*\)$/\1/p') -f x11grab -s "$WIDHT"x"$HEIGHT" -i :0.0+"$ABSOLUTE_X","$ABSOLUTE_Y" -r 30 -acodec libmp3lame -c:v h264_nvenc -preset hq -loglevel repeat+verbose "$OUTPUT/$WINDOW-[Le $(date +%d-%m-%y) à $(date +%H:%M:%S)].mkv"
# sortie carte son pcie xonar dgx IEC958
# (pactl list sources)
ffmpeg -thread_queue_size 512 -f pulse -ac 2 -i alsa_output.pci-0000_06_04.0.iec958-stereo.monitor -f x11grab -s "$WIDHT"x"$HEIGHT" -i :0.0+"$ABSOLUTE_X","$ABSOLUTE_Y" -r 30 -acodec libmp3lame -vcodec libx264 -preset ultrafast -pix_fmt yuv444p -threads 0 -loglevel repeat+verbose "$OUTPUT/[Le $JOUR à $HEURE]_SCREENSHOT.mkv"
# micro usb (pactl list sources)
# alsa_input.usb-AKM_AK5371-00.analog-stereo
#ffmpeg -thread_queue_size 512 -f pulse -ac 2 -i alsa_input.usb-AKM_AK5371-00.analog-stereo -f x11grab -s "$WIDHT"x"$HEIGHT" -i :0.0+"$ABSOLUTE_X","$ABSOLUTE_Y" -r 30 -acodec libmp3lame -vcodec libx264 -preset ultrafast -pix_fmt yuv444p -threads 0 -loglevel repeat+verbose "$OUTPUT/[Le $JOUR à $HEURE]_SCREENSHOT.mkv"
rm -f "$OUTPUT"/info.txt
tout est ok , que ce soit la sortie numérique ou l'entrée micro .