Project

General

Profile

Actions

Feature #221

closed

Need daemon to handle launch/shutdown of ffmpeg

Added by Hammel over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
04 - Root File System
Target version:
Start date:
30 Aug 2013
Due date:
% Done:

100%

Estimated time:
Severity:
02 - High

Description

The PiBox media server web server needs to launch ffmpeg before it returns a page to the remote browser. Launching it is easy from php before the streaming starts, but we need to kill it when the browser leaves that page.

To do that we need javascript in the page served to perform an action. That action will cause the ffmpeg session associated with that page to stop.

The best way to handle this is to have a daemon that launches ffmpeg and associates a tag with it. PHP generates the tag and tells the daemon to launch ffmpeg. The tag is returned in the Javascript in the served page so that javascript can call a URL that is PHP that pulls the tag in the GET variables and tells the daemon to stop the ffmpeg session.

Actions

Also available in: Atom PDF