embeded stream opengl
This commit is contained in:
@@ -70,24 +70,23 @@ class ChtWindow(Adw.ApplicationWindow):
|
||||
|
||||
self._stream_mgr = StreamManager()
|
||||
log.info("Session: %s", self._stream_mgr.session_id)
|
||||
log.info("Session dir: %s", self._stream_mgr.session_dir)
|
||||
self._stream_mgr.setup_dirs()
|
||||
|
||||
fifo_path = self._stream_mgr.start_recorder_with_monitor()
|
||||
log.info("FIFO path: %s", fifo_path)
|
||||
log.info("Stream URL: %s", self._stream_mgr.stream_url)
|
||||
log.info("Recorder started, waiting for sender connection...")
|
||||
# mpv listens on TCP directly (lowest latency, like def scripts)
|
||||
# and records the raw stream to disk for frame extraction
|
||||
stream_url = self._stream_mgr.stream_url
|
||||
record_path = self._stream_mgr.stream_dir / "recording.ts"
|
||||
log.info("Starting mpv on %s, recording to %s", stream_url, record_path)
|
||||
self._monitor.start_stream(stream_url, record_path=record_path)
|
||||
log.info("Monitor started, waiting for sender...")
|
||||
|
||||
self._monitor.start_mpv(fifo_path)
|
||||
log.info("Monitor (mpv) started")
|
||||
|
||||
self._stream_mgr.start_frame_extractor()
|
||||
self._stream_mgr.start_frame_extractor_on_recording(record_path)
|
||||
log.info("Frame extractor started")
|
||||
|
||||
def _stop_stream(self):
|
||||
log.info("Stopping stream...")
|
||||
self._monitor.stop()
|
||||
log.info("Monitor stopped")
|
||||
|
||||
if self._stream_mgr:
|
||||
self._stream_mgr.stop_all()
|
||||
log.info("Stream manager stopped")
|
||||
|
||||
Reference in New Issue
Block a user