• 1
  • 17
  • 18
  • 19(current)
  • 20
  • 21
  • 108
pvr.mythtv add-on
(2014-09-08, 01:49)janbar Wrote:
(2014-09-08, 01:07)janbar Wrote:
(2014-09-07, 18:33)pyrodex Wrote: I've turned on debugging and watched a show with three commercial breaks this morning. I updated the repo this morning and restarted XBMC for a fresh log.

Few notes...

The show started about 6 minutes into the program on playback, I have this recording start 1 minute early and end 1 minute late.
I had a few times the EDL cut early so I skipped back to watch the show and you will see that but I never skipped forward through the commercials
I stopped the show when the credits came on at the end.
I paused the show for about 5-10 minutes to take a phone call Smile.


Here is the debug log from XBMC - https://www.dropbox.com/s/bw53p15t125sxr2/xbmc.log?dl=0
Here is the file I watched:

Code:
General
ID                                       : 23405 (0x5B6D)
Complete name                            : 2866_20140907115900.mpg
Format                                   : MPEG-TS
File size                                : 1.77 GiB
Duration                                 : 31mn 58s
Overall bit rate mode                    : Variable
Overall bit rate                         : 7 932 Kbps
Movie name                               : Phineas and Ferb
Law rating                               : TV-Y7 (FV)

Video
ID                                       : 3905 (0xF41)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@High
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : Variable
Codec ID                                 : 2
Duration                                 : 31mn 58s
Bit rate mode                            : Variable
Bit rate                                 : 7 152 Kbps
Maximum bit rate                         : 20.0 Mbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 59.940 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.129
Stream size                              : 1.60 GiB (90%)

Audio #1
ID                                       : 3906 (0xF42)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : 129
Duration                                 : 31mn 58s
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Delay relative to video                  : -256ms
Stream size                              : 43.9 MiB (2%)
Language                                 : English

Audio #2
ID                                       : 3907 (0xF43)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : 129
Duration                                 : 31mn 58s
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Delay relative to video                  : -235ms
Stream size                              : 43.9 MiB (2%)
Language                                 : Spanish

Text #1
ID                                       : 3905 (0xF41)-CC1
Menu ID                                  : 1 (0x1)
Format                                   : EIA-608
Muxing mode                              : A/53 / DTVCC Transport
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 31mn 58s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)

Text #2
ID                                       : 3905 (0xF41)-CC3
Menu ID                                  : 1 (0x1)
Format                                   : EIA-608
Muxing mode                              : A/53 / DTVCC Transport
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 31mn 58s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)

Text #3
ID                                       : 3905 (0xF41)-1
Menu ID                                  : 1 (0x1)
Format                                   : EIA-708
Muxing mode                              : A/53 / DTVCC Transport
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 31mn 58s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)

Text #4
ID                                       : 3905 (0xF41)-2
Menu ID                                  : 1 (0x1)
Format                                   : EIA-708
Muxing mode                              : A/53 / DTVCC Transport
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 31mn 58s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)

Menu
ID                                       : 3904 (0xF40)
Menu ID                                  : 1 (0x1)
Duration                                 : 31mn 58s
List                                     : 3905 (0xF41) (MPEG Video) / 3906 (0xF42) (AC-3, English) / 3907 (0xF43) (AC-3, Spanish)
Title                                    : Phineas and Ferb
Language                                 :  / English / Spanish
Law rating                               : TV-Y7 (FV)

Hi, I checked log and didn't see any try to play the recording using xbmc player. I seen only an upnp transfer:

UPnP: Building didl for object 'pvr://recordings/Defau...

The EDL can only be handle by the player of xbmc running the addon. UPNP transfer only data; The remote point has no knowledge about EDL.

EDIT: Sorry , i opened the bad log Wink !!

Yeeh the good log now:

11:29:35 T:139986724706048 DEBUG: AddOnLog: MythTV PVR Client: GetRecordingEdl: AV props: Frame Rate = 59.959

11:29:35 T:139986724706048 DEBUG: AddOnLog: MythTV PVR Client: GetRecordingEdl: COMBREAK 0.000 - 308.860
11:29:35 T:139986724706048 DEBUG: AddOnLog: MythTV PVR Client: GetRecordingEdl: COMBREAK 608.163 - 744.022
11:29:35 T:139986724706048 DEBUG: AddOnLog: MythTV PVR Client: GetRecordingEdl: COMBREAK 1011.521 - 1131.419

If the show start before and end after the program then the problem could come from commercial detection. The first skip is from 0' to 5'5": it seems no issue about framerate. Is reading with mythfrontend skip correctly ? If yes then can you send me a cut or the full video to test it ?
A simple test is to create a cut using ui mythfrontend and then checking the show.

I deleted the file last night =\

Let me test one tonight and I'll capture the log again and upload the entire file to dropbox for you to pull down and import and play around with on your side.
HTPC(s): All running LibreELEC
  • AMD 2200G APU on Gigabyte AB350N-Gaming WIFI-CF
  • RPI3 x2 | RPI2 x2
NAS: FreeNAS (Latest Stable) | NFS/CIFS
Reply
@janbar

Here is the show today I watched. All the relevant data is below.

Background:

Normal recording, no start/end early and was a 30 minute show.
I didn't touch the remote the entire time during playback.
Start of skip happened semi early before I'd expect or seen in the past with the old cmth.
End of skip happened way too early and I had about another minute or so of commercials left before the show actually came back on air.

Log - https://dl.dropboxusercontent.com/u/207349/xbmc.log
Show - https://www.dropbox.com/s/vvyg8bvwsms4ev...0.mpg?dl=0
Mediainfo

Code:
General
ID                                       : 23311 (0x5B0F)
Complete name                            : 2755_20140904113000.mpg
Format                                   : MPEG-TS
File size                                : 1.93 GiB
Duration                                 : 29mn 58s
Overall bit rate mode                    : Variable
Overall bit rate                         : 9 215 Kbps
Law rating                               : TV-G

Video
ID                                       : 1409 (0x581)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@High
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : Variable
Format settings, picture structure       : Frame
Codec ID                                 : 2
Duration                                 : 29mn 58s
Bit rate mode                            : Variable
Bit rate                                 : 8 372 Kbps
Maximum bit rate                         : 20.0 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 29.970 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.135
Stream size                              : 1.75 GiB (91%)

Audio
ID                                       : 1410 (0x582)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : 129
Duration                                 : 29mn 58s
Bit rate mode                            : Constant
Bit rate                                 : 384 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Delay relative to video                  : -995ms
Stream size                              : 82.3 MiB (4%)
Language                                 : English

Text #1
ID                                       : 1409 (0x581)-CC1
Menu ID                                  : 1 (0x1)
Format                                   : EIA-608
Muxing mode                              : A/53 / DTVCC Transport
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 29mn 58s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)

Text #2
ID                                       : 1409 (0x581)-CC3
Menu ID                                  : 1 (0x1)
Format                                   : EIA-608
Muxing mode                              : A/53 / DTVCC Transport
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 29mn 58s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)

Text #3
ID                                       : 1409 (0x581)-1
Menu ID                                  : 1 (0x1)
Format                                   : EIA-708
Muxing mode                              : A/53 / DTVCC Transport
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 29mn 58s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)

Text #4
ID                                       : 1409 (0x581)-2
Menu ID                                  : 1 (0x1)
Format                                   : EIA-708
Muxing mode                              : A/53 / DTVCC Transport
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 29mn 58s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)

Menu
ID                                       : 1408 (0x580)
Menu ID                                  : 1 (0x1)
Duration                                 : 29mn 58s
List                                     : 1409 (0x581) (MPEG Video) / 1410 (0x582) (AC-3, English)
Language                                 :  / English
Law rating                               : TV-G
HTPC(s): All running LibreELEC
  • AMD 2200G APU on Gigabyte AB350N-Gaming WIFI-CF
  • RPI3 x2 | RPI2 x2
NAS: FreeNAS (Latest Stable) | NFS/CIFS
Reply
(2014-09-08, 07:45)glubbish Wrote:
(2014-09-03, 21:51)janbar Wrote:
(2014-09-03, 20:00)Natronch Wrote: Hi janbar,

thanks a lot for your work. Something that currently prevents me from using this plugin on a daily basis is that i observe picture corruption about every minute. The picture does not stop oder stutter but only builds some blocks and continues to play.

If I skip back and watch the same scene again, it does not happen anymore. If I'm watching some seconds in timeshift (after skipping back) it never happens. This only seems to happen if I am watching near-live.

I suspect that the data from the backend comes late and this now has an effect as the whole stream setup is faster.

Unfortunately, the debug log does not show anything when this happens.

My setup:
mythtv HEAD of 0.27 branch
xbmc HEAD of gotham branch
pvr addon HEAD of gotham branch of your repository

mythbackend is on a separate system and storing its data on btrfs (i suspect this could cause delays)

Are you aware of such an issue or do you have an idea on how to analyze it?

You should have message like "read ahead" in log. Meaning addon cannot read more data and then it wait 100ms. So after few times the timeshift grows and you should no more have the issue. I bold the thing like that.
Otherwise your player could read to fast (bad synchro) because it drop frames with errors: Here it could be due to signal quality.
Finally the backend could be too slow to write data to the disk: btrfs ? Here i use ext4 with mount options below (important !!!):

UUID=1f314843-0ab1-4dee-9e89-562446549eae /local ext4 noatime,nodiratime 0 2

Storage for livetv, recordings etc... are within /local and mount options are "noatime,nodiratime" to avoid update of access time on each read/write operation !!!

I think I am hitting the same problem. (australia east coast)
My live tv is recorded to a non boot drive as: /dev/sdb1 /2tb ext4 noatime,nodiratime 0 0

I get grey blocks filling (usually) the bottom part of the screen, but it can go up to the full screen.
I have no signal issues and its only with livetv not playback
If I pause for a few seconds, then it goes away and does not come back until next time.

P.S I am also a little confused about the updates for gotham, I am using the ppa, do I need to change that or not?
PPA is safe if you use xbmc-gotham. Like i said above i moved the bold branch to gotham.
Using source from github: now the branch master track the new kodi-helix. Please checkout the branch gotham to compile it for gotham. Also i ever provide compiled version of addon for windows and osx64 from my cloud, see post #2 for links.
Reply
@all

Finally i missed the announcement of the release 1.9.22 :Eek

- Fix identifier for DVB-SUBTITLE
- Add setting to enable or disable EDL functionnality
- Add setting to configure grouping for recordings
- Load EIT categories from customized user file
- Merge channels with same source ID
- Fix codec infos after stream parsing (AAC LATM)
- Fix crash when trying to show recording from unattainable slave backend
Reply
Hi Janbar!

Just installed the addon from your PPA on Xbmcuntu 13.2. I am currently recording a NFL game on my backend, and lets say i try to skip and hit basically livetv, it kicks me out to the recordings screen. the cmyth plugin never did that, just stayed at the edge and wouldn't let me skip past it. It seems to if i don't skip then it will play and play and play, but if im not thinking and hit skip forward, well bam it kicks me out of the video

If you need any logs from me, please let me know

Cheers!
Reply
(2014-09-09, 05:34)wyild1 Wrote: Hi Janbar!

Just installed the addon from your PPA on Xbmcuntu 13.2. I am currently recording a NFL game on my backend, and lets say i try to skip and hit basically livetv, it kicks me out to the recordings screen. the cmyth plugin never did that, just stayed at the edge and wouldn't let me skip past it. It seems to if i don't skip then it will play and play and play, but if im not thinking and hit skip forward, well bam it kicks me out of the video

If you need any logs from me, please let me know

Cheers!

Hmmm, the addon has no control on how the player handles the end of the show. You have to know behavior differs between livetv and videos/recordings:
Playing livetv the player will never stop when reading or seeking ahead because the stream grows.
Playing recording (same as video) the player will stop at the end of the show.
Trying your case i checked logs and never the addon breaks the show. The Player call addon to seek (skip forward) to the end of the file, then read last bytes and close !
This behavior has changed in the past depending of the xbmc release. Using 13.2 it runs like that.
Reply
I think I didn't explain myself good enough. What I'm saying is I'm watching a recording that is currently recording. So its is a livetv recording....so its still recording but it should behave just like livetv, but it doesn't and if you seek past the end it will stop the video.

I will upload logs when I get home tonight so hopefully they will help
Reply
(2014-09-09, 17:14)wyild1 Wrote: I think I didn't explain myself good enough. What I'm saying is I'm watching a recording that is currently recording. So its is a livetv recording....so its still recording but it should behave just like livetv, but it doesn't and if you seek past the end it will stop the video.

I will upload logs when I get home tonight so hopefully they will help
You explained perfectly well. As you said the "livetv" recordng was opened from the recording screen (folder livetv). So the player use recording behavior.
To have livetv behavior you have to open a channel from the Channels screen.
Reply
....that's not now the cmyth plugin works. It works how I explained it, just like how a real mythfrontend works.
Reply
(2014-09-09, 21:42)wyild1 Wrote: ....that's not now the cmyth plugin works. It works how I explained it, just like how a real mythfrontend works.

I just recompiled my old cmyth Cool, that's remember the good time with fetzerch Confused, and loading it with my kodi.
hmmm , eheh, it do the same as the new addon.

Are you sure we use the same XBMC ? (frodo, gotham 13, 13.1, 13.2, kodi)

EDIT: the behavior changes with the XBMC release. XBMC handles the playback, not the addon.
Reply
this is an xbmcuntu installed less than 2 weeks ago. This is Gotham

Welcome to Ubuntu 14.04 LTS - XBMCbuntu (GNU/Linux 3.13.0-35-generic x86_64)

* Documentation: https://help.ubuntu.com/
xbmc@BLUBALLS:~$ more .xbmc/temp/xbmc.log
?17:36:50 T:140031471249344 NOTICE: special://profile/ is mapped to: special://masterprofile/
17:36:50 T:140031471249344 NOTICE: -----------------------------------------------------------------------
17:36:50 T:140031471249344 NOTICE: Starting XBMC (13.2 Git:0f3db05). Platform: x86 Linux 64-bit
17:36:50 T:140031471249344 NOTICE: Using Release XBMC x64 build, compiled Aug 17 2014 by GCC 4.8.2 for x86 Linux 64-bit 3.13.11
17:36:50 T:140031471249344 NOTICE: Running on Linux 64-bit (Ubuntu 14.04.1 LTS, 3.13.0-35-generic x86_64)
17:36:50 T:140031471249344 NOTICE: Host CPU: Intel® Atom™ CPU D525 @ 1.80GHz, 4 cores available

xbmc@BLUBALLS:~$ apt-cache search mythtv | grep xbmc
xbmc-pvr-mythtv - XBMC PVR addon MythTV
xbmc-pvr-mythtv-cmyth - XBMC PVR Addon MythTv - Cmyth - PVR API:1.9.0

xbmc@BLUBALLS:~$ apt-cache show xbmc-pvr-mythtv-cmyth
Package: xbmc-pvr-mythtv-cmyth
Source: xbmc-pvr-addons (1.0.0~git20140504.0903-2955e1d-0~trusty)
Priority: extra
Section: video
Installed-Size: 1536
Maintainer: wsnipex <[email protected]>
Architecture: amd64
Version: 1.9.16-14trusty
Depends: libc6 (>= 2.17), libgcc1 (>= 1:4.1.1), libmysqlclient18 (>= 5.5.24+dfsg-1), libstdc++6 (>= 4.6)
Filename: pool/main/x/xbmc-pvr-addons/xbmc-pvr-mythtv-cmyth_1.9.16-14trusty_amd64.deb
Size: 345048
MD5sum: 8831b239be0b90cdf22d7d71beac60b8
SHA1: 4f7c93509554ac7333da74c70f99dc490a59c560
SHA256: ccce9f58bc185f687be5b49a477c2caf2da14c54bb82312fda050d4f3a9f3616
Description: XBMC PVR Addon MythTv - Cmyth - PVR API:1.9.0
This package contains the Cmyth PVR (Personal Video Recorder) Addon for XBMC,
the award winning free and open source software media-player and entertainment hub
for all your digital media
Description-md5: 5b9b572f2f992ed2f242efe5431b622f

