Skip to content

Commit

Permalink
Adding C3VOC dvswitch version support.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Aug 31, 2015
1 parent 31ee6ce commit 784e5b9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dvsource-v4l2-other.py
Expand Up @@ -83,6 +83,10 @@
"-x", "--display", action="store_true",
help="Display the incoming video locally.")

parser.add_argument(
"-3", "--c3voc", action="store_true",
help="Connecting to a C3 VOC's custom dvswitch version")

###############################################################################
# dvswitch arguments and .dvswitchrc parsing
###############################################################################
Expand Down Expand Up @@ -174,6 +178,11 @@ def check_gst_module(name, package=None, extra_help=None):
###############################################################################

def launch_gstreamer():
if args.c3voc:
dvswitchsink_extra = " c3voc-mode=1 c3voc-source-id=0 "
else:
dvswitchsink_extra = ""

if args.caps:
args.caps += " ! "

Expand Down Expand Up @@ -246,7 +255,7 @@ def launch_gstreamer():
"videoconvert ! avenc_dvvideo ! avmux_dv name=dvmux !" +
" " +
# Output to dvswitch
"dvswitchsink host=%s port=%s" % (args.host, args.port) +
"dvswitchsink host=%s port=%s %s" % (args.host, args.port, dvswitchsink_extra) +
" " +
# -----------------------------------
# Audio Pipeline --------------------
Expand Down

0 comments on commit 784e5b9

Please sign in to comment.