Commit graph

100 commits

Author SHA1 Message Date
Ian
401608cc69 Refactor of dvr config page and options; addition of user options for file and directory permissions throughout. 2014-03-27 11:22:32 +00:00
Adam Sutton
6482d33ba9 muxer dvr: fix configuration passing to reduce potential for error
This should fix #2015
2014-03-21 14:56:46 +00:00
Jaroslav Kysela
ed45ab7224 Add cache scheme selection for DVR to reduce system resources 2014-03-15 18:07:14 +01:00
Adam Sutton
9722e42a98 pvr: change the directory permissions to more sane value
This might need reviewing and making configurable, but this is definitely
a more sane starting point than the original.
2014-03-07 20:43:13 +00:00
Adam Sutton
e4ae172467 muxer pass: some re-org, UI fixup and general tidying of PMT/PAT rewrite
I've made the PAT/PMT rewriting indepedently configured, currently I think
the multi-packet PMT is a limitation we need to look into.
2013-12-01 00:11:18 +00:00
Dave Chapman
6df74d3d75 Merge relevant parts of PR#255 to complete the implementation of PAT/PMT passthrough, with the option of rewriting the PAT and PMT so the PAT only contains a reference to the included service, and the PMT only contains references to the included streams. This still needs more work - the PMT PID is being passed to the muxer as zero the first time a channel is streamed after tvh starts, and the PMT rewrite code fails if the PMT spans multiple TS packets 2013-12-01 00:11:17 +00:00
Adam Sutton
8901334cc0 misc: Remove memory leaks and other anomalies
Many of these are somewhat redundant now, as I've suppressed many of the
warnings as they're false positives. However the changes, such as added
a detach flag to tvhthread_create(), have been kept anyway.
2013-10-11 13:41:46 +01:00
Adam Sutton
bb72cd525d subscriptions: reporting of subs output caused passthru streams to crash
I had forgotten that MPEGTS passes raw pktbuf not pkt and so was attempting
to incorrectly extract the length and causing it to crash.
2013-09-12 22:48:22 +01:00
Adam Sutton
10854c1cf4 subscription: add in/out bandwidth indicator
Now have the concept of both input and output bandwidth usage of a sub.

The reason for this is that while data may be flowing into the subscription,
i.e. a signal is being received. Things like timeshift, or even potentially
flow control, may mean the actual outgoing rate is quite different.

Input rate is added by the subscription code as data enters the sub, however
the output rate must be added by the subscription handler as close to the
client as possible.
2013-09-10 16:26:14 +01:00
Adam Sutton
2b909fe580 debug: add wrapper for pthread_create to add a meaningful name
This is very useful for debugging. Though tbh I need to do this code
properly.
2013-09-05 22:19:25 +01:00
Bernhard Froehlich
1a458ae763 Fix warning because of wrong time_t format specifier on FreeBSD i386
and fix places where format specifier is hardcoded for time_t and
correctly use PRItime_t instead.

src/epg.c:1412: warning: format '%ld' expects type 'long int', but argument 7 has type 'time_t'
src/dvr/dvr_rec.c:596: warning: format '%ld' expects type 'long int', but argument 4 has type 'time_t'
src/epggrab/module/eit.c:536: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'time_t'
2013-05-24 21:34:53 +02:00
Adam Sutton
5dd5826921 Fix #1589 - only remove "unsafe" characters if configured to do so. 2013-02-03 20:13:55 +00:00
Adam Sutton
665ca55b4e dvr: don't run postproc script unless there is actually a file to process 2013-02-01 21:02:03 +00:00
Adam Sutton
43ae54c062 Fix #1569 - dvr: simplify filename cleanup 2013-01-31 11:30:09 +00:00
Adam Sutton
8f5d8fe9bf dvr: ensure subsystems are notified when dvr starts (and filename is set) 2013-01-31 11:30:09 +00:00
Adam Sutton
ef5ab4bae2 Merge remote-tracking branch 'origin/pr/236' 2013-01-31 10:35:51 +00:00
John Törnblom
8754b14d50 put tsfix before the global headers. fixes problems where recordings could loose tracks 2013-01-25 21:21:52 +01:00
Kristofer Karlsson
f6ee30c3c6 Keep recordings when channel is deleted
When a channel is deleted, don't delete all existing recordings.
2013-01-25 09:04:50 +01:00
Adam Sutton
44932dd601 Merge remote-tracking branch 'origin/pr/226' 2013-01-15 16:29:51 +00:00
Adam Sutton
a3ff11f782 timeshift: add periodic status message indicating buffer state etc. 2013-01-15 11:23:46 +00:00
BtbN
71b09488a1 .c files are not executable 2013-01-15 00:58:12 +01:00
Adam Sutton
9180546fc6 timeshift: early prototype of the new timeshift feature.
Currently this supports pause/resume, and speed control. FF up to 4x uses
full frame output, faster than that or reverse uses i-frame only output.
This causes problems with some players and needs work.

Also buffers are done at the subscription level which means the disk space
is not shared even if it holds the same content. And more importantly
this means you cannot yet record the timeshift buffer like on a standard
PVR.
2013-01-09 21:26:51 +00:00
John Törnblom
a846f70e4f dvr: add a marker when there is a commercial break 2013-01-08 22:33:04 +01:00
John Törnblom
fe9eb0c05e tsfix: sometimes, commersial skipping caused the audio/video to get out off sync. Lets just skip the packets for now. 2013-01-08 22:33:04 +01:00
John Törnblom
b979aae2fb make skip commercials an option in the webif (default to on) 2013-01-07 16:50:30 +01:00
John Törnblom
c6556d9c2e dvr: record the first commercial tagged packet, incase the detection was to early 2013-01-07 11:55:37 +01:00
John Törnblom
39a74172ad detect commercials on swedish TV4 and skip them while recording 2013-01-07 11:49:37 +01:00
John Törnblom
55925e7714 dvr: rearrange the pipes so that globalheaders gets the packets before tsfix (and the start time filter). 2013-01-06 18:56:39 +01:00
John Törnblom
ca68f94304 mkv: make sure the first cluster timecode is 'close to zero'.
when recording to disk, the subscription is started ~30s before the
scheduled event actually starts. This causes the pts time stamps to have an
offset of about 30s. This patch moves the start time filter condition
from the end of the pipeline to be a configurable property of the tsfix pipe.
2013-01-06 18:49:40 +01:00
Adam Sutton
6254fb5622 util: Added a generic makedirs replacement for the 2 diff implementations. 2012-11-28 09:43:13 +00:00
John Törnblom
95134ddbb5 log aspect ratio of recordings 2012-11-27 12:16:56 +01:00
John Törnblom
575f516ad5 if reconfiguration of the muxer fails, restart recording to a new file 2012-11-27 12:16:43 +01:00
John Törnblom
d9b9b26fd9 fix bug where recording stopped when the stream was reconfigured 2012-11-27 12:14:40 +01:00
John Törnblom
bf59755681 make sure pvr muxer is freed 2012-11-27 12:14:24 +01:00
John Törnblom
34ff0c20db make sure the recording has been started correctly before atempting to write packets to the muxer. 2012-11-17 15:34:12 +01:00
John Törnblom
ed5d7e4977 make sure there is metadata available before atempting to mux it with a recording 2012-11-16 16:27:29 +01:00
Adam Sutton
c05f93da53 Issue #1393 - minor aesthetic change, remove trailing slash from user config DVR directory. 2012-11-14 19:49:55 +00:00
John Törnblom
bc323d1932 some cosmetics to the "active subscription" list when DVR is being used. 2012-10-25 12:40:52 +02:00
John Törnblom
83a631e6d8 try to handle reconfiguration fo sources properly 2012-10-24 15:44:42 +02:00
John Törnblom
0cbaa02441 decoupled the muxer from the service link. 2012-10-24 15:32:06 +02:00
John Törnblom
dcfaad1a41 send the packet type to muxer along with the actual packet so we can check if the cast is correct 2012-10-24 15:25:43 +02:00
John Törnblom
bb119bc879 reconfigure muxes when stream source changes (usually on pmt update). 2012-10-19 12:05:39 +02:00
John Törnblom
77a6f4df8d Let the muxer deref packets all the time. If there is an error, the packet will be droped. 2012-10-19 11:46:25 +02:00
Andreas Öman
014f55a463 Add a status tab to the UI
Currently it will display active subscriptions with info about
total errors and current bandwidth
2012-10-18 11:09:33 +02:00
Adam Sutton
b9f5ba6dfc Re-instance signalStatus HTSP message using new streaming message. 2012-09-21 21:15:58 +01:00
Adam Sutton
b65a3a4ebd Ensure that recordings that never start are given a fault state. Fixes #1094. 2012-09-19 14:49:23 +01:00
Adam Sutton
00902f4613 Add multi-lingual support to the EPG. Fixes #227. 2012-08-21 14:57:52 +01:00
John Törnblom
ef98145ad5 Added support for multiple output muxers for file recording and http streaming. 2012-08-21 12:08:49 +02:00
Adam Sutton
066b58f6c7 Updated to include compat genre support (more will have to wait), DVR code fully updated to use new EPG code. Updated related code and added useful extra inputs to dvr event creation that should make XBMC devs happy. 2012-07-30 15:47:54 +01:00
Bart Lauret
07c618aaa4 added missing free()s 2012-03-07 15:12:48 +01:00