Update of /cvsroot/freevo/fred
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10938
Modified Files:
ChangeLog TODO remux.cc rpcserver.cc scheduler.cc
Log Message:
- fixed rpc/event names
- fixed timestamp correction
- improved timestamp correction when transport stream is damaged
Index: scheduler.cc
===================================================================
RCS file: /cvsroot/freevo/fred/scheduler.cc,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** scheduler.cc 2 Mar 2005 17:57:49 -0000 1.1.1.1
--- scheduler.cc 28 Mar 2005 15:04:34 -0000 1.2
***************
*** 182,186 ****
print_entries();
! send_event( "vdr.started", entries[ i ].id, entries[ i ].uri );
}
--- 182,186 ----
print_entries();
! send_event( "home-theatre.vdr.started", entries[ i ].id, entries[ i
].uri );
}
***************
*** 191,195 ****
stop_recording( entries[i] );
! send_event( "vdr.stopped", entries[ i ].id, entries[ i ].uri );
// remove recording from scheduling
--- 191,195 ----
stop_recording( entries[i] );
! send_event( "home-theatre.vdr.stopped", entries[ i ].id, entries[ i
].uri );
// remove recording from scheduling
Index: rpcserver.cc
===================================================================
RCS file: /cvsroot/freevo/fred/rpcserver.cc,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** rpcserver.cc 2 Mar 2005 17:57:49 -0000 1.1.1.1
--- rpcserver.cc 28 Mar 2005 15:04:34 -0000 1.2
***************
*** 44,48 ****
rpc_entity_register( rpc_server, "home-theatre.devices.list",
( RPCCommandFunc ) rpc_return_device_list, this );
! rpc_entity_register( rpc_server, "home-theatre.devices.describe",
( RPCCommandFunc ) rpc_return_device_describe, this );
rpc_entity_register( rpc_server, "home-theatre.vdr.record",
--- 44,48 ----
rpc_entity_register( rpc_server, "home-theatre.devices.list",
( RPCCommandFunc ) rpc_return_device_list, this );
! rpc_entity_register( rpc_server, "home-theatre.device.describe",
( RPCCommandFunc ) rpc_return_device_describe, this );
rpc_entity_register( rpc_server, "home-theatre.vdr.record",
Index: remux.cc
===================================================================
RCS file: /cvsroot/freevo/fred/remux.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** remux.cc 3 Mar 2005 09:04:46 -0000 1.2
--- remux.cc 28 Mar 2005 15:04:34 -0000 1.3
***************
*** 167,170 ****
--- 167,174 ----
int ccCounter;
static unsigned char headr[];
+ long long int testCnt;
+ long long int fPTS;
+ long long int lastNewPTS;
+ long long int newPTS;
void store(unsigned char *Data, int Count);
void reset_ipack(void);
***************
*** 183,187 ****
TS2PES::TS2PES(unsigned char *ResultBuffer, int &ResultCount, int Size,
unsigned char AudioCid) :
size(Size), audioCid(AudioCid), resultBuffer(ResultBuffer),
resultCount(ResultCount),
! tsErrors(0), ccErrors(0), ccCounter(-1)
{
--- 187,191 ----
TS2PES::TS2PES(unsigned char *ResultBuffer, int &ResultCount, int Size,
unsigned char AudioCid) :
size(Size), audioCid(AudioCid), resultBuffer(ResultBuffer),
resultCount(ResultCount),
! tsErrors(0), ccErrors(0), ccCounter(-1), testCnt(0), fPTS(0),
lastNewPTS(0), newPTS(0)
{
***************
*** 375,383 ****
plength = MMAX_PLENGTH - 6;
- static long long int testCnt = 10;
- static long long int fPTS = 0;
- static long long int lastNewPTS = 0;
- static long long int newPTS = 0;
-
if (done || ((mpeg == 2 && found >= 9) || (mpeg == 1 && found >= 7))) {
switch (cid) {
--- 379,382 ----
***************
*** 442,446 ****
newPTS = PTS - fPTS;
if (newPTS < 0) {
! newPTS = 0;
}
--- 441,446 ----
newPTS = PTS - fPTS;
if (newPTS < 0) {
! // newPTS = 0;
! newPTS = lastNewPTS+10; // do not set this to zero ==> breaks video
if pts is damaged
}
Index: ChangeLog
===================================================================
RCS file: /cvsroot/freevo/fred/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ChangeLog 3 Mar 2005 09:04:46 -0000 1.2
--- ChangeLog 28 Mar 2005 15:04:33 -0000 1.3
***************
*** 1,2 ****
--- 1,16 ----
+ 2005-03-28 Soenke Schwardt <[EMAIL PROTECTED]>
+
+ * remux.cc (instant_repack): improving timestamp correction while
+ handling damaged transport stream.
+
+ 2005-03-20 Soenke Schwardt <[EMAIL PROTECTED]>
+
+ * remux.cc (instant_repack): fixing timestamp correction
+
+ 2005-03-18 Soenke Schwardt <[EMAIL PROTECTED]>
+
+ * rpcserver.cc: corrected rpc name
+ * scheduler.cc: corrected event names
+
2005-03-03 Soenke Schwardt <[EMAIL PROTECTED]>
Index: TODO
===================================================================
RCS file: /cvsroot/freevo/fred/TODO,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** TODO 2 Mar 2005 17:57:46 -0000 1.1.1.1
--- TODO 28 Mar 2005 15:04:34 -0000 1.2
***************
*** 1,35 ****
TODO:
+ implement list_scheduling ==> recordserver is able to get running recordings
! + Events an RS ==> Start und Stop
! + Konflikterkennung beim Einf�gen
! - optionale Parameter f�r vdr.record
! - Fix Timestamps in MPEG ==> Replex
! - nicht auf HAS_LOCK warten, sondern weitermachen und HAS_LOCK zwischendurch
mal testen
! - Unicode conversion to latin1
! - PDC-Daten beachten
! - Videotext extrahieren
- when using dvb-t then read the frequecies from config file and detect the
channels by NIT
- - Hinweis im Code entfernen
-
-
- Wishlist:
- - TV Guide ==> Oben links in der Ecke ==> Datum der aktuell ausgew�hlten
Sendung
-
- Bugliste:
- - M�ll im TVGuide ==> Endzeit steht auf 23:59
- - Random-Playlist starten ; Player detachen ; Player stoppt nach aktuellem
Lied ;
- wird ein neues ausgew�hlt, aktiviert sich der abgeh�ngte Player
-
RPCs:
! vdr.record( <dev> <chan> <start> <end> <uri> ( (chunksize: int)
(filetype:string) (PCDstart:int) ) )
! vdr.list( <dev> )
---> ( (<uniqueid> <chan> <start> <stop>) ... )
! RPC status() ==> busy/idle f�r x Sekunden
Events:
! vdr.started( <uniqueid> <uri> )
! vdr.stopped( <uniqueid> <uri> )
--- 1,29 ----
TODO:
+ implement list_scheduling ==> recordserver is able to get running recordings
! + send start/stop events to RS
! + basic conflict detection while inserting new recordings
! + normalize timestamps (pts/dts)
! - be more tolerant when handling corrupted ts streams
! - add/parse optional parameters for home-theatre.vdr.record
! - do not wait for HAS_LOCK, just continue and test HAS_LOCK later
! - Unicode
! - extract PDC/VPS data and use it for recording
! - extract videotext
! - add noad support
- when using dvb-t then read the frequecies from config file and detect the
channels by NIT
RPCs:
! home-theatre.vdr.record( <dev> <chan> <start> <end> <uri> ( (chunksize: int)
(filetype:string) (PCDstart:int) ) )
!
! home-theatre.vdr.list( <dev> )
---> ( (<uniqueid> <chan> <start> <stop>) ... )
!
! home-theatre.status()
! ---> ( <x> ) ==> busy/idle for next x seconds
Events:
! home-theatre.vdr.started( <uniqueid> <uri> )
! home-theatre.vdr.stopped( <uniqueid> <uri> )
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog