Skip to content

Commit

Permalink
macos don't apply pix_fmt for files
Browse files Browse the repository at this point in the history
FIXME: Perhaps this was only needed for screenshare?
  • Loading branch information
scivision committed Nov 15, 2020
1 parent 10c6805 commit 263eadb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pylivestream
version = 1.11.2
version = 1.11.3
author = Michael Hirsch, Ph.D.
author_email = [email protected]
description = Livestream using FFmpeg to YouTube Live, Periscope, Facebook Live, Twitch, and many more
Expand Down
9 changes: 6 additions & 3 deletions src/pylivestream/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,19 @@ def videoIn(self, quick: bool = False) -> List[str]:

if self.vidsource == "screen":
v = self.screengrab(quick)
if sys.platform == "darwin":
# not for files "option pixel_format not found"
v = ["-pix_fmt", "uyvy422"] + v
elif self.vidsource == "camera":
v = self.webcam(quick)
if sys.platform == "darwin":
# not for files "option pixel_format not found"
v = ["-pix_fmt", "uyvy422"] + v
elif self.vidsource is None or self.vidsource == "file":
v = self.filein(quick)
else:
raise ValueError(f"unknown vidsource {self.vidsource}")

if sys.platform == "darwin":
v = ["-pix_fmt", "uyvy422"] + v

return v

def videoOut(self) -> List[str]:
Expand Down

0 comments on commit 263eadb

Please sign in to comment.