Jump to content

Recommended Posts

Posted
4 hours ago, Happy2Play said:

I will guess all before this option was added.  Or are they still recorded and just ignored for stats?

Ignore play sessions less than x seconds in duration

 

yes correct, the action is still recorded but ignored when the report pages are calculated.

Posted
8 hours ago, vaise said:

I just wanted to create a Top 10 user list.  Not sure if I can trust the seconds watched.  Then I figured I could do it by number of plays….. but there are shed loads of ‘plays’ of 0 seconds (but the setting in the app is set to register not if more than 180 seconds minimum is used).  

Maybe I should delete those ?  Or all plays less that 180 seconds…..

you can delete then or just ignore then in your query, where playtime > 30

Posted
On 3/24/2024 at 6:58 PM, vaise said:

Found the issue - checkout these PauseDurations - 

image.png.056f0645bd8fb500e1becda61311d835.png

 

i just found a bunch in my system with similar situation with the pause duration and the play duration almost identical or off by a few seconds.

and i have a lot of these, hundreds, for one movie in particular over a 3 week period, all from the web client, all direct play, all for 20 to 40000 seconds that look like they were paused the whole time.

i have no idea what is going on.

Posted
11 minutes ago, TeamB said:

i just found a bunch in my system with similar situation with the pause duration and the play duration almost identical or off by a few seconds.

and i have a lot of these, hundreds, for one movie in particular over a 3 week period, all from the web client, all direct play, all for 20 to 40000 seconds that look like they were paused the whole time.

i have no idea what is going on.

Yeah - I'm thinking various emby versions / emby clients / betas, busted stuff etc means the seconds played cant be trusted with all this.

There is no way it can be accurate - seems just too much there.  Even for the last month.  I went and updated anything with an episode to just be 30 minutes also - 

I was toying with wiping the data and restarting - but there is so much there that would be a pity.

Posted
SELECT DateCreated, ItemId, ItemType, ItemName, PlaybackMethod, ClientName, DeviceName, PlayDuration, PauseDuration, PlayDuration - PauseDuration AS PlaybackTime
FROM PlaybackActivity 
WHERE PlayDuration - PauseDuration < 300
AND PlayDuration > 3600
ORDER BY DateCreated DESC
LIMIT 200

I have a movie the Web Client just brought up and paused continuously, I asked my wife about it, and she said she only played this once and then deleted the move. I have no idea why emby would do this.

The only thing I can think of is Emby was open in a tab on firefox and every time the Machine was put to sleep and woken up the playback was brought back up in paused state. No idea really, can reproduce it.

DateCreated ItemId ItemType ItemName PlaybackMethod ClientName DeviceName PlayDuration PauseDuration PlaybackTime
2024-03-12 22:38:34.0924145 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 35583 35552 31
2024-03-11 23:09:24.1622736 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 38893 38862 31
2024-03-11 17:44:27.4461913 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 5238 5229 9
2024-03-11 09:37:45.7401435 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 3922 3919 3
2024-03-10 23:14:15.9831269 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 32801 32776 25
2024-03-09 23:15:27.2718327 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 42820 42788 32
2024-03-09 17:58:10.0455182 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 3837 3834 3
2024-03-08 22:59:45.1430209 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 53909 53855 54
2024-03-08 17:43:26.7506748 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 6417 6411 6
2024-03-08 13:57:16.2425563 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 5099 5095 4
2024-03-08 00:03:14.2119859 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 34209 34179 30
2024-03-07 19:35:00.7591839 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 5280 5274 6
2024-03-06 22:22:48.2313711 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 41209 41168 41
2024-03-06 16:51:10.8297168 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 12074 12061 13
2024-03-06 11:29:54.5806741 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 10316 10308 8
2024-03-05 22:57:31.5753419 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 32432 32402 30
Posted
45 minutes ago, TeamB said:
SELECT DateCreated, ItemId, ItemType, ItemName, PlaybackMethod, ClientName, DeviceName, PlayDuration, PauseDuration, PlayDuration - PauseDuration AS PlaybackTime
FROM PlaybackActivity 
WHERE PlayDuration - PauseDuration < 300
AND PlayDuration > 3600
ORDER BY DateCreated DESC
LIMIT 200

