Opened 14 years ago

Closed 14 years ago

#8580 closed enhancement (fixed)

Add a Demo Tuner type

Reported by: johnnyj <johnnyjboss@…> Owned by: Nigel
Priority: minor Milestone: 0.24
Component: MythTV - General Version: Master Head
Severity: medium Keywords: demo tuner, dummy tuner
Cc: Ticket locked: no

Description

This patch will add a Demo Tuner that can be used to simulate a tuner when a physical tuner is not present. I wrote this because I mainly develop on a laptop and I don't have extra tuner hardware handy. I know that this functionality can be achieved by inserting things into the mysql and using the MPEG tuner with file:/ appended to a file path. What I've done is to make it as easy of entering the path to the file (now without the file:/) on the Demo Tuner type. My hope is that this will shorten the time to start development for other new MythTv? developers. (and wannabe's like myself) I also imagine this could be used to include a small or informative demo video with MythTv? derivative Live Cd image. In this way a 'working' tuner could be present out of the box.

Attachments (2)

mythtv-add_demo_tuner.patch (7.1 KB) - added by johnnyj <johnnyjboss@…> 14 years ago.
Patch against trunk to add Demo Tuner
mythtv-add_demo_tuner.2.patch (6.6 KB) - added by johnnyjboss@… 14 years ago.
updated patch for #ifdef USING_IVTV

Download all attachments as: .zip

Change History (8)

Changed 14 years ago by johnnyj <johnnyjboss@…>

Attachment: mythtv-add_demo_tuner.patch added

Patch against trunk to add Demo Tuner

comment:1 Changed 14 years ago by Stuart Auchterlonie

Milestone: unknown0.24

comment:2 Changed 14 years ago by Nigel

Good idea! Just a few minor problems ... the backend did this for me:

2010-07-20 22:22:43.020 TVRec(1): Changing from None to WatchingLiveTV
2010-07-20 22:22:43.022 TVRec(1) Error: Problem finding starting channel, setting to default of '3'.
2010-07-20 22:22:43.022 ChannelBase(1): IsTunable(Television,3) Requested non-existant input 'Television':'-1' 
2010-07-20 22:22:43.041 ChannelBase(1) Error: Setting start channel '3' failed, 
			and we failed to find any suitible channels on any input.
2010-07-20 22:22:43.042 TVRec(1): HW Tuner: 1->0
2010-07-20 22:22:43.056 LoadFromScheduler(): Error, called from backend.
2010-07-20 22:22:43.059 TVRec(1) Error: GetProgramRingBufferForLiveTV()
			ProgramInfo is invalid.
ProgramInfo(): channame() startts(Tue Jul 20 22:22:43 2010) endts(Tue Jul 20 22:22:43 2010)
             recstartts(Tue Jul 20 22:22:43 2010) recendts(Tue Jul 20 22:22:43 2010)
             title()
2010-07-20 22:22:43.168 TVRec(1) Error: Need DEMO recorder, but compiled without DEMO support!
2010-07-20 22:22:43.168 TVRec(1) Error: Failed to start recorder!
				  Tuning request was Program(no) channel(3) input(Television) flags(LiveTV,)

2010-07-20 22:22:43.171 Finished recording : channel 4294967295
2010-07-20 22:22:43.173 TVRec(1): Changing from WatchingLiveTV to None

which is a mixture of me not creating any channels for the initial "tuning" to use, and some platforms not supporting IVTV (because they don't have V4L). The former could be worked around with extra code. The latter by either disabling DEMO in mythtv-setup is #ifndef USING_IVTV, or by creating a new recorder just for file:// streams to do it properly?

Changed 14 years ago by johnnyjboss@…

updated patch for #ifdef USING_IVTV

comment:3 Changed 14 years ago by anonymous

I decided to use the #ifdef USING_IVTV since this is actually using the MPEGRecorder.

If the demand for this DEMO Tuner is high enough I would consider attempting to rewrite it to be Mac friendly. (Or non IVTV friendly, whatever)

comment:4 Changed 14 years ago by robertm

Owner: changed from Isaac Richards to Nigel
Status: newassigned

Think Nigel is looking at this, please feel free to unassign if I am mistaken.

comment:5 Changed 14 years ago by Nigel

(In [25554]) Allow IMPORT testing recorder to import existing prerecorded files. This means simple testing can occur with a static file without having to setup MythEvents? and an external program or script to create 'em.

Also tarts up the capture card UI to let you specify the file, and gives some rough info about it. (I hope to change the dodgy HTTPRequest::TestMimeType?() to something

a little more accurate, like seting up a decoder to parse properly.)

Similarly, adds some UI to support a DEMO card type, which uses the better featured MPEG file:/ parser/streamer/looper, on supported OSs. Refs #8580.

comment:6 Changed 14 years ago by Nigel

Resolution: fixed
Status: assignedclosed

(In [25691]) Add DEMO tuner type. Thanks Johnny. Closes #8580.

Note: See TracTickets for help on using tickets.