Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
SexhackmeStreamer
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
SexhackmeStreamer
Commits
30e5bb3f
Commit
30e5bb3f
authored
Oct 02, 2024
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debugging windows
parent
a0f9f419
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
shmvcam.py
shmvcam.py
+9
-3
No files found.
shmvcam.py
View file @
30e5bb3f
...
@@ -96,12 +96,18 @@ class RemoteProcessFLVWriter:
...
@@ -96,12 +96,18 @@ class RemoteProcessFLVWriter:
with
pyvirtualcam
.
Camera
(
1920
,
1080
,
30
,
fmt
=
PixelFormat
.
BGR
,
device
=
args
.
device
,
print_fps
=
30
)
as
cam
:
with
pyvirtualcam
.
Camera
(
1920
,
1080
,
30
,
fmt
=
PixelFormat
.
BGR
,
device
=
args
.
device
,
print_fps
=
30
)
as
cam
:
frame
=
""
frame
=
""
donedone
=
False
while
not
stream
.
at_eof
():
while
not
stream
.
at_eof
():
frame
=
await
stream
.
readexactly
(
1920
*
1080
*
3
)
if
not
donedone
:
donedone
=
True
frame
=
await
stream
.
readexactly
(
1920
*
1080
*
3
)
frame
=
np
.
frombuffer
(
frame
,
dtype
=
'uint8'
)
.
reshape
((
1080
,
1920
,
3
,))
if
len
(
frame
)
>=
1920
*
1080
*
3
:
if
len
(
frame
)
>=
1920
*
1080
*
3
:
#cam.send(np.fromstring(frame[:1920*1080*3], dtype='uint8').reshape((1080,1920,3,)))
#cam.send(np.fromstring(frame[:1920*1080*3], dtype='uint8').reshape((1080,1920,3,)))
cam
.
send
(
np
.
frombuffer
(
frame
,
dtype
=
'uint8'
)
.
reshape
((
1080
,
1920
,
3
,)))
#cam.send(np.frombuffer(frame, dtype='uint8').reshape((1080, 1920, 3,)))
cam
.
sleep_until_next_frame
()
cam
.
send
(
frame
)
#cam.sleep_until_next_frame()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment