(gelöst) mpv, Audio Device

Sound, Digitalkameras, TV+Video und Spiele.
Antworten
fischig
Beiträge: 3598
Registriert: 24.12.2019 12:25:08
Lizenz eigener Beiträge: MIT Lizenz

(gelöst) mpv, Audio Device

Beitrag von fischig » 23.03.2021 16:22:39

Ich gebe vlc in einem script diese Parameter mit:

Code: Alles auswählen

--aout alsa --alsa-audio-device "hw:Loopback,0"
Lässt sich so etwas auch mit mpv veranstalten? Wie sähe die Syntax aus?
Zuletzt geändert von fischig am 23.03.2021 17:01:16, insgesamt 1-mal geändert.

Benutzeravatar
smutbert
Moderator
Beiträge: 8314
Registriert: 24.07.2011 13:27:39
Wohnort: Graz

Re: mpv, Parameter

Beitrag von smutbert » 23.03.2021 16:40:05

ich vermute eines von beiden könnte funktionieren

Code: Alles auswählen

mpv --audio-device='alsa/hw:Loopback,0'
mpv --audio-device='alsa/plughw:CARD=Loopback,DEV=0'
mit

Code: Alles auswählen

mpv --audio-device=help
solltest du eine Liste der möglichen Audiogeräte erhalten, ich weiß aber nicht ob die vollständig ist (bei mir ist sie es meine ich nicht).

fischig
Beiträge: 3598
Registriert: 24.12.2019 12:25:08
Lizenz eigener Beiträge: MIT Lizenz

Re: mpv, Parameter

Beitrag von fischig » 23.03.2021 17:00:14

Nr.2 funktioniert! Frohlocken! :P :THX:

fischig
Beiträge: 3598
Registriert: 24.12.2019 12:25:08
Lizenz eigener Beiträge: MIT Lizenz

Re: (gelöst) mpv, Audio Device

Beitrag von fischig » 23.03.2021 17:14:51

Code: Alles auswählen

$ mpv --audio-device=help
List of detected audio devices:
  'auto' (Autoselect device)
  'alsa' (Default (alsa))
  'alsa/jack' (JACK Audio Connection Kit)
  'alsa/btL1' (btL1)
  'alsa/btL2' (btL2)
  'alsa/plugbtL1' (plugbtL1)
  'alsa/plugbtL2' (plugbtL2)
  'alsa/default:CARD=PCH' (HDA Intel PCH, ALC3202 Analog/Default Audio Device)
  'alsa/sysdefault:CARD=PCH' (HDA Intel PCH, ALC3202 Analog/Default Audio Device)
  'alsa/front:CARD=PCH,DEV=0' (HDA Intel PCH, ALC3202 Analog/Front speakers)
  'alsa/surround21:CARD=PCH,DEV=0' (HDA Intel PCH, ALC3202 Analog/2.1 Surround output to Front and Subwoofer speakers)
  'alsa/surround40:CARD=PCH,DEV=0' (HDA Intel PCH, ALC3202 Analog/4.0 Surround output to Front and Rear speakers)
  'alsa/surround41:CARD=PCH,DEV=0' (HDA Intel PCH, ALC3202 Analog/4.1 Surround output to Front, Rear and Subwoofer speakers)
  'alsa/surround50:CARD=PCH,DEV=0' (HDA Intel PCH, ALC3202 Analog/5.0 Surround output to Front, Center and Rear speakers)
  'alsa/surround51:CARD=PCH,DEV=0' (HDA Intel PCH, ALC3202 Analog/5.1 Surround output to Front, Center, Rear and Subwoofer speakers)
  'alsa/surround71:CARD=PCH,DEV=0' (HDA Intel PCH, ALC3202 Analog/7.1 Surround output to Front, Center, Side, Rear and Woofer speakers)
  'alsa/hdmi:CARD=PCH,DEV=0' (HDA Intel PCH, HDMI 0/HDMI Audio Output)
  'alsa/hdmi:CARD=PCH,DEV=1' (HDA Intel PCH, HDMI 1/HDMI Audio Output)
  'alsa/hdmi:CARD=PCH,DEV=2' (HDA Intel PCH, HDMI 2/HDMI Audio Output)
  'alsa/dmix:CARD=PCH,DEV=0' (HDA Intel PCH, ALC3202 Analog/Direct sample mixing device)
  'alsa/dmix:CARD=PCH,DEV=3' (HDA Intel PCH, HDMI 0/Direct sample mixing device)
  'alsa/dmix:CARD=PCH,DEV=7' (HDA Intel PCH, HDMI 1/Direct sample mixing device)
  'alsa/dmix:CARD=PCH,DEV=8' (HDA Intel PCH, HDMI 2/Direct sample mixing device)
  'alsa/plughw:CARD=PCH,DEV=0' (HDA Intel PCH, ALC3202 Analog/Hardware device with all software conversions)
  'alsa/plughw:CARD=PCH,DEV=3' (HDA Intel PCH, HDMI 0/Hardware device with all software conversions)
  'alsa/plughw:CARD=PCH,DEV=7' (HDA Intel PCH, HDMI 1/Hardware device with all software conversions)
  'alsa/plughw:CARD=PCH,DEV=8' (HDA Intel PCH, HDMI 2/Hardware device with all software conversions)
  'alsa/usbstream:CARD=PCH' (HDA Intel PCH/USB Stream Output)
  'alsa/default:CARD=Loopback' (Loopback, Loopback PCM/Default Audio Device)
  'alsa/sysdefault:CARD=Loopback' (Loopback, Loopback PCM/Default Audio Device)
  'alsa/front:CARD=Loopback,DEV=0' (Loopback, Loopback PCM/Front speakers)
  'alsa/surround21:CARD=Loopback,DEV=0' (Loopback, Loopback PCM/2.1 Surround output to Front and Subwoofer speakers)
  'alsa/surround40:CARD=Loopback,DEV=0' (Loopback, Loopback PCM/4.0 Surround output to Front and Rear speakers)
  'alsa/surround41:CARD=Loopback,DEV=0' (Loopback, Loopback PCM/4.1 Surround output to Front, Rear and Subwoofer speakers)
  'alsa/surround50:CARD=Loopback,DEV=0' (Loopback, Loopback PCM/5.0 Surround output to Front, Center and Rear speakers)
  'alsa/surround51:CARD=Loopback,DEV=0' (Loopback, Loopback PCM/5.1 Surround output to Front, Center, Rear and Subwoofer speakers)
  'alsa/surround71:CARD=Loopback,DEV=0' (Loopback, Loopback PCM/7.1 Surround output to Front, Center, Side, Rear and Woofer speakers)
  'alsa/dmix:CARD=Loopback,DEV=0' (Loopback, Loopback PCM/Direct sample mixing device)
  'alsa/dmix:CARD=Loopback,DEV=1' (Loopback, Loopback PCM/Direct sample mixing device)
  'alsa/plughw:CARD=Loopback,DEV=0' (Loopback, Loopback PCM/Hardware device with all software conversions)
  'alsa/plughw:CARD=Loopback,DEV=1' (Loopback, Loopback PCM/Hardware device with all software conversions)
  'alsa/usbstream:CARD=Loopback' (Loopback/USB Stream Output)
  'jack' (Default (jack))
  'sdl' (Default (sdl))
  'sndio' (Default (sndio))
Sieht für mich ziemlich vollständig aus. Offenbar sind „unsere“ dabei (btL1, btL2, plugbtL1, plugbtL2).

Antworten