Skip to content

Commit

Permalink
Merge pull request #16 from stefanor/file-src
Browse files Browse the repository at this point in the history
Add generic video file source
  • Loading branch information
CarlFK authored Nov 24, 2017
2 parents d04afac + 8805b29 commit 733b02b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit 733b02b

Please sign in to comment.