I have a movie the Web Client just brought up and paused continuously, I asked my wife about it, and she said she only played this once and then deleted the move. I have no idea why emby would do this.

The only thing I can think of is Emby was open in a tab on firefox and every time the Machine was put to sleep and woken up the playback was brought back up in paused state. No idea really, can reproduce it.

DateCreated ItemId ItemType ItemName PlaybackMethod ClientName DeviceName PlayDuration PauseDuration PlaybackTime
2024-03-12 22:38:34.0924145 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 35583 35552 31
2024-03-11 23:09:24.1622736 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 38893 38862 31
2024-03-11 17:44:27.4461913 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 5238 5229 9
2024-03-11 09:37:45.7401435 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 3922 3919 3
2024-03-10 23:14:15.9831269 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 32801 32776 25
2024-03-09 23:15:27.2718327 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 42820 42788 32
2024-03-09 17:58:10.0455182 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 3837 3834 3
2024-03-08 22:59:45.1430209 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 53909 53855 54
2024-03-08 17:43:26.7506748 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 6417 6411 6
2024-03-08 13:57:16.2425563 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 5099 5095 4
2024-03-08 00:03:14.2119859 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 34209 34179 30
2024-03-07 19:35:00.7591839 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 5280 5274 6
2024-03-06 22:22:48.2313711 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 41209 41168 41
2024-03-06 16:51:10.8297168 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 12074 12061 13
2024-03-06 11:29:54.5806741 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 10316 10308 8
2024-03-05 22:57:31.5753419 113435 Movie Just Like a Christmas Movie DirectPlay Emby Web Firefox Windows 32432 32402 30

I have about 15 that showed up with that query - I have deleted them......

 

Posted (edited)
14 minutes ago, vaise said:

I have about 15 that showed up with that query - I have deleted them......

are they recent? do you have emby server logs covering the times that they occurred?

Edited by TeamB
Happy2Play
Posted

My 17 are from a remote user in 2021.

image.png.be1f8f3af5192600e8b40853fe4984b3.png

  • Thanks 1
  • 2 weeks later...
yoyo77yo
Posted

hello, in "playback reporting" => "summer" tab, I would like you to be able to filter on the column which indicates "Film", "audio" and "episode" in order to filter who watches films for example. Currently this filter does not exist. THANKS

image.png.6df8ea9bd5b5467869e0b3b1c2cb6d2b.png

rbjtech
Posted
3 minutes ago, yoyo77yo said:

hello, in "playback reporting" => "summer" tab, I would like you to be able to filter on the column which indicates "Film", "audio" and "episode" in order to filter who watches films for example. Currently this filter does not exist. THANKS

image.png.6df8ea9bd5b5467869e0b3b1c2cb6d2b.png

Why not just create, and save, your own Custom Query - that's what it is there for.. ;)   There are some example custom queries in the drop down box.

 

  • Thanks 1
Posted

@yoyo77yo were you able to write a query that gave you the data you needed

  • 1 month later...
eraser8
Posted

Hello!

I don`t know why but I can only see 1 user being reported. I cannot see all other user I have on my server. Do I need to activate something in each user?

 

Thanks

Happy2Play
Posted
9 minutes ago, eraser8 said:

Hello!

I don`t know why but I can only see 1 user being reported. I cannot see all other user I have on my server. Do I need to activate something in each user?

 

Thanks

Do you have Ignored users shown in plugin settings?

image.png.3c893668045e4e023c88cb7651a38f94.png

eraser8
Posted
9 minutes ago, Happy2Play said:

Do you have Ignored users shown in plugin settings?

image.png.3c893668045e4e023c88cb7651a38f94.png

Thanks for the response.

 

No, I have nothing in the Ignored section.

 

image.png.f95bad7717e70951a3bb164393ed30db.png

 

 

Thanks a lot

 

Happy2Play
Posted
1 minute ago, eraser8 said:

Thanks for the response.

 

