Posts: 374
Joined: Jul 2011
Reputation:
20
Thanks for reporting. Can you check for every single step, if the backend behaves as expected? (using MythWeb, you can find out what is being recorded currently using which tuner)
Also, give the backend a couple of seconds to free tuners after stopping recordings.
A bit on the background:
The xbmc screens or the MythTV addon do not save tuner states. For new recordings, we pass a dataset to the backend with the channelid and the starttime. We have no influence on the tuner. That is selected by the backend.
For LiveTV, we do request a list of tuners and try to find the next free one. The algorithm should be more or less the same than MythFrontend uses. Its a bit tricky when it comes to virtual tuners. We have to make sure that one virtual tuner is not locked to a transponder multiplex by a second virtual tuner (representing the same hw tuner).
I can test this here as well, when I have more time.
Posts: 81
Joined: Feb 2013
Reputation:
1
Actually, in MythTV, whenever you watch Live TV, it is really a recording, and a new recording starts for every TV show listed in the guide. It will even do metadata lookups and commercial skipping if you've set those as defaults. It does this whenever you watch Live TV whether you ask it to record or not. The recordings are saved in whatever you have set up to be the Live TV folder in the backend setup (Uses the Default Folder if you haven't set anything up).
MythFrontend will pretty much do what you suggest by default if you start an "instant" recording in it. I'm not sure why the cmyth addon doesn't work the same way, but in theory it could. All MythFrontend really does is move the recording file from the Live TV folder to the regular recoding folder (actually it may just change something in the mysql database and not move the file at all). In fact, whatever you watch in Live TV stays in the recording folder for whatever period is set up in the backend, I believe it defaults to one day but could be as long as you want. You can move it to your regular recordings in the frontend if you want any time before it is deleted. I think Mythweb can do the same thing. So the cmyth "instant" recording is actually a different option that you don't really have in MythFrontend, although you could set up a timer based recording - it's not a one button kind of thing. What you're asking for is done by default if you just don't turn off the Live TV or change the channel.
I do agree that it would be a good option to be able to invoke the "record until the end of the show" type recording in cmyth, but I've seen enough times when the guide is wrong that the 90 minute instant recording option is useful also.
Posts: 112
Joined: Jan 2012
Reputation:
3
Yeah actually when I first clicked the record button during live tv I just figured that it would do as you mentioned and it would flag it to be moved from the livetv storage group to the recordings group and then additionally it would finish the recording out unless stopped. In my ideal world I could watch live tv, click record because I want to keep what I am watching, change to a different channel (using my second tuner then) while the original show kept recording on the first tuner and then moved to recordings storage group when complete. I was a little surprised when it just kept on recording past the end. I guess it does like cfetzer said a few posts ago and it passes a channel number and a time block (except the time block that it ends on is spoofed by adding the instant recording duration vice the epg ending time).
So I cant use the record button or the record from tv channels screen as it tends to tie up my tuner way past the end of a show. I have also tried to go to the EPG screen and then click on the current running show and select record. This in theory should create a timer for the current playing show that ends on EPG end. The problem is that that doesn't work either. If you start live tv on a channel, go to EPG screen and then click record for the same channel, and then the end result is everything just stops and leaves you sitting with no livetv and no recording and you get a timer stuck in mythtv that cannot be deleted unless you restart the backend. Ouch, this may be a bug. I just discovered it.
Posts: 374
Joined: Jul 2011
Reputation:
20
2013-04-28, 22:06
(This post was last modified: 2013-04-28, 22:06 by fetzerch.)
Hm. Actually for "instant recordings", the current codebase should already record until the end of the current show.
The default length (from Settings->Live TV->Recordings) is only a fallback for or add-on. It should be used only in case we cannot find a corresponding EPG entry and cannot determine the length of the show.
It used to work, so I have to check what's going on here.
There's indeed a bug in MythTV that can lock up the backend when a recording and Live TV are in conflict.
As a workaround, we added a 'Conflict handling' setting. The default will prefer recordings and stop Live TV to make sure that you don't miss a recording.
However I fear, this introduced a new issue for 'instant recordings'. If you press the recording button in Live TV, the player stops. You have to wait a couple of seconds until you can watch the channel again. Otherwise the backend will be locked again. MythFrontend handles instant recordings exactly as RipT explained. In the add-on, we kept it simpler and basically just add a new timer. I know that this needs to be fixed, but it's quite some effort, so it will take some time.
Posts: 16
Joined: Dec 2012
Reputation:
0
Is it possible to compile and load the 1.7.x cMyth plugin branch on top of XBMC 12.1?
Or do I have to rebase my entire frontend to the XBMC (13.x) development branch?
I am currently running OpenELEC 3.0.1 which has cMyth 1.6.9 preinstalled.
I would really like to have the MythTV commercial skip features enabled, but stay on a stable base.
Thanks for all the work you guys are doing on this plugin.
Posts: 3,544
Joined: Mar 2010
Reputation:
119
Commercial skip is Gotham only unfortunately.
Posts: 4
Joined: May 2008
Reputation:
0
Hullo! I wasn't sure where to post this so I thought I'd just let people here know about an issue I have encountered. The code uses int8's to represent the priority of recordings, but this only has a range of -127 to 128. This seems adequate but MythTV can actually have priority values much higher than this due to a combination of per recording, per channel and per input priorities.
On my system 1.6.10 runs, but fails to retrieve any recordings or upcoming recordings as it throws an out of range error. I have been able to resolve this on my local systems by changing all the priority variables in socket.c to int32, as in MythTV, but this is obviously a bit of a hack.
Thanks for the amazing work on MythTV integration!
Posts: 16
Joined: Dec 2012
Reputation:
0
My XBMC-13.0-Alpha3 and cMyth 1.7.11 plugin load (for commercial skipping) is pretty nice!
It would be a keeper if I had the ability to disable auto-skip globally and/or on a per-program basis.
Could someone confirm this functionality has not yet been implemented, or point me to how this is done?
Thanks!
Posts: 122
Joined: Jan 2012
Reputation:
0
I disable commercial detection in Myth when programming the recording for channels that don't have commercials. You can do this on a per program basis or disable the detection globally at the source.
Posts: 3,544
Joined: Mar 2010
Reputation:
119
2013-05-06, 04:46
(This post was last modified: 2013-05-06, 05:10 by teeedubb.)
Never mind, tapatalk is acting strange...