xbmc@BLUBALLS:~$ apt-cache show xbmc-pvr-mythtv
Package: xbmc-pvr-mythtv
Priority: extra
Section: video
Installed-Size: 1352
Maintainer: janbar <[email protected]>
Architecture: amd64
Version: 1.9.22-0~436~ubuntu14.04.1
Depends: libc6 (>= 2.17), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.6)
Filename: pool/main/x/xbmc-pvr-mythtv/xbmc-pvr-mythtv_1.9.22-0~436~ubuntu14.04.1_amd64.deb
Size: 314654
MD5sum: d1770c5255b5ab4de686aa9080f4ca8d
SHA1: dfb88104955667df4201eebf69864bac0dfab804
SHA256: 8fe4b7c7319feed02d2f89d1b722bd930a210a2d4e788edc81fb72f9fde81c28
Description-en: XBMC PVR addon MythTV
Description-md5: 77e2fda3867317f135a21f4b564fa7e2
Reply
I can switch back and forth between them and make it happen every time. Start a recording via mythweb. Go to recordings and start watching it. With cmyth plugin i can press the skip button all day and it wont end the recording, it just hits "Livetv" for a lack of a better term, and continues on its way

Switch back to your plugin...not even restarting XBMC, just disable the other and enable yours. Bam ends the recording right away

Here is a log if helpful: http://xbmclogs.com/show.php?id=289729
Reply
(2014-09-10, 02:35)wyild1 Wrote: I can switch back and forth between them and make it happen every time. Start a recording via mythweb. Go to recordings and start watching it. With cmyth plugin i can press the skip button all day and it wont end the recording, it just hits "Livetv" for a lack of a better term, and continues on its way

Switch back to your plugin...not even restarting XBMC, just disable the other and enable yours. Bam ends the recording right away

Here is a log if helpful: http://xbmclogs.com/show.php?id=289729

This caused how "read" is handled. The cmyth addon has a unique read operation for file playback and livetv file playback.
it calls "request block" to the backend even no more data. This "hack" cause 3 ~ 5 sec left at the end of all show. I called this hack "read ahead" and in certain circumstances that is the root cause of the transfer break by the backend during livetv show.
Here with the new addon, backend callback the new file size every 5 secondes. So when the file grows the addon request new block of data. Your problem is the 5 sec is too long and XBMC closes the show before because no more data after few read tries (maybe 100x).
We can hack again but this is not a good solution....
Reply
Well I hate to be that guy, but yes I would love the hack. I always record sports and watch it halfhour-hour later so i can skip commercials. With your new plugin, i find myself always having to restart my recording and skip to the end again because it keeps dying when i am caught up to livetv.

Hopefully a solution can be found. But i guess for now ill stick with the old plugin

Cheers!
Reply
(2014-09-10, 15:12)wyild1 Wrote: Well I hate to be that guy, but yes I would love the hack. I always record sports and watch it halfhour-hour later so i can skip commercials. With your new plugin, i find myself always having to restart my recording and skip to the end again because it keeps dying when i am caught up to livetv.

Hopefully a solution can be found. But i guess for now ill stick with the old plugin

Cheers!

So you are a lucky man because i found a clean solution. I pushed the patch now and the ppa is up to date.
Reply
  • 1
  • 17
  • 18
  • 19(current)
  • 20
  • 21
  • 108

Logout Mark Read Team Forum Stats Members Help
pvr.mythtv add-on1