projects
/
vidi-player.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e935970
)
create_test_videofont.py: use FONT_DESC in LIVE_PIPELINE_TEMPLATE too
author
Antonio Ospite <ao2@ao2.it>
Sun, 27 Nov 2016 22:51:09 +0000
(23:51 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Sun, 27 Nov 2016 22:51:09 +0000
(23:51 +0100)
create_test_videofont.py
patch
|
blob
|
history
diff --git
a/create_test_videofont.py
b/create_test_videofont.py
index
fb0699f
..
2f83fc2
100755
(executable)
--- a/
create_test_videofont.py
+++ b/
create_test_videofont.py
@@
-4,6
+4,9
@@
import sys
import os
import vidi
import os
import vidi
+#FONT_DESC = "Andale Mono, 72"
+FONT_DESC = "Mono, 72"
+
SAMPLE_LENGTH_SECONDS = 4
# 48000 samples per seconds, at 1024 samples per buffer
SAMPLE_LENGTH_SECONDS = 4
# 48000 samples per seconds, at 1024 samples per buffer
@@
-11,14
+14,11
@@
NUM_AUDIO_BUFFERS = round(SAMPLE_LENGTH_SECONDS * 48000 / 1024)
LIVE_PIPELINE_TEMPLATE = """
videotestsrc num-buffers=1 pattern=black ! \
LIVE_PIPELINE_TEMPLATE = """
videotestsrc num-buffers=1 pattern=black ! \
- textoverlay valignment=center halignment=center font-desc="
Sans, 72
" text="{0}" ! \
+ textoverlay valignment=center halignment=center font-desc="
%s
" text="{0}" ! \
autovideosink \
audiotestsrc num-buffers=%d freq={1:f} ! audio/x-raw,rate=48000 ! \
autoaudiosink
autovideosink \
audiotestsrc num-buffers=%d freq={1:f} ! audio/x-raw,rate=48000 ! \
autoaudiosink
-""" % NUM_AUDIO_BUFFERS
-
-#FONT_DESC = "Andale Mono, 72"
-FONT_DESC = "Mono, 72"
+""" % (FONT_DESC, NUM_AUDIO_BUFFERS)
FILE_PIPELINE_TEMPLATE = """
matroskamux name=mux ! filesink location="{2}/sample_{0}.mkv"
FILE_PIPELINE_TEMPLATE = """
matroskamux name=mux ! filesink location="{2}/sample_{0}.mkv"