dreamrtspserver.git
2 years agofixed profile settings master
Andreas Monzner [Fri, 17 Mar 2017 21:39:18 +0000 (22:39 +0100)]
fixed profile settings

2 years agodreamrtspserver: allow FALSE and zero for properties ;), add open gop option
Andreas Monzner [Fri, 17 Mar 2017 17:17:26 +0000 (18:17 +0100)]
dreamrtspserver: allow FALSE and zero for properties ;), add open gop option

2 years agoadd new properties (require new drivers and dreamsource):
Stephan Reichholf [Mon, 13 Mar 2017 09:40:57 +0000 (10:40 +0100)]
add new properties (require new drivers and dreamsource):
* new framerates
* gopLength (int, time between gops in ms, default is 0/auto)
* gopOnSceneChange (boolean, autodetected, DM900 only, default is off)
* bFrames (int, number of B-Frames before P-Frames, default is 1)
* pFrames (int, number of P-Frames, default 2)
* slices (int, number of slices per picture, default is 0)
* level (int, h264 leve, see enum, default is 3.1)
* profile (main/high, default is main)

2 years agofixed HLS streaming with newer soup version
Andreas Monzner [Sat, 5 Nov 2016 00:12:26 +0000 (01:12 +0100)]
fixed HLS streaming with newer soup version

2 years agolocking fixes needed for newer glib version with more strict locking rules .. no...
Andreas Monzner [Wed, 5 Oct 2016 23:56:44 +0000 (01:56 +0200)]
locking fixes needed for newer glib version with more strict locking rules .. no unlock without lock

2 years agoupdate soup code for 2.48+
Andreas Oberritter [Tue, 13 Sep 2016 12:15:49 +0000 (14:15 +0200)]
update soup code for 2.48+

2 years agosystemd: wait for /dev/venc0
Andreas Oberritter [Tue, 13 Sep 2016 12:15:14 +0000 (14:15 +0200)]
systemd: wait for /dev/venc0

2 years agoimprove error checking for source elements, fix some more warnings
Andreas Oberritter [Tue, 13 Sep 2016 11:51:45 +0000 (13:51 +0200)]
improve error checking for source elements, fix some more warnings

2 years agofix compiler warnings, mostly format strings and uninitialized or unused variables
Andreas Oberritter [Mon, 12 Sep 2016 22:30:59 +0000 (00:30 +0200)]
fix compiler warnings, mostly format strings and uninitialized or unused variables

