Mailing List Archive

Automatically retrieving Video Details
On a fresh Mythtv install I usually put all the episodes of 2 TV series
into the /srv/mythtv/videos directory which is defined in mythtv-setup as
the Videos.

Using mythfrontend the first time I go to watch videos I have to scan to
find all the videos. It takes a couple of seconds. However it does not
retrieve any details about the TV programs.

To get the details, I have to:
While the TV show is under the cursor, right arrow.
Change Video Details,
Right arrow,
Retrieve details

Is there any way to force this to happen for all 500 videos in my
collection?

Jim A
Re: Automatically retrieving Video Details [ In reply to ]
On Thu, 4 Nov 2021 07:13:50 -0400, you wrote:

>On a fresh Mythtv install I usually put all the episodes of 2 TV series
>into the /srv/mythtv/videos directory which is defined in mythtv-setup as
>the Videos.
>
>Using mythfrontend the first time I go to watch videos I have to scan to
>find all the videos. It takes a couple of seconds. However it does not
>retrieve any details about the TV programs.
>
>To get the details, I have to:
>While the TV show is under the cursor, right arrow.
>Change Video Details,
>Right arrow,
>Retrieve details
>
>Is there any way to force this to happen for all 500 videos in my
>collection?

mythfrontend > Setup > Videos Settings > Metadata Settings > Perform
metadata update after video scan
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Automatically retrieving Video Details [ In reply to ]
On Fri, Nov 5, 2021 at 5:20 AM Stephen Worthington <stephen_agent@jsw.gen.nz>
wrote:

> On Thu, 4 Nov 2021 07:13:50 -0400, you wrote:
>
> >On a fresh Mythtv install I usually put all the episodes of 2 TV series
> >into the /srv/mythtv/videos directory which is defined in mythtv-setup as
> >the Videos.
> >
> >Using mythfrontend the first time I go to watch videos I have to scan to
> >find all the videos. It takes a couple of seconds. However it does not
> >retrieve any details about the TV programs.
> >
> >To get the details, I have to:
> >While the TV show is under the cursor, right arrow.
> >Change Video Details,
> >Right arrow,
> >Retrieve details
> >
> >Is there any way to force this to happen for all 500 videos in my
> >collection?
>
> mythfrontend > Setup > Videos Settings > Metadata Settings > Perform
> metadata update after video scan
>

I had those settings, but apparently you need to just leave the frontend
alone while it processes the request. There is no indication it's running
but the screen background artwork flashes blank and then back on every few
seconds. The keyboard is not too responsive while it's working but you can
see the text updated on the videos,

Thank,
JIm A
Re: Automatically retrieving Video Details [ In reply to ]
On 11/5/21 6:38 AM, James Abernathy wrote:
>
>
> On Fri, Nov 5, 2021 at 5:20 AM Stephen Worthington
> <stephen_agent@jsw.gen.nz <mailto:stephen_agent@jsw.gen.nz>> wrote:
>
> On Thu, 4 Nov 2021 07:13:50 -0400, you wrote:
>
> >On a fresh Mythtv install I usually put all the episodes of 2 TV
> series
> >into the /srv/mythtv/videos directory which is defined in
> mythtv-setup as
> >the Videos.
> >
> >Using mythfrontend the first time I go to watch videos I have to
> scan to
> >find all the videos.  It takes a couple of seconds. However it
> does not
> >retrieve any details about the TV programs.
> >
> >To get the details, I have to:
> >While the TV show is under the cursor, right arrow.
> >Change Video Details,
> >Right arrow,
> >Retrieve details
> >
> >Is there any way to force this to happen for all 500 videos in my
> >collection?
>
> mythfrontend > Setup > Videos Settings > Metadata Settings > Perform
> metadata update after video scan
>
>
> I had those settings, but apparently you need to just leave the
> frontend alone while it processes the request. There is no indication
> it's running but the screen background artwork flashes blank and then
> back on every few seconds.  The keyboard is not too responsive while
> it's working but you can see the text updated on the videos,
>
> Thank,
> JIm A

You can also run "mythutil --scanvideos" on the backend. I always run
this after adding or removing videos, since you have to be on the
backend to do that anyway. Especially since leanfront does not have a
"scan videos" option.

Peter
Re: Automatically retrieving Video Details [ In reply to ]
On Fri, Nov 5, 2021 at 9:30 AM Peter Bennett <pb.mythtv@gmail.com> wrote:

>
> On 11/5/21 6:38 AM, James Abernathy wrote:
>
>
>
> On Fri, Nov 5, 2021 at 5:20 AM Stephen Worthington <
> stephen_agent@jsw.gen.nz> wrote:
>
>> On Thu, 4 Nov 2021 07:13:50 -0400, you wrote:
>>
>> >On a fresh Mythtv install I usually put all the episodes of 2 TV series
>> >into the /srv/mythtv/videos directory which is defined in mythtv-setup as
>> >the Videos.
>> >
>> >Using mythfrontend the first time I go to watch videos I have to scan to
>> >find all the videos. It takes a couple of seconds. However it does not
>> >retrieve any details about the TV programs.
>> >
>> >To get the details, I have to:
>> >While the TV show is under the cursor, right arrow.
>> >Change Video Details,
>> >Right arrow,
>> >Retrieve details
>> >
>> >Is there any way to force this to happen for all 500 videos in my
>> >collection?
>>
>> mythfrontend > Setup > Videos Settings > Metadata Settings > Perform
>> metadata update after video scan
>>
>
> I had those settings, but apparently you need to just leave the frontend
> alone while it processes the request. There is no indication it's running
> but the screen background artwork flashes blank and then back on every few
> seconds. The keyboard is not too responsive while it's working but you can
> see the text updated on the videos,
>
> Thank,
> JIm A
>
> You can also run "mythutil --scanvideos" on the backend. I always run this
> after adding or removing videos, since you have to be on the backend to do
> that anyway. Especially since leanfront does not have a "scan videos"
> option.
>
> Peter
>

I run the mythutil --scanvideos in a cron.daily job. It didn't update the
video description data. I had to do it via the frontend as Steve and I
described above and just wait. BTW, This test system install is a combo
FE/BE.

Jim A
Re: Automatically retrieving Video Details [ In reply to ]
On Fri, Nov 5, 2021 at 2:59 PM James Abernathy <jfabernathy@gmail.com>
wrote:

>
>
> On Fri, Nov 5, 2021 at 9:30 AM Peter Bennett <pb.mythtv@gmail.com> wrote:
>
>>
>> On 11/5/21 6:38 AM, James Abernathy wrote:
>>
>>
>> I had those settings, but apparently you need to just leave the frontend
>> alone while it processes the request. There is no indication it's running
>> but the screen background artwork flashes blank and then back on every few
>> seconds. The keyboard is not too responsive while it's working but you can
>> see the text updated on the videos,
>>
>> Thank,
>> JIm A
>>
>>
>>
>
There is a request that we should apply a 'nice' level to the metadata
grabber commands (i.e.: running with lower priority).
Can you please post the output of `top` and `htop` when doing a scan with
metadata update?

Roland
Re: Automatically retrieving Video Details [ In reply to ]
On Fri, Nov 5, 2021 at 2:14 PM Roland Ernst <rcrernst@gmail.com> wrote:

>
>
> On Fri, Nov 5, 2021 at 2:59 PM James Abernathy <jfabernathy@gmail.com>
> wrote:
>
>>
>>
>> On Fri, Nov 5, 2021 at 9:30 AM Peter Bennett <pb.mythtv@gmail.com> wrote:
>>
>>>
>>> On 11/5/21 6:38 AM, James Abernathy wrote:
>>>
>>>
>>> I had those settings, but apparently you need to just leave the frontend
>>> alone while it processes the request. There is no indication it's running
>>> but the screen background artwork flashes blank and then back on every few
>>> seconds. The keyboard is not too responsive while it's working but you can
>>> see the text updated on the videos,
>>>
>>> Thank,
>>> JIm A
>>>
>>>
>>>
>>
> There is a request that we should apply a 'nice' level to the metadata
> grabber commands (i.e.: running with lower priority).
> Can you please post the output of `top` and `htop` when doing a scan with
> metadata update?
>
> Roland
>
>
At this point all 500 videos have descriptions and thumbnails. So the scan
and retrieve all does nothing. How can I delete all that data so that I
can rerun with htop running?

Jim A
Re: Automatically retrieving Video Details [ In reply to ]
Jim,
If you do a fresh install and run the scan again, please remember my
request.
Thanks,
Roland

On Fri, Nov 5, 2021 at 8:06 PM James Abernathy <jfabernathy@gmail.com>
wrote:

>
>
> On Fri, Nov 5, 2021 at 2:14 PM Roland Ernst <rcrernst@gmail.com> wrote:
>
>>
>>
>> On Fri, Nov 5, 2021 at 2:59 PM James Abernathy <jfabernathy@gmail.com>
>> wrote:
>>
>>>
>>>
>>> On Fri, Nov 5, 2021 at 9:30 AM Peter Bennett <pb.mythtv@gmail.com>
>>> wrote:
>>>
>>>>
>>>> On 11/5/21 6:38 AM, James Abernathy wrote:
>>>>
>>>>
>>>> I had those settings, but apparently you need to just leave the
>>>> frontend alone while it processes the request. There is no indication it's
>>>> running but the screen background artwork flashes blank and then back on
>>>> every few seconds. The keyboard is not too responsive while it's working
>>>> but you can see the text updated on the videos,
>>>>
>>>> Thank,
>>>> JIm A
>>>>
>>>>
>>>>
>>>
>> There is a request that we should apply a 'nice' level to the metadata
>> grabber commands (i.e.: running with lower priority).
>> Can you please post the output of `top` and `htop` when doing a scan with
>> metadata update?
>>
>> Roland
>>
>>
> At this point all 500 videos have descriptions and thumbnails. So the
> scan and retrieve all does nothing. How can I delete all that data so that
> I can rerun with htop running?
>
> Jim A
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: Automatically retrieving Video Details [ In reply to ]
On Fri, Nov 5, 2021 at 7:06 PM Roland Ernst <rcrernst@gmail.com> wrote:

