Back To Back recordings fail on DVB-T | Page 3

Discussion in 'pre 1.0 RC1' started by lar282, September 19, 2007.

  1. lar282

    lar282 Portal Pro

    Joined:
    July 11, 2004
    Messages:
    414
    Likes Received:
    2
    Ratings:
    +2 / 0
    ok, so its not in svn.I'll try this weekend.thanks gibman

    lsse


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. lar282

    lar282 Portal Pro

    Joined:
    July 11, 2004
    Messages:
    414
    Likes Received:
    2
    Ratings:
    +2 / 0
    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
     
  4. gibman
    • Premium Supporter

    gibman Retired Team Member

    Joined:
    October 4, 2006
    Messages:
    2,998
    Likes Received:
    1,321
    Occupation:
    Developer
    Location:
    Aarhus
    Ratings:
    +1,372 / 0
    Home Country:
    Denmark Denmark
    Kewl.
    I'll put it into SVN tomorrow :)

    /Gibman
     
  5. lar282

    lar282 Portal Pro

    Joined:
    July 11, 2004
    Messages:
    414
    Likes Received:
    2
    Ratings:
    +2 / 0
    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()
     
  6. gibman
    • Premium Supporter

    gibman Retired Team Member

    Joined:
    October 4, 2006
    Messages:
    2,998
    Likes Received:
    1,321
    Occupation:
    Developer
    Location:
    Aarhus
    Ratings:
    +1,372 / 0
    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
     
  7. lar282

    lar282 Portal Pro

    Joined:
    July 11, 2004
    Messages:
    414
    Likes Received:
    2
    Ratings:
    +2 / 0
    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--------------------------------------------------------------------------------------
     
  8. gibman
    • Premium Supporter

    gibman Retired Team Member

    Joined:
    October 4, 2006
    Messages:
    2,998
    Likes Received:
    1,321
    Occupation:
    Developer
    Location:
    Aarhus
    Ratings:
    +1,372 / 0
    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
     
  9. lar282

    lar282 Portal Pro

    Joined:
    July 11, 2004
    Messages:
    414
    Likes Received:
    2
    Ratings:
    +2 / 0
    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
     
  10. SciDoctor
    • Premium Supporter

    SciDoctor Retired Team Member

    Joined:
    February 2, 2005
    Messages:
    1,465
    Likes Received:
    128
    Location:
    England
    Ratings:
    +138 / 0
    Show System Specs
    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.
     
  11. lar282

    lar282 Portal Pro

    Joined:
    July 11, 2004
    Messages:
    414
    Likes Received:
    2
    Ratings:
    +2 / 0
    thats not good

    didn't update to latest yet,(thank god)
    //Lasse
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!