From 8805b29be6342238b6c97d27457bf11c1ee491d6 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Fri, 24 Nov 2017 11:31:50 +0000 Subject: [PATCH] Add generic video file source .ts files seem to loop quite happily --- ingest.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ingest.py b/ingest.py index 9aac823..f6363c1 100755 --- a/ingest.py +++ b/ingest.py @@ -127,6 +127,15 @@ def mk_video_src(args, videocaps): videoconvert ! """ + elif args.video_source == 'file': + video_src = """ + multifilesrc {attribs} ! + decodebin ! + videoscale ! + {monitor} + videoconvert ! + """ + elif args.video_source == 'test': # things to render as text ontop of test video @@ -356,7 +365,7 @@ def get_args(): '--video-source', action='store', choices=[ 'dv', 'hdv', 'hdmi2usb', 'blackmagic', - 'ximage', 'png', 'test'], + 'ximage', 'png', 'file', 'test'], default='test', help="Where to get video from")