No, I have nothing in the Ignored section.

 

image.png.f95bad7717e70951a3bb164393ed30db.png

 

 

Thanks a lot

 

Dev will probably need to see server log for a user playing something and not being recorded.  As that is the only option I know of to ignore users.

eraser8
Posted
3 hours ago, Happy2Play said:

Dev will probably need to see server log for a user playing something and not being recorded.  As that is the only option I know of to ignore users.

Alright! Thanks a lot

  • 2 weeks later...
horstepipe
Posted

Hey folks,

having a user who has problems playing back one episodes. We are never available at the same time, so I want to check with the playback reporting plugin how he plays back the video (direct, transcoding etc.)

Unfortunately "Playback Method" is there in general, but there doesn't seem to be a way to see this for a specific user?

Neminem
Posted (edited)

Try clicking on the color area.

image.thumb.png.17719b01d8d9d6f8a911599ea4475e3d.png

image.thumb.png.a609d267a8c5a91d8e26a6b1a1b73d8c.png

Edited by jaycedk
  • Thanks 1
horstepipe
Posted

Thanks will try that out 

Posted (edited)
On 1/12/2022 at 1:56 PM, rbjtech said:
SELECT * FROM PlaybackActivity
WHERE ItemName = 'The Matrix Resurrections'

Something like this as a Custom Report (SQL) will show every user ever to have watched 'The Matrix Resurrections' for example.

Possible query items (database Schema) is :-

image.png.face19b39a28300d054efc2415ce0dad.png

I'm looking to do something similar to this but with TV Shows as a whole (not specific episodes).  So for example I'd like to know when the most recent stream of a specific TV Show was.

(disclaimer, I have no idea what im doing).

What I came up with that seems to work for Movies is below.  The problem is I dont really care about movies I care about TV Shows and for Shows it shows the whole episode name starting with the Show name so I've tried using an asterisk (*) after the itemname but not sure if thats supposed to work or what the correct format should be.

 

SELECT *
FROM PlaybackActivity
WHERE ItemName = "Ford v Ferrari"
ORDER BY DateCreated DESC
LIMIT 25

Edited by EmYaj
Posted

you want to use the sql like matcher, it uses wild card %

where itemname like 'show name%'

  • Thanks 1
Posted (edited)
On 6/19/2024 at 1:28 AM, TeamB said:

you want to use the sql like matcher, it uses wild card %

where itemname like 'show name%'

You're a legend, thank you.

If anyone needs this in the future, this works:

SELECT *
FROM PlaybackActivity
WHERE ItemName like 'Show Name%'
ORDER BY DateCreated DESC
LIMIT 10

Edited by EmYaj
Posted

Thought I'd be able to figure this one out based on what I learned reading through this thread but I'm out of my depth unfortunately.  If anyone is willing to help it would be appreciated.

I'm trying to output the total 'TvChannel' (LiveTV) watchtime broken down by UserId over a period of the previous 1 month.

Posted

Aggregation can be a little tricky, try this

SELECT UserId, SUM(PlayDuration - PauseDuration) AS PlayTime
FROM PlaybackActivity
WHERE ItemName like 'The Blacklist%'
AND DateCreated >= '2024-01-01' AND DateCreated < '2025-01-01'
GROUP BY UserId

 

Posted
1 hour ago, TeamB said:

Aggregation can be a little tricky, try this

SELECT UserId, SUM(PlayDuration - PauseDuration) AS PlayTime
FROM PlaybackActivity
WHERE ItemName like 'The Blacklist%'
AND DateCreated >= '2024-01-01' AND DateCreated < '2025-01-01'
GROUP BY UserId

 

I was able to adjust and get it working exactly how I wanted it, thank you!!

If anyone else needs something similar, this worked for me:

SELECT UserId, SUM(PlayDuration) AS PlayTime
FROM PlaybackActivity
WHERE ItemType like 'TvChannel'
AND DateCreated between date('now', 'start of day','-1 months') and date('now', 'start of day', '+1 day')
GROUP BY UserId
ORDER BY PlayTime DESC

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...