projects
/
vidi-player.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d2933a9
)
Use webm for the videofont, it has better support than shroedinger
author
Antonio Ospite <ao2@ao2.it>
Thu, 1 Dec 2016 21:07:37 +0000
(22:07 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Thu, 1 Dec 2016 21:07:37 +0000
(22:07 +0100)
create_test_videofont.py
patch
|
blob
|
history
vidi-player.py
patch
|
blob
|
history
diff --git
a/create_test_videofont.py
b/create_test_videofont.py
index
2f83fc2
..
14c6509
100755
(executable)
--- a/
create_test_videofont.py
+++ b/
create_test_videofont.py
@@
-21,10
+21,10
@@
LIVE_PIPELINE_TEMPLATE = """
""" % (FONT_DESC, NUM_AUDIO_BUFFERS)
FILE_PIPELINE_TEMPLATE = """
""" % (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}" ! \
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)
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)
diff --git
a/vidi-player.py
b/vidi-player.py
index
491a3f3
..
2b8613e
100755
(executable)
--- a/
vidi-player.py
+++ b/
vidi-player.py
@@
-65,7
+65,7
@@
def timeline_from_midi(midi_file, video_font_path):
print("Note name: %s start_time: %f duration: %f" %
(note.name, start_time, duration))
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)
timeline.add_clip(video_sample_path, start_time, duration)