3 years agoentirely start/stop hls server pipeline depending on http requests (fixes idle cpu...
Andreas Frisch [Mon, 16 May 2016 16:36:29 +0000 (18:36 +0200)]
entirely start/stop hls server pipeline depending on http requests (fixes idle cpu consumption, introduces 3s playback delay)

3 years agoexplicitely set hlssink state, add SIGUSR1 handler for plotting a dot graph, delete...
Andreas Frisch [Wed, 11 May 2016 09:16:27 +0000 (11:16 +0200)]
explicitely set hlssink state, add SIGUSR1 handler for plotting a dot graph, delete hls tmpdir on disable

3 years agodon't fail if async state change if deferred element is a sink (fixes background...
Andreas Frisch [Mon, 18 Apr 2016 11:40:16 +0000 (13:40 +0200)]
don't fail if async state change if deferred element is a sink (fixes background service streaming)

3 years agodon't assert tcp element states seperately before whole pipeline goes playing
Andreas Frisch [Mon, 18 Apr 2016 10:14:19 +0000 (12:14 +0200)]
don't assert tcp element states seperately before whole pipeline goes playing

3 years agoimprove state change robustness
Andreas Frisch [Mon, 18 Apr 2016 08:27:30 +0000 (10:27 +0200)]
improve state change robustness

3 years agodon't destroy pipeline on disable RTSP if HLS is still running
Andreas Frisch [Thu, 7 Apr 2016 10:00:48 +0000 (12:00 +0200)]
don't destroy pipeline on disable RTSP if HLS is still running

3 years agoallocate valid null strings
Andreas Frisch [Wed, 6 Apr 2016 13:14:54 +0000 (15:14 +0200)]
allocate valid null strings

3 years agodon't leak soup server credentials and auth domain
Andreas Frisch [Fri, 1 Apr 2016 11:25:04 +0000 (13:25 +0200)]
don't leak soup server credentials and auth domain

3 years agoadd HLS server basic authentication (adds dbus api)
Andreas Frisch [Fri, 1 Apr 2016 10:40:44 +0000 (12:40 +0200)]
add HLS server basic authentication (adds dbus api)

3 years agodon't halt source pipeline one tcp upstream failure or rtsp server disable if hls...
Andreas Frisch [Fri, 11 Mar 2016 09:13:40 +0000 (10:13 +0100)]
don't halt source pipeline one tcp upstream failure or rtsp server disable if hls enabled

3 years agoadd RTSP state query dbus api
Andreas Frisch [Thu, 10 Mar 2016 10:47:47 +0000 (11:47 +0100)]
add RTSP state query dbus api

3 years agorename HLSState to hlsState
Stephan Reichholf [Thu, 10 Mar 2016 08:54:02 +0000 (09:54 +0100)]
rename HLSState to hlsState

3 years agoadd HLS state query dbus api
Andreas Frisch [Tue, 8 Mar 2016 14:38:59 +0000 (15:38 +0100)]
add HLS state query dbus api

3 years agoadd upstream failed state, fix upstream+hls parallel operation
Andreas Frisch [Thu, 3 Mar 2016 17:29:07 +0000 (18:29 +0100)]
add upstream failed state, fix upstream+hls parallel operation

3 years agotweak overrun/underrun state handling
Andreas Frisch [Fri, 26 Feb 2016 15:25:18 +0000 (16:25 +0100)]
tweak overrun/underrun state handling

3 years agofix dataflow detection probe
Andreas Frisch [Wed, 24 Feb 2016 12:07:19 +0000 (13:07 +0100)]
fix dataflow detection probe

3 years agofix enabling ONLY upstream (add missing set state PLAYING)
Andreas Frisch [Wed, 24 Feb 2016 11:25:30 +0000 (12:25 +0100)]
fix enabling ONLY upstream (add missing set state PLAYING)

3 years agorecursively delete HLS segment temp dir on exit
Andreas Frisch [Tue, 19 Jan 2016 23:17:42 +0000 (00:17 +0100)]
recursively delete HLS segment temp dir on exit

3 years agounpause pipeline on HLS client connect
Andreas Frisch [Thu, 14 Jan 2016 15:42:59 +0000 (16:42 +0100)]
unpause pipeline on HLS client connect

3 years agoassert state changes for hls, rtsp and upstream before/during/after relinking
Andreas Frisch [Thu, 14 Jan 2016 15:04:28 +0000 (16:04 +0100)]
assert state changes for hls, rtsp and upstream before/during/after relinking

3 years agohls: use convenience functions to set mimetype, change a log severity, remove unused...
Andreas Frisch [Tue, 12 Jan 2016 10:28:17 +0000 (11:28 +0100)]
hls: use convenience functions to set mimetype, change a log severity, remove unused code path

3 years agouse explicit 301 redirection for GET with unspecified path
Andreas Frisch [Tue, 12 Jan 2016 08:15:53 +0000 (09:15 +0100)]
use explicit 301 redirection for GET with unspecified path

3 years agoset http header mime types
Andreas Frisch [Tue, 12 Jan 2016 07:27:52 +0000 (08:27 +0100)]
set http header mime types

3 years agoadd internal libsoup-based webserver for hls
Andreas Frisch [Mon, 11 Jan 2016 18:04:45 +0000 (19:04 +0100)]
add internal libsoup-based webserver for hls

3 years agosend watchdog pings every 5 s
Andreas Frisch [Mon, 11 Jan 2016 10:48:19 +0000 (11:48 +0100)]
send watchdog pings every 5 s

3 years agoset hlssink and queue to playing before linking to tee, fixes hls-doesn't-start-after...
Andreas Frisch [Mon, 21 Dec 2015 09:04:03 +0000 (10:04 +0100)]
set hlssink and queue to playing before linking to tee, fixes hls-doesn't-start-after-upstream-was-started-bug

3 years agowait for async state change to be finished before re-changing state
Andreas Frisch [Wed, 16 Dec 2015 13:26:08 +0000 (14:26 +0100)]
wait for async state change to be finished before re-changing state

3 years agoimplement signal-lost handler (needs dreamsource e492abe7b69c)
Andreas Frisch [Fri, 11 Dec 2015 08:08:59 +0000 (09:08 +0100)]
implement signal-lost handler (needs dreamsource e492abe7b69c)

3 years agodon't free objects until we're done checking their states
Andreas Frisch [Tue, 8 Dec 2015 09:39:45 +0000 (10:39 +0100)]
don't free objects until we're done checking their states

3 years agofix simultaneous operation of HLS and RTSP server
Andreas Frisch [Fri, 27 Nov 2015 10:30:59 +0000 (11:30 +0100)]
fix simultaneous operation of HLS and RTSP server

3 years agoimplement basic HLS segmentizer functionality
Andreas Frisch [Thu, 26 Nov 2015 14:55:38 +0000 (15:55 +0100)]
implement basic HLS segmentizer functionality

3 years agofix deadlock, one more try
Andreas Frisch [Tue, 27 Oct 2015 10:11:55 +0000 (11:11 +0100)]
fix deadlock, one more try

3 years agopush dummy buffer before going into paused (fixes config deadlock)
Andreas Frisch [Tue, 27 Oct 2015 09:34:56 +0000 (10:34 +0100)]
push dummy buffer before going into paused (fixes config deadlock)

3 years agofix local/upstream parallel operation, fix some locking, inject empty packet when...
Andreas Frisch [Mon, 26 Oct 2015 14:07:05 +0000 (15:07 +0100)]
fix local/upstream parallel operation, fix some locking, inject empty packet when upstream goes into pause (in order for mediator to
detect client disconnect properly)

3 years agofix bitrate measurement, disable tcp upstream on SIGINT, reduce initial queue size...
Andreas Frisch [Tue, 15 Sep 2015 13:50:22 +0000 (15:50 +0200)]
fix bitrate measurement, disable tcp upstream on SIGINT, reduce initial queue size a bit

3 years agomake fit for gst 1.5.90, increase initial tcp upstream to 2s, remove unnecessary...
Andreas Frisch [Mon, 14 Sep 2015 13:50:04 +0000 (15:50 +0200)]
make fit for gst 1.5.90, increase initial tcp upstream to 2s, remove unnecessary private from local rtspserver helper classes

3 years agodo not consider parameter query for media key generation (fixes interrupted streams...
Andreas Frisch [Fri, 14 Aug 2015 11:51:03 +0000 (13:51 +0200)]
do not consider parameter query for media key generation (fixes interrupted streams) and change some log levels

3 years agouriParametersReceived -> uriParametersChanged
Stephan Reichholf [Thu, 13 Aug 2015 11:24:19 +0000 (13:24 +0200)]
uriParametersReceived -> uriParametersChanged

3 years agoimplement uri parameter extraction
Andreas Frisch [Thu, 13 Aug 2015 09:18:19 +0000 (11:18 +0200)]
implement uri parameter extraction

3 years agoimplement sourceState(Changed) and rtspClientCount(Changed) API functionality
Andreas Frisch [Thu, 30 Jul 2015 08:16:41 +0000 (10:16 +0200)]
implement sourceState(Changed) and rtspClientCount(Changed) API functionality

3 years agofix audio/videosource deadlock when unpreparing (state change paused to ready)
Andreas Frisch [Mon, 27 Jul 2015 14:14:29 +0000 (16:14 +0200)]
fix audio/videosource deadlock when unpreparing (state change paused to ready)

4 years agoset sources to NULL instead of READY (fixes deadlocks on last client disconnect/media...
Andreas Frisch [Thu, 18 Jun 2015 09:59:36 +0000 (11:59 +0200)]
set sources to NULL instead of READY (fixes deadlocks on last client disconnect/media unprepare) fix disable forced disconnection

4 years agolog locking, ease locking in message and payload handlers
Andreas Frisch [Tue, 9 Jun 2015 11:38:57 +0000 (13:38 +0200)]
log locking, ease locking in message and payload handlers

4 years agomake TS the default local RTSP server path. RTSP with seperate ES is now available...
Andreas Frisch [Tue, 2 Jun 2015 12:11:27 +0000 (14:11 +0200)]
make TS the default local RTSP server path. RTSP with seperate ES is now available at $path+"-es" url

4 years agomake mediator upstream feature optional (disable by default) by --with-upstream confi...
Andreas Frisch [Tue, 2 Jun 2015 12:02:33 +0000 (14:02 +0200)]
make mediator upstream feature optional (disable by default) by --with-upstream configure switch

4 years agotcpupstream merge fixes
Andreas Frisch [Tue, 2 Jun 2015 09:09:08 +0000 (11:09 +0200)]
tcpupstream merge fixes

4 years agofix a few local rtsp server state transitions
Andreas Frisch [Mon, 1 Jun 2015 16:20:34 +0000 (18:20 +0200)]
fix a few local rtsp server state transitions

4 years agoRevert "Revert "Revert "TESTING: radical simplification of server, remove entire...
Andreas Frisch [Thu, 28 May 2015 14:57:20 +0000 (16:57 +0200)]
Revert "Revert "Revert "TESTING: radical simplification of server, remove entire interal rtsp server" (keep recent fixes) WORK IN PROGRESS"" (this means put it back in ;)

This reverts commit 7750bcce6fe7d053a1f9b740ed2aa0c3afacb7d2.

4 years agonew ADJUSTING state.
Andreas Frisch [Mon, 4 May 2015 10:49:05 +0000 (12:49 +0200)]
new ADJUSTING state.

4 years agomove declarations and constants into seperate header file
Andreas Frisch [Wed, 29 Apr 2015 06:13:49 +0000 (08:13 +0200)]
move declarations and constants into seperate header file

4 years agoimplement autoBitrate property, this will adaptively reduce source bitrates to ~80...
Andreas Frisch [Tue, 28 Apr 2015 10:54:53 +0000 (12:54 +0200)]
implement autoBitrate property, this will adaptively reduce source bitrates to ~80% of measured available tx bitrate in OVERLOAD state

4 years agoimplement new signal tcpBitrate that will fire every X (=5) seconds during TRANSMITTI...
Andreas Frisch [Mon, 27 Apr 2015 09:31:59 +0000 (11:31 +0200)]
implement new signal tcpBitrate that will fire every X (=5) seconds during TRANSMITTING with the tx bitrate in KILOBITS per second

4 years agowork on waiting logic, reduce sink max lateness
Andreas Frisch [Mon, 20 Apr 2015 21:33:44 +0000 (23:33 +0200)]
work on waiting logic, reduce sink max lateness

4 years agosave/restore source properties when destroying pipeline (needs dreamsource 8716ed6)
Andreas Frisch [Fri, 17 Apr 2015 22:01:48 +0000 (00:01 +0200)]
save/restore source properties when destroying pipeline (needs dreamsource 8716ed6)

4 years agoRevert "Revert "TESTING: radical simplification of server, remove entire interal...
Andreas Frisch [Fri, 17 Apr 2015 15:44:53 +0000 (17:44 +0200)]
Revert "Revert "TESTING: radical simplification of server, remove entire interal rtsp server" (keep recent fixes) WORK IN PROGRESS"

This reverts commit 72a25d9d779a453c0f5dc66b928a7924932b6927.

4 years agomutex around enable_tcp_upstream, assure tsqueue exists in probe cb
Andreas Frisch [Fri, 17 Apr 2015 15:13:50 +0000 (17:13 +0200)]
mutex around enable_tcp_upstream, assure tsqueue exists in probe cb

4 years agoimplement new upstream state overload
Andreas Frisch [Fri, 10 Apr 2015 16:09:39 +0000 (18:09 +0200)]
implement new upstream state overload

4 years agopause pipeline on upstream waiting for mediator clients and implement signal state
Andreas Frisch [Fri, 10 Apr 2015 13:28:19 +0000 (15:28 +0200)]
pause pipeline on upstream waiting for mediator clients and implement signal state

4 years agosync rtsp elements' states to upstream state correctly
Andreas Frisch [Fri, 10 Apr 2015 12:20:48 +0000 (14:20 +0200)]
sync rtsp elements' states to upstream state correctly

4 years agouse one universal tsmux element for all pipelinebranches (work in progress)
Andreas Frisch [Fri, 10 Apr 2015 11:50:06 +0000 (13:50 +0200)]
use one universal tsmux element for all pipelinebranches (work in progress)

4 years agolocal RTSP server parallel traditional (seperate elementary streams) PLUS interleaved...
Andreas Frisch [Thu, 9 Apr 2015 14:33:54 +0000 (16:33 +0200)]
local RTSP server parallel traditional (seperate elementary streams) PLUS interleaved TRANSPORT STREAM (rtsp://box/ts) provided

4 years agoRevert "TESTING: radical simplification of server, remove entire interal rtsp server...
Andreas Frisch [Thu, 9 Apr 2015 13:49:03 +0000 (15:49 +0200)]
Revert "TESTING: radical simplification of server, remove entire interal rtsp server" (keep recent fixes) WORK IN PROGRESS

This reverts commit 2d8032d1f3c0dc9c7ad4113698f9e3207e350c04.

4 years agoget caps robustness
Andreas Frisch [Fri, 20 Mar 2015 10:14:38 +0000 (11:14 +0100)]
get caps robustness

4 years agoadd introspection xml for signals
Andreas Frisch [Wed, 18 Mar 2015 12:09:05 +0000 (13:09 +0100)]
add introspection xml for signals

4 years agoimplement sending dbus signals on state changes and errors
Andreas Frisch [Wed, 18 Mar 2015 11:48:19 +0000 (12:48 +0100)]
implement sending dbus signals on state changes and errors

4 years agoTESTING tweak queue size some more
Andreas Frisch [Tue, 17 Mar 2015 11:17:59 +0000 (12:17 +0100)]
TESTING tweak queue size some more

4 years agoremove comment from set_input (accidentially commited)
Stephan Reichholf [Tue, 17 Mar 2015 10:29:02 +0000 (11:29 +0100)]
remove comment from set_input (accidentially commited)

4 years agoTESTING tweak queue and network properties
Andreas Frisch [Tue, 17 Mar 2015 08:18:57 +0000 (09:18 +0100)]
TESTING tweak queue and network properties

4 years agoTESTING: radical simplification of server, remove entire interal rtsp server
Andreas Frisch [Mon, 16 Mar 2015 16:24:35 +0000 (17:24 +0100)]
TESTING: radical simplification of server, remove entire interal rtsp server

4 years agohopefully finally fix evil deadlock from hell
Andreas Frisch [Wed, 11 Mar 2015 10:18:09 +0000 (11:18 +0100)]
hopefully finally fix evil deadlock from hell

4 years agodo not use gdp encapsulation anymore, send pure ts
Andreas Frisch [Tue, 10 Mar 2015 16:25:33 +0000 (17:25 +0100)]
do not use gdp encapsulation anymore, send pure ts

4 years agoupstream state change fixes
Andreas Frisch [Tue, 10 Mar 2015 15:14:07 +0000 (16:14 +0100)]
upstream state change fixes

4 years agocheck mutual states correctly before pausing source on disable. create DOT on error
Andreas Frisch [Mon, 9 Mar 2015 16:13:30 +0000 (17:13 +0100)]
check mutual states correctly before pausing source on disable. create DOT on error

4 years agoAPI change: seperate state getters for RTSP and upstream
Andreas Frisch [Mon, 9 Mar 2015 14:22:26 +0000 (15:22 +0100)]
API change: seperate state getters for RTSP and upstream

4 years agodebug info about already running servers on re-enable, don't forget to unlock mutex
Andreas Frisch [Mon, 9 Mar 2015 09:40:04 +0000 (10:40 +0100)]
debug info about already running servers on re-enable, don't forget to unlock mutex

4 years agoimplement graceful gmainloop quit on sigint, fix multiple memleaks and warnings,...
Andreas Frisch [Fri, 6 Mar 2015 15:00:01 +0000 (16:00 +0100)]
implement graceful gmainloop quit on sigint, fix multiple memleaks and warnings, work on forcefully disconnecting on disable rtsp

4 years agofix re-enableUpstream after failed attempt
Andreas Frisch [Thu, 5 Mar 2015 15:43:25 +0000 (16:43 +0100)]
fix re-enableUpstream after failed attempt

4 years agoimplement inputMode dbus api property to switch between live, hdmi-in and background...
Andreas Frisch [Thu, 5 Mar 2015 11:55:16 +0000 (12:55 +0100)]
implement inputMode dbus api property to switch between live, hdmi-in and background encoding

4 years agofix framerate/resolution setters, improve disabling local rtsp
Andreas Frisch [Thu, 5 Mar 2015 08:05:03 +0000 (09:05 +0100)]
fix framerate/resolution setters, improve disabling local rtsp

4 years agodon't leak entire payload when upstreaming ^_^
Andreas Frisch [Wed, 4 Mar 2015 15:25:49 +0000 (16:25 +0100)]
don't leak entire payload when upstreaming ^_^

4 years agointroduce seperate local rtsp and tcp upstream queues, fixes simultaneous operation
Andreas Frisch [Wed, 4 Mar 2015 14:28:16 +0000 (15:28 +0100)]
introduce seperate local rtsp and tcp upstream queues, fixes simultaneous operation

4 years agodetach Gsource ID (fixes enable after disable local rtsp)
Andreas Frisch [Wed, 4 Mar 2015 14:04:52 +0000 (15:04 +0100)]
detach Gsource ID (fixes enable after disable local rtsp)

4 years agowork on state changes. local rtsp client loss/reconnect fixed
Andreas Frisch [Wed, 4 Mar 2015 13:12:14 +0000 (14:12 +0100)]
work on state changes. local rtsp client loss/reconnect fixed

4 years agowork on tcp upstream, detect connection refused, rework token injection
Andreas Frisch [Wed, 4 Mar 2015 08:26:00 +0000 (09:26 +0100)]
work on tcp upstream, detect connection refused, rework token injection

4 years agocheck for async stateChangeReturn
Andreas Frisch [Fri, 27 Feb 2015 18:56:01 +0000 (19:56 +0100)]
check for async stateChangeReturn

4 years agoonly pause source elements instead of whole pipeline, change parameter strings to...
Andreas Frisch [Fri, 27 Feb 2015 18:13:24 +0000 (19:13 +0100)]
only pause source elements instead of whole pipeline, change parameter strings to be const (fixes weird mount path memory corruption) WIP!

4 years agoprotect message callback with mutex
Andreas Frisch [Fri, 20 Feb 2015 12:07:25 +0000 (13:07 +0100)]
protect message callback with mutex

4 years agoapi change: no enableSource needed anymore
Andreas Frisch [Fri, 20 Feb 2015 11:20:37 +0000 (12:20 +0100)]
api change: no enableSource needed anymore

4 years agodon't crash when setting properties before source is enabled
Andreas Frisch [Fri, 20 Feb 2015 10:21:14 +0000 (11:21 +0100)]
don't crash when setting properties before source is enabled

4 years agodetect peer disconnect, destroy pipeline on disconnect (has to be re-initialized...
Andreas Frisch [Fri, 13 Feb 2015 15:58:03 +0000 (16:58 +0100)]
detect peer disconnect, destroy pipeline on disconnect (has to be re-initialized before reconnect)

4 years agoswitch to single port ts-muxed streaming, implement token/otp prepending (WORK IN...
Andreas Frisch [Thu, 12 Feb 2015 19:47:33 +0000 (20:47 +0100)]
switch to single port ts-muxed streaming, implement token/otp prepending (WORK IN PROGRESS)