[mythtv] Problems with v4l LiveTV in current svn

Wendy Seltzer wseltzer at gmail.com
Fri Sep 30 02:13:31 UTC 2005


Thanks Daniel,

Part-way there -- no warning about the lock, but still can't change channels
on the framegrabber.

(re-send because the logs bounced from the list)

>
> On 9/29/05, Daniel Kristjansson < danielk at cuymedia.net> wrote:
> >
> > On Thu, 2005-09-29 at 00:29 -0400, Wendy Seltzer wrote:
> > > If I switch to "watch live tv" with a WinTV v4l card configured first,
> > > current svn gives the pop-up "You should have gotten a channel lock by
> > > now..." even while the channel is playing fine.
> > This should be fixed in SVN now...
>
>
>  Yes, no longer get the erroneous warning.

>
> > It then fails to change to a different channel on the same card,
> > > giving first a blank screen, then "Error was encountered while
> > > displaying video," then a segfault.
> > Ouch!
> > I can't figure out what is wrong from the backtrace, but
> > I'll do some extensive testing with my PVR card.
>
>
>   This one still happens. My second card is an old WinTV Bt878
framegrabber. (It's what I had lying around when I bought the HD-3000). It
manages to change channel just fine for scheduled recordings, but is now
unable to do so while watching Live TV (only for testing purposes, you
understand).

>
> > Here's a bit of backend log -v siparser,channel,record
> > > 2005-09-29 00:15: 11.622 TVRec(1): Starting Recorder
> > > 2005-09-29 00:15:11.640 TVRec(1): Using profile 'Live TV' to record
> > > 2005-09-29 00:15:11.650 Unknown video codec
> > > 2005-09-29 00:15:11.650 Please go into the TV Settings, Recording
> > > Profiles and
> > > 2005-09-29 00:15:11.651 setup the four 'Software Encoders' profiles.
> > > 2005-09-29 00:15:11.651 Assuming RTjpeg for now.
> > > 2005-09-29 00:15:11.651 NVR: Error, unknown audio codec
> > Is this the log for a PVR-x50 card or a frame grabber? Perhaps
> > this explains the segfault too...
>
>
>   Strange. I had configured the 4 profiles. Now it's not giving me that
part of the message.

It reliably segfaults if I leave it at the "Error was encountered while
displaying video" screen I get on failed attempt to change channels.

Here's another set of logs:

Actions: enter LiveTV, 1st channel displays fine. Select another channel.
Hangs for a while on the last frame, then gives "Error was encountered while
displaying video." If I leave it there, it segfaults.

I should add that I'm "changing channels" with an external tuner and script,
so the Bt878 is always looking at Channel 3.

>
> [New Thread -1354859600 (LWP 32543)]
> 2005-09-29 20:58:10.438 MainServer::HandleAnnounce Playback
> 2005-09-29 20:58:10.438 adding: chinch as a client (events: 0)
> 2005-09-29 20:58:10.445 adding: chinch as a remote ringbuffer
> 2005-09-29 20:58:10.457 TVRec(1): Changing from None to WatchingLiveTV
> 2005-09-29 20:58:10.457 TVRec(1):
> ClearFlags(FrontendReady,CancelNextRecording,) -> RunMainLoop,
> 2005-09-29 20:58:10.457 TVRec(1): SetFlags(AskAllowRecording,) ->
> RunMainLoop,AskAllowRecording,
> 2005-09-29 20:58:10.457 TVRec(1): Request: Program(no) channel() input()
> flags(LiveTV,)
> 2005-09-29 20:58:10.457 TVRec(1):
> ClearFlags(WaitingForSIParser,SIParserRunning,) ->
> RunMainLoop,AskAllowRecording,
> 2005-09-29 20:58:10.457 TVRec(1):
> ClearFlags(WaitingForSignal,SignalMonitorRunning,) ->
> RunMainLoop,AskAllowRecording,
> 2005-09-29 20:58:10.457 TVRec(1): ClearFlags(PENDINGACTIONS,) ->
> RunMainLoop,AskAllowRecording,
> 2005-09-29 20:58:10.506 Channel(/dev/video0)::SwitchToInput(in 0)
> 2005-09-29 20:58:10.519 Channel(/dev/video0)::SwitchToInput() setting
> video mode to NTSC
> 2005-09-29 20:58:10.601 Channel(/dev/video0)::SetChannelByString(21)
> 2005-09-29 20:58:10.602 ChannelBase(/dev/video0)::SetCachedATSCInfo():
> RESET
> 2005-09-29 20:58:10.605 External channel change: /usr/local/bin/myth-
> change-chan.sh 21
> 2005-09-29 20:58:10.610 Waiting for External Tuning program to exit
> 2005-09-29 20:58:11.612 ret_pid(0) child(32544) status(0x0)
> 2005-09-29 20:58:12.614 ret_pid(32544) child(32544) status(0x0)
> 2005-09-29 20:58:12.614 External Tuning program no longer running
> 2005-09-29 20:58:12.614 External Tuning program exited with no error
> 2005-09-29 20:58:12.614 ChannelBase(/dev/video0)::SetCachedATSCInfo(21):
> 2_1
> 2005-09-29 20:58:12.618 TVRec(1): SetFlags(NeedToStartRecorder,) ->
> RunMainLoop,AskAllowRecording,NeedToStartRecorder,
> 2005-09-29 20:58:12.618 TVRec(1): Starting Recorder
> 2005-09-29 20:58:12.654 TVRec(1): Using profile 'Live TV' to record
> 2005-09-29 20:58:13.293 SetRecording(0x0)
> [New Thread -1384375376 (LWP 32553)]
> [New Thread -1395074128 (LWP 32554)]
> [New Thread -1403462736 (LWP 32555)]
> [New Thread -1411851344 (LWP 32556)]
> strange error flushing buffer ...
> 2005-09-29 20:58:13.418 TVRec(1): SetFlags(RecorderRunning,) ->
> RunMainLoop,AskAllowRecording,NeedToStartRecorder,RecorderRunning,
> 2005-09-29 20:58:13.419 TVRec(1): ClearFlags(NeedToStartRecorder,) ->
> RunMainLoop,AskAllowRecording,RecorderRunning,
> 2005-09-29 20:58:14.521 TVRec(1): SetFlags(FrontendReady,) ->
> FrontendReady,RunMainLoop,AskAllowRecording,RecorderRunning,
> 2005-09-29 20:58:25.667 TVRec(1): ClearFlags(0x40000000) ->
> FrontendReady,RunMainLoop,AskAllowRecording,RecorderRunning,
> 2005-09-29 20:58:25.667 TVRec(1): Request: Program(no) channel(13) input()
> flags(LiveTV,)
> 2005-09-29 20:58:25.667 TVRec(1):
> ClearFlags(WaitingForSIParser,SIParserRunning,) ->
> FrontendReady,RunMainLoop,AskAllowRecording,RecorderRunning,
> 2005-09-29 20:58:25.667 TVRec(1):
> ClearFlags(WaitingForSignal,SignalMonitorRunning,) ->
> FrontendReady,RunMainLoop,AskAllowRecording,RecorderRunning,
> 2005-09-29 20:58:25.667 TVRec(1): ClearFlags(PENDINGACTIONS,) ->
> FrontendReady,RunMainLoop,AskAllowRecording,RecorderRunning,
> 2005-09-29 20:58:25.667 TVRec(1): SetFlags(WaitingForRecPause,) ->
> FrontendReady,RunMainLoop,AskAllowRecording,WaitingForRecPause,RecorderRunning,
> 2005-09-29 20:59:00.694 RingBuffer: Couldn't read data from the capture
> card in 15 seconds. Stopping.
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1384375376 (LWP 32553)]
> 0xffffff00 in ?? ()
> (gdb)
>
>  backtrace too large for the list, available at <
http://wendy.seltzer.org/mythtv/bt-0929.txt>

--
Wendy Seltzer
http://wendy.seltzer.org/blog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20050929/6a770d40/attachment.htm


More information about the mythtv-dev mailing list