
mitchell.gore at gmail
Jun 23, 2009, 8:33 AM
Post #5 of 10
(860 views)
Permalink
|
> Patch may fix that, because there's definitely no PAT which is what Myth is > waiting for. I can't say it will fix it for sure without seeing hex dumps > of a bunch of packets, and I'm not even sure I'd be able to see for sure > then, because I wrote this patch like 2 years ago. > > What the patch actually does is looks at every TS packet coming in and > finds a sync byte indicating the start of a PES packet, which contains the > type of stream in the PID. If the stream type is an audio or video type, it > save the PID and once it gets both it creates a PAT and PMT with the > information and injects it into the stream which Myth finds and "locks" and > carries on. After Myth locks, no further packets are inspected. I am > relatively certain that this procedure will work for you, assuming the file > you capture in test-mpeg2 plays in mplayer, because it just plays the first > 2 streams it finds. > > So if you don't understand the technical aspect of what I said, the answer > is "It almost certainly will work". :) > Well I applyed the patch and compiled mythtv. Good new, it compiled, bad news, not any difference in functionality. Here is the log: mythbackend -v record,playback,channel ~~~CUT~~~ 2009-06-23 10:29:49.954 TVRec(10): StartRecording(Delirious) 2009-06-23 10:29:49.955 TVRec(10): ASK_RECORDING 10 0 0 0 2009-06-23 10:29:50.200 TVRec(10): StartedRecording(0xb0f0a870) fn(/tv/d1/4552_20090623103000.mpg) 2009-06-23 10:29:50.200 TVRec(10): ClearFlags(CancelNextRecording,) -> RunMainLoop, 2009-06-23 10:29:50.200 TVRec(10): Changing from None to Watching RecordingOnly 2009-06-23 10:29:50.200 TVRec(10): ClearFlags(FrontendReady,CancelNextRecording,) -> RunMainLoop, 2009-06-23 10:29:50.200 TVRec(10): Request: Program(yes) channel() input() flags(Recording,) 2009-06-23 10:29:50.202 TVRec(10): HW Tuner: 10->10 2009-06-23 10:29:50.202 TVRec(10): ClearFlags(PENDINGACTIONS,) -> RunMainLoop, 2009-06-23 10:29:50.202 TVRec(10): No recorder yet, calling TuningFrequency 2009-06-23 10:29:50.202 FireChan(0022CECC76B00000): Open() 2009-06-23 10:29:50.204 FireChan(0022CECC76B00000): SetChannelByString(552) 2009-06-23 10:29:50.207 External channel change: sa8300_ch 552 2009-06-23 10:29:50.211 Waiting for External Tuning program to exit Changing channel 552 2009-06-23 10:29:50.242 ret_pid(1660) child(1660) status(0x0) 2009-06-23 10:29:50.242 External Tuning program no longer running 2009-06-23 10:29:50.242 External Tuning program exited with no error 2009-06-23 10:29:50.242 FireChan(0022CECC76B00000): SetChannelByString(552) success 2009-06-23 10:29:50.242 TVRec(10): Starting Signal Monitor 2009-06-23 10:29:50.242 TVRec(10): SetupSignalMonitor(1, 0) 2009-06-23 10:29:50.242 FireChan(0022CECC76B00000): Open() 2009-06-23 10:29:50.242 FireSM(0022CECC76B00000): ctor 2009-06-23 10:29:50.242 SM(0022CECC76B00000)::AddFlags: Seen() Match() Wait(Sig,) 2009-06-23 10:29:50.242 FireDev(0022CECC76B00000): Requesting STB Power State 2009-06-23 10:29:50.244 FireDev(0022CECC76B00000): STB Power State: On 2009-06-23 10:29:50.244 TVRec(10): Signal monitor successfully created 2009-06-23 10:29:50.244 TVRec(10): Setting up table monitoring. 2009-06-23 10:29:50.247 Using profile 'Live TV' to record 2009-06-23 10:29:50.247 TVRec(10): MPEG program number: 1 2009-06-23 10:29:50.248 DTVSM(0022CECC76B00000)::SetProgramNumber(1): 2009-06-23 10:29:50.248 SM(0022CECC76B00000)::RemoveFlags: Seen(PMT,Crypt,) Match(PMT,Crypt,) Wait() 2009-06-23 10:29:50.248 SM(0022CECC76B00000)::AddFlags: Seen() Match() Wait(PMT,) 2009-06-23 10:29:50.248 SM(0022CECC76B00000)::AddFlags: Seen() Match() Wait(PAT,PMT,Pos,) 2009-06-23 10:29:50.248 TVRec(10): Successfully set up MPEG table monitoring. 2009-06-23 10:29:50.248 SM(0022CECC76B00000)::Start: begin 2009-06-23 10:29:50.248 FireDev(0022CECC76B00000): Requesting STB Power State 2009-06-23 10:29:50.248 SM(0022CECC76B00000)::Start: end 2009-06-23 10:29:50.248 TVRec(10): SetFlags(SignalMonitorRunning,) -> RunMainLoop,SignalMonitorRunning, 2009-06-23 10:29:50.248 TVRec(10): ClearFlags(WaitingForSignal,) -> RunMainLoop,SignalMonitorRunning, 2009-06-23 10:29:50.248 TVRec(10): SetFlags(WaitingForSignal,) -> RunMainLoop,WaitingForSignal,SignalMonitorRunning, 2009-06-23 10:29:50.248 TVRec(10): ClearFlags(NeedToStartRecorder,) -> RunMainLoop,WaitingForSignal,SignalMonitorRunning, 2009-06-23 10:29:50.248 TVRec(10): SetFlags(NeedToStartRecorder,) -> RunMainLoop,WaitingForSignal,NeedToStartRecorder,SignalMonitorRunning, 2009-06-23 10:29:50.250 FireDev(0022CECC76B00000): STB Power State: On 2009-06-23 10:29:50.250 SM(0022CECC76B00000)::AddFlags: Seen(STB,) Match(STB,) Wait() 2009-06-23 10:29:50.250 FireSM(0022CECC76B00000): RunTableMonitor(): -- begin 2009-06-23 10:29:50.250 LFireDev(0022CECC76B00000): Starting Port Handler Thread 2009-06-23 10:29:50.250 LFireDev(0022CECC76B00000): Starting Port Handler Thread -- locked 2009-06-23 10:29:50.250 LFireDev(0022CECC76B00000): OpenPort() 2009-06-23 10:29:50.250 FireSM(0022CECC76B00000): UpdateValues() -- Waiting for table monitor to start 2009-06-23 10:29:50.250 FireSM(0022CECC76B00000): UpdateValues() -- Table monitor started 2009-06-23 10:29:50.251 LFireDev(0022CECC76B00000): OpenPort() -- got lock 2009-06-23 10:29:50.251 FireDev(0022CECC76B00000): AddListener() 1 2009-06-23 10:29:50.251 LFireDev(0022CECC76B00000): Opening P2P connection libiec61883 warning: Overlayed connection on channel 1. You may need to manually set the channel on the receiving node. 2009-06-23 10:29:50.259 LFireDev(0022CECC76B00000): OpenAVStream 2009-06-23 10:29:50.259 LFireDev(0022CECC76B00000): Opening A/V stream object 2009-06-23 10:29:50.259 LFireDev(0022CECC76B00000): Buffered packets 2000 (8000 KB) 2009-06-23 10:29:50.259 LFireDev(0022CECC76B00000): Starting A/V streaming -- really 2009-06-23 10:29:50.266 LFireDev(0022CECC76B00000): Starting A/V streaming -- done 2009-06-23 10:29:50.267 LFireDev(0022CECC76B00000), Error: Dropped 349831168 TS packets 2009-06-23 10:29:50.278 AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 15 min 2009-06-23 10:29:50.279 Started recording: Delirious: channel 4552 on cardid 10, sourceid 4 2009-06-23 10:29:50.281 scheduler: Started recording: Delirious: channel 4552 on cardid 10, sourceid 4 So where do i go from here? -- Mitchell
|