Back To Back recordings fail on DVB-T (3 Viewers)

lar282

Portal Pro
July 11, 2004
414
2
ok, so its not in svn.I'll try this weekend.thanks gibman

lsse
 

lar282

Portal Pro
July 11, 2004
414
2
Gibman, it seems to work. I tried 2 overlapping recordings on diff transponders. U gonna put it in svn or do u need logs or anything from us?

Lasse
 

lar282

Portal Pro
July 11, 2004
414
2
Maybe I was to fast on the judgement!!

the second recording starts right away without waiting for the first to end. Like it has higher prio or something.Maybe it is suppose to do this who knows! BUT I see ALOT of trashed TS files.I can't open them in mediaportal or any other application. Only happened so far on the first recording not the second. Maybe the tvservice kills the recording to fast without ending the TS file properly. Also seen this in the log once but not all of the time.


2007-10-08 12:32:21 B Exception :Error: StatementErrorUnclassified
Gentle.Common.GentleException: select id_Schedule, idChannel, scheduleType, programName, startTime, endTime, maxAirings, priority, directory, quality, keepMethod, keepDate, preRecordInterval, postRecordInterval, canceled, recommendedCard from Schedule; ---> System.Data.SqlClient.SqlException: A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - En befintlig anslutning tvingades att stänga av fjärrvärddatorn.)
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.ThrowExceptionAndWarning()
at System.Data.SqlClient.TdsParserStateObject.WriteSni()
at System.Data.SqlClient.TdsParserStateObject.WritePacket(Byte flushMode)
at System.Data.SqlClient.TdsParserStateObject.ExecuteFlush()
at System.Data.SqlClient.TdsParser.TdsExecuteSQLBatch(String text, Int32 timeout, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
at Gentle.Framework.SqlStatement.Execute(IDbConnection conn, IDbTransaction tr)
--- End of inner exception stack trace ---
at Gentle.Framework.SqlStatement.Execute(IDbConnection conn, IDbTransaction tr)
at Gentle.Framework.PersistenceBroker.RetrieveList(Type type, Key key, IList result, IDbConnection conn, IDbTransaction tr)
at Gentle.Framework.Broker.RetrieveList(Type type)
at TvDatabase.Schedule.ListAll()
at TvService.Scheduler.DoSchedule()
 

gibman

Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    I have no clue about that SQL error u r getting.

    But as it was before my fix and after it, the logic goes like this.

    If we have 2 recordings (a and b) on diff. transponders avail. on only 1 device - then we have a dilemma.

    When rec. b is starting and rec. A is still recording, then rec. A is stopped in a normal way (should not corrupt).
    Rec. A might not be complete though. Since rec. B is favoured.

    Another approach would to "pad" the start recording time for rec. B to the end time of rec. A
    Atleast I dont think priorities are used here.

    /Gibman
     

    lar282

    Portal Pro
    July 11, 2004
    414
    2
    Personally I think its ok to stop rec A.

    May I ask why u stress out "diff transponders"? What if they are on the same and both A and B are scrambled AND my CAM is set to ONE channel only? I just realized that I tried on 2 scrambled that are on the same transponder BUT the log says they are not.(see part of log below)
    ( I take it that the TSID:1110 IS the transponder. If not ignore this)

    To bad u didn't know about the corrupt TS file. Really a problem.

    LOG-------------------------------------------------

    2007-10-08 12:40:51 6 Scheduler : time to record TvDatabase.Channel 2007-10-08 12:40:51-2007-10-08 12:55:00 MacGyver
    2007-10-08 12:40:51 6 Controller: find free card for channel Kanal 5
    2007-10-08 12:40:51 6 Controller: got 1 tuning details for Kanal 5
    2007-10-08 12:40:51 6 Controller: channel #1 DVBT:tv:Kanal 5 Ltd Kanal 5 Freq:633875 ONID:8945 TSID:1110 SID:1050 PMT:41A FTA:False LCN:10000 BandWidth:8
    2007-10-08 12:40:51 6 Controller: card:1 type:DvbT is available priority:1 #users:0 same transponder:False
    2007-10-08 12:40:51 6 Controller: found 1 available
    2007-10-08 12:40:51 6 Scheduler : record on free card:1 priority:1
    2007-10-08 12:40:51 6 Scheduler : record, first tune to channel
    2007-10-08 12:40:51 5 card:Tune 1 to Kanal 5
    2007-10-08 12:40:51 5 card:user:scheduler66:1:-1 tune DVBT:tv:Kanal 5 Ltd Kanal 5 Freq:633875 ONID:8945 TSID:1110 SID:1050 PMT:41A FTA:False LCN:10000 BandWidth:8
    2007-10-08 12:40:51 5 dvbt: Tune:DVBT:tv:Kanal 5 Ltd Kanal 5 Freq:633875 ONID:8945 TSID:1110 SID:1050 PMT:41A FTA:False LCN:10000 BandWidth:8

    -----------------------------------------
    cut out log, not interesting

    2007-10-08 12:49:05 B Scheduler : time to record TvDatabase.Channel 2007-10-08 12:49:05-2007-10-08 13:40:00 Våra bästa år
    2007-10-08 12:49:05 B Controller: find free card for channel TV3
    2007-10-08 12:49:05 B Controller: got 1 tuning details for TV3
    2007-10-08 12:49:05 B Controller: channel #1 DVBT:tv:Viasat AB TV3 Freq:634000 ONID:8945 TSID:1110 SID:5340 PMT:14DC FTA:False LCN:10000 BandWidth:8
    2007-10-08 12:49:05 B Controller: card:1 type:DvbT is tuned to different transponder
    2007-10-08 12:49:05 B Controller: card:1 type:DvbT is available priority:-99 #users:1 same transponder:False
    2007-10-08 12:49:05 B Controller: found 1 available
    2007-10-08 12:49:05 B Scheduler : all cards busy, check if any card is already tuned to channel:TvDatabase.Channel
    2007-10-08 12:49:05 B Scheduler : no card is tuned to the correct channel. record on card:1 priority:1
    2007-10-08 12:49:05 B Scheduler : record, first tune to channel
    2007-10-08 12:49:05 9 card:Tune 1 to TV3
    2007-10-08 12:49:05 9 card:user:scheduler67:1:-1 tune DVBT:tv:Viasat AB TV3 Freq:634000 ONID:8945 TSID:1110 SID:5340 PMT:14DC FTA:False LCN:10000 BandWidth:8
    2007-10-08 12:49:05 9 card: to different transponder
    2007-10-08 12:49:05 9 stop subchannel:0 user:scheduler66
    2007-10-08 12:49:05 9 user is scheduler :scheduler66
    2007-10-08 12:49:05 9 removing schedule with id:66
    2007-10-08 12:49:05 C recList:confused:topRecordingSchedule66
    2007-10-08 12:49:05 C Scheduler : stop record TvDatabase.Channel 2007-10-08 12:40:56-2007-10-08 12:55:00 MacGyver
    2007-10-08 12:49:05 8 card: StopRecording 1
    2007-10-08 12:49:05 8 card: StopRecording for card:1
    2007-10-08 12:49:05 8 subch:0 StopRecord()
    2007-10-08 12:49:05 8 card: remove user:scheduler66 sub:0

    LOG--------------------------------------------------------------------------------------
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Interesting..

    So in ur case, the corrupted TS recording occurs simply b/c u have two b2b recordings og the SAME transponder but both channels are encrypted, and your card has a CAM limit of 1 channel.
    Is this observation correct ?

    If yes, could u submit a simple and complete log of this.
    Just use the SQL I provided in this thread to quickly add short schedules without having to open MP gui :)

    The case of recording b2b channels on diff. transponders works for u I guess ? both as FTA and ENCRYPTED ?
    I assume it's YES. b/c the limiting factor here is the transponder on not the CAM limit.

    u can always check out this site;
    http://en.kingofsat.net/sat-sirius3.php

    It will show u what channels are on what transponders.
    Maybe not on dvb-t :(

    Otherwise, look at "Freq" , if they are the same then they are on the same transponder.

    When looking at the logs u can see that the previous rec. is stopped...
    2007-10-08 12:49:05 9 user is scheduler :scheduler66

    But I cant see where rec. 2 starts. It should do so right after the above "user is scheduler" line.

    /Gibman
     

    lar282

    Portal Pro
    July 11, 2004
    414
    2
    well, if the frequency IS the factor of the "same transponder" then they ARE on differernt transponder.
    Freq:633875 and Freq:634000
    I just thought the TSID:1110 was the factor.

    Yes it has only happended when rec A and B when they are both scrambled and diff freq but same TSID. I will test more and then post logs.

    http://en.kingofsat.net/sat-sirius3.php
    Above wont help on dvb-t but I have my own list. BUT simple looking at the line
    channel #1 DVBT:tv:Viasat AB TV3 Freq:634000 ONID:8945 TSID:1110 SID:5340 PMT:14DC FTA:False LCN:10000 BandWidth:8
    Should give us all the info one needs.

    rec2 starts way down.No errors, looks good

    I will try more and get back to u.


    //Lasse
     

    SciDoctor

    Retired Team Member
  • Premium Supporter
  • February 2, 2005
    1,465
    139
    England
    The fix is broken in the latest SVNs 16228 log supplied

    The schedule that is removed seems to be set reset as schedule '0' and persists in stopping the next scedule from actioning.

    Complete bedlam ensues and multiple small files are produced as schedules start/stop/start/stop.

    The only cure is to stop the service and restart.
     

    Users who are viewing this thread

    Top Bottom