Final Patchups
This commit is contained in:
parent
9e4369a3b3
commit
213e9e1b0f
|
@ -24,7 +24,7 @@ class Streamer:
|
||||||
"-vcodec",
|
"-vcodec",
|
||||||
"png",
|
"png",
|
||||||
"-r",
|
"-r",
|
||||||
"30", # FPS
|
"5", # FPS
|
||||||
"-i",
|
"-i",
|
||||||
"-", # Indicated input comes from pipe
|
"-", # Indicated input comes from pipe
|
||||||
"-vcodec",
|
"-vcodec",
|
||||||
|
@ -46,9 +46,9 @@ class Streamer:
|
||||||
"-b:v",
|
"-b:v",
|
||||||
"2500k",
|
"2500k",
|
||||||
"-maxrate",
|
"-maxrate",
|
||||||
"2500k",
|
"1000k",
|
||||||
"-bufsize",
|
"-bufsize",
|
||||||
"2500k",
|
"1000k",
|
||||||
"-sws_flags",
|
"-sws_flags",
|
||||||
"lanczos+accurate_rnd",
|
"lanczos+accurate_rnd",
|
||||||
"-acodec",
|
"-acodec",
|
||||||
|
@ -61,7 +61,7 @@ class Streamer:
|
||||||
"2",
|
"2",
|
||||||
"-f",
|
"-f",
|
||||||
"flv",
|
"flv",
|
||||||
"rtmp://rtmp.robotstreamer.com/live/topcec",
|
"rtmp://rtmp.robotstreamer.com/live/topkek",
|
||||||
]
|
]
|
||||||
|
|
||||||
# This is the ffmpeg pipe streamer!
|
# This is the ffmpeg pipe streamer!
|
||||||
|
@ -75,7 +75,7 @@ class Streamer:
|
||||||
raw = self.root.get_image(0, 0, self.x1, self.y1, X.ZPixmap, 0xFFFFFFFF)
|
raw = self.root.get_image(0, 0, self.x1, self.y1, X.ZPixmap, 0xFFFFFFFF)
|
||||||
image = Image.frombytes("RGB", (self.x1, self.y1), raw.data, "raw", "BGRX")
|
image = Image.frombytes("RGB", (self.x1, self.y1), raw.data, "raw", "BGRX")
|
||||||
|
|
||||||
image = image.crop((0, 200, self.x1, self.y1))
|
image = image.crop((0, 182, self.x1, self.y1))
|
||||||
|
|
||||||
return image
|
return image
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue