set qualitiy factor instead of bitrate
This commit is contained in:
parent
e7d9d75818
commit
1325570c50
@ -62,7 +62,6 @@ log_level = INFO
|
||||
width = 1024
|
||||
height = 576
|
||||
fps = 25
|
||||
v_bitrate = 50000
|
||||
logo = logo.png
|
||||
logo_filter = overlay=W-w-12:12
|
||||
live_protocols = ["http", "https", "ftp", "rtmp", "rtmpe", "rtmps", "rtp", "rtsp", "srt", "tcp", "udp"]
|
||||
@ -103,19 +102,6 @@ time_shift = 35
|
||||
map_extension =
|
||||
|
||||
|
||||
# buffer settings
|
||||
# this is a system processs witch run between pre-compression
|
||||
# and final compression, this makes the magic to playout multiple files
|
||||
# without interrupt the stream
|
||||
|
||||
# buffer_cli: the prefert buffer tool, needs to be installed on your system
|
||||
# buffer_cmd: need to end with the buffer size command, full command would look:
|
||||
# /usr/bin/pv -q -B; or: /usr/bin/mbuffer -q -c -m; or pipebuffer -s
|
||||
[BUFFER]
|
||||
buffer_cli = /usr/local/bin/pipebuffer
|
||||
buffer_cmd = ["-s"]
|
||||
|
||||
|
||||
# the final playout post compression
|
||||
# set the settings to your needs
|
||||
# preview works only on a desktop system with ffplay!! Set it to True, if you need it
|
||||
|
@ -958,10 +958,7 @@ def play_clips(buffer, GetSourceIter):
|
||||
ff_pre_settings = filtergraph + [
|
||||
'-pix_fmt', 'yuv420p', '-r', str(_pre_comp.fps),
|
||||
'-c:v', 'mpeg2video', '-intra',
|
||||
'-b:v', '{}k'.format(_pre_comp.v_bitrate),
|
||||
'-minrate', '{}k'.format(_pre_comp.v_bitrate),
|
||||
'-maxrate', '{}k'.format(_pre_comp.v_bitrate),
|
||||
'-bufsize', '{}k'.format(_pre_comp.v_bufsize),
|
||||
'-q:v', '2',
|
||||
'-c:a', 's302m', '-strict', '-2', '-ar', '48000', '-ac', '2',
|
||||
'-threads', '2', '-f', 'mpegts', '-'
|
||||
]
|
||||
@ -993,7 +990,6 @@ def play_clips(buffer, GetSourceIter):
|
||||
print(traceback.format_exc())
|
||||
|
||||
finally:
|
||||
buffer.put(None)
|
||||
decoder.wait()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user