> Jim,
> If you do a fresh install and run the scan again, please remember my
> request.
> Thanks,
> Roland
>
> So if I do a fresh install, it will be just for this data for you so let's
get the instructions right.

1. In my Storage Directories definition with mythtv-setup, I'll include the
directory on my NAS that has the Videos. That directory is mounted via
fstab to /mnt/public/media/tv-shows.
2. As Stephen says: mythfrontend > Setup > Videos Settings > Metadata
Settings > Perform
metadata update after video scan to checked.
3. with mythfrontend, in Media library -> watch videos - 'm' Retrieve all
details.

I think that is what you want. I'm guessing you want top or htop run from
a ssh session on another computer into my combo FE/BE doing the scan. How
do you capture what you want to see since both programs, to me, are
realtime and I've never capture their output.

JIm A
Re: Automatically retrieving Video Details [ In reply to ]
On Fri, Nov 5, 2021 at 7:23 PM James Abernathy <jfabernathy@gmail.com>
wrote:

>
>
> On Fri, Nov 5, 2021 at 7:06 PM Roland Ernst <rcrernst@gmail.com> wrote:
>
>> Jim,
>> If you do a fresh install and run the scan again, please remember my
>> request.
>> Thanks,
>> Roland
>>
>> So if I do a fresh install, it will be just for this data for you so
> let's get the instructions right.
>
> 1. In my Storage Directories definition with mythtv-setup, I'll include
> the directory on my NAS that has the Videos. That directory is mounted via
> fstab to /mnt/public/media/tv-shows.
> 2. As Stephen says: mythfrontend > Setup > Videos Settings > Metadata
> Settings > Perform
> metadata update after video scan to checked.
> 3. with mythfrontend, in Media library -> watch videos - 'm' Retrieve all
> details.
>
> I think that is what you want. I'm guessing you want top or htop run from
> a ssh session on another computer into my combo FE/BE doing the scan. How
> do you capture what you want to see since both programs, to me, are
> realtime and I've never capture their output.
>
> JIm A
>

Here's an attempt of capturing top output during retrieving details from
online data sources.

I put the output text files on Google Drive. Here is a link:

https://drive.google.com/drive/folders/13LkEpTGZHT8EQaMZwOAa-ESPtCYKrNRI?usp=sharing

JIm A
Re: Automatically retrieving Video Details [ In reply to ]
On Sat, Nov 6, 2021 at 2:03 PM James Abernathy <jfabernathy@gmail.com>
wrote:

>
>
> On Fri, Nov 5, 2021 at 7:23 PM James Abernathy <jfabernathy@gmail.com>
> wrote:
>
>>
>>
>> On Fri, Nov 5, 2021 at 7:06 PM Roland Ernst <rcrernst@gmail.com> wrote:
>>
>>> Jim,
>>> If you do a fresh install and run the scan again, please remember my
>>> request.
>>> Thanks,
>>> Roland
>>>
>>> So if I do a fresh install, it will be just for this data for you so
>> let's get the instructions right.
>>
>> 1. In my Storage Directories definition with mythtv-setup, I'll include
>> the directory on my NAS that has the Videos. That directory is mounted via
>> fstab to /mnt/public/media/tv-shows.
>> 2. As Stephen says: mythfrontend > Setup > Videos Settings > Metadata
>> Settings > Perform
>> metadata update after video scan to checked.
>> 3. with mythfrontend, in Media library -> watch videos - 'm' Retrieve all
>> details.
>>
>> I think that is what you want. I'm guessing you want top or htop run
>> from a ssh session on another computer into my combo FE/BE doing the scan.
>> How do you capture what you want to see since both programs, to me, are
>> realtime and I've never capture their output.
>>
>> JIm A
>>
>
> Here's an attempt of capturing top output during retrieving details from
> online data sources.
>
> I put the output text files on Google Drive. Here is a link:
>
>
> https://drive.google.com/drive/folders/13LkEpTGZHT8EQaMZwOAa-ESPtCYKrNRI?usp=sharing
>
> JIm A
>

BTW, these files each contain 3 iterations each created by:
*top -b -n 3 >test.txt*

Jim A