added automatic version stamping
This commit is contained in:
parent
0fb3276b9f
commit
4f2d42e74a
4 changed files with 36 additions and 2 deletions
|
@ -11,13 +11,14 @@ import tempfile
|
|||
import time
|
||||
|
||||
from aux import Command, parse_fps
|
||||
from version import _version
|
||||
|
||||
# --------------------------------------------------
|
||||
|
||||
prefix = over.core.textui.prefix
|
||||
_print = over.core.textui.Output('over.video')
|
||||
|
||||
# -------------------------------------------------- TODO Raw -filter:v interface for resizing and so on
|
||||
# --------------------------------------------------
|
||||
|
||||
command = over.core.types.ndict()
|
||||
command.identify = Command('ffprobe', '-v', 'quiet', '-print_format', 'json', '-show_format', '-show_streams', 'INFILE')
|
||||
|
@ -31,7 +32,7 @@ command.vfilter = Command('-filter:v', 'ARGS')
|
|||
# --------------------------------------------------
|
||||
|
||||
if __name__ == '__main__':
|
||||
main = over.core.app.Main('Over-Video', '0.1', 'AWARE-Overwatch Joint Software License', '~/.over/video.cfg')
|
||||
main = over.core.app.Main('Over-Video', "%d (%s)" %_version, 'AWARE-Overwatch Joint Software License', '~/.over/video.cfg')
|
||||
main.add_option('profile', 'str', 'x264', 'Encoding profile to use. Available are either §mtheora§/ for Theora and Vorbis in an Ogg container, §mx264§/ for H.264 and Vorbis in a Matroska container, or §mwav§/ which just extracts audio into a wav for further processing.')
|
||||
main.add_option('video-quality', 'float', 22, 'Video encoding quality. Use 0-10 for Theora (0 being the lowest, 5-7 is generally watchable) and 0-51 for x264 (0 being lossless, 18-28 is reasonable).', short_name='v')
|
||||
main.add_option('audio-quality', 'float', 2, 'Audio encoding quality with -1 being the worst and 10 being the best.', short_name='a')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue