""" % (FONT_DESC, NUM_AUDIO_BUFFERS)
FILE_PIPELINE_TEMPLATE = """
- matroskamux name=mux ! filesink location="{2}/sample_{0}.mkv"
+ webmmux name=mux ! filesink location="{2}/sample_{0}.webm"
videotestsrc num-buffers=1 pattern=black ! \
textoverlay valignment=center halignment=center font-desc="%s" text="{0}" ! \
- queue ! schroenc rate-control=3 ! mux.
+ queue ! vp9enc ! mux.
audiotestsrc num-buffers=%d freq={1:f} ! audio/x-raw,rate=48000 ! \
queue ! audioconvert ! vorbisenc quality=0.5 ! queue ! mux.
""" % (FONT_DESC, NUM_AUDIO_BUFFERS)
print("Note name: %s start_time: %f duration: %f" %
(note.name, start_time, duration))
- video_sample_path = "%s/sample_%s.mkv" % (video_font_path, note.name)
+ video_sample_path = "%s/sample_%s.webm" % (video_font_path, note.name)
timeline.add_clip(video_sample_path, start_time, duration)