summaryrefslogtreecommitdiff
path: root/example-scripts/gstreamer/ingest.py
diff options
context:
space:
mode:
authorCarl Karsten <carl@personnelware.com>2016-04-27 09:56:55 -0500
committerCarl Karsten <carl@personnelware.com>2016-04-27 09:56:55 -0500
commit79efc5f2fccc377933ff6863c2bba21cdf506446 (patch)
treee57e47ed19a5f5d6b8188b7d81c05e16bb73ea64 /example-scripts/gstreamer/ingest.py
parentabad5efe4e1665bc6e49fb69684db1fc183dee5e (diff)
add support for alsa
Diffstat (limited to 'example-scripts/gstreamer/ingest.py')
-rwxr-xr-xexample-scripts/gstreamer/ingest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/example-scripts/gstreamer/ingest.py b/example-scripts/gstreamer/ingest.py
index 14ce043..a9e06c4 100755
--- a/example-scripts/gstreamer/ingest.py
+++ b/example-scripts/gstreamer/ingest.py
@@ -138,6 +138,11 @@ def mk_audio_src(args, audiocaps):
pulsesrc {audio_device} name=audiosrc !
""".format(audio_device=audio_device)
+ elif args.audio_source == 'alsa':
+ audio_src = """
+ alsasrc {audio_device} name=audiosrc !
+ """.format(audio_device=audio_device)
+
elif args.audio_source == 'blackmagichdmi':
audio_src = """
decklinkaudiosrc !