[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
Disable mediainfo to gain scan speed
12-13-2010, 12:20 PM
Post: #31
Sad RE: Disable mediainfo to gain scan speed
Same here, I have something like 400gb of movies, 100gb of music and 20gb of pictures and the NMJ scan just never ends!
I left it on for more the 24hrs but then I gave up and brutally switch my pch off and on again!

Popcorn Hour C-200>>>[SH-B083BD+EcoGreen1tb3.5"][D-LINK DNS-320-4TB RAID1][Samsung LN32B450][Sony STRDE475][Sony SAVE225][M-Audio BX5aDeluxe][D-Link DIR635][HP Envy 14" Beats Ed. Core i5]
Find all posts by this user
01-10-2011, 07:30 PM
Post: #32
RE: Disable mediainfo to gain scan speed
(11-14-2010 04:43 AM)nicob Wrote:  I noticed hickups on some MKV and BDMV (blueray, non iso) movies when updating the database. This was not because it couldn't find it in imdb, because I used nfo for that movies...
During those hickups, I noticed that mediainfo was running... The bad news is, you cannot rename mediainfo in the /opt/syb/app/bin directory since it is readonly...
So I looked at the PATH environment value, and saw that the /bin directory is the first one. So I created a empty executeable mediainfo file in the bin directory and started the scan again. The result was a big improvement... no more hickups on specific files!
Mediainfo is needed for the resolution, codec and duration info of video's in NMJ. Without mediainfo, audio files don't get added to NMJ. So I created a oneliner that executes the real mediainfo when a audio file is scanned.

This is only a proof of concept, and I think the real problem lies in the fact that NMJ tries to execute mediainfo always on files that mediainfo had problems with (the hickups). So we basically need a script that checks if mediainfo already was runned on a file... but I will look into that later...

For now, try these commands in lundmannshell for those who are interested (or add them to the end of start_app.sh, to make them reboot persistent):
Code:
echo 'if [[ "$*" == *udio* ]]; then /opt/syb/app/bin/mediainfo "$@"; fi'> /bin/mediainfo
chmod +x /bin/mediainfo

if you want to see the mediainfo parameters the scan executes, you can execute
Code:
echo 'echo $* >> /share/mediainfo.txt' >>/bin/mediainfo
where /share/mediainfo.txt is the output file...

Please let me now if this works for you! (hickups with no networkactivity on video files = mediainfo slowdown)

Edit: used lordy's suggestion

Hi

Ive been trying to get this to work. installed the shell to get .sh file in share and then notepad++ to edit it. this is what my last lines now look like.
---------------------------------- - this line is not in the .sh
#M_A_R_K_E_R_do_not_remove_me
echo 'if [[ "$*" == *udio* ]]; then /opt/syb/app/bin/mediainfo "$@"; fi'> /bin/mediainfo
chmod +x /bin/mediainfo


exit 0
---------------------------------- - this line is not in the .sh
I then saved it and cold-booting the PCH. I then tried deleting my old db and ran a new scan (on .avi tv series only). and its working fine but takes about the same time as normal which is 24 hours for my db.

have i made an error or shall I do something else to get it to work Huh
Find all posts by this user
01-10-2011, 08:19 PM
Post: #33
RE: Disable mediainfo to gain scan speed
it seems ok, did you reboot?

The speed gain is probably not great in the new 8 or 17 december firmware since it is more optimized...

Feature request for the A200/C200:Option to disable Popcorn Upscaling - let your TV/AVR upscale
We need your VOTE!
Find all posts by this user
01-11-2011, 12:21 AM
Post: #34
RE: Disable mediainfo to gain scan speed
(01-10-2011 08:19 PM)nicob Wrote:  it seems ok, did you reboot?

The speed gain is probably not great in the new 8 or 17 december firmware since it is more optimized...

Yeah I rebooted.

heh if its optimized then it still have a looong way until its acceptable. I can live with a 24h scan on a new db but i cannot accept it takes as long just to add 1 new series. that should take 10 mins and NOT rescan all the other 117 series again (and even FUBAR a lot of them in the process
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [NMJ v2] How to scan the NMJ database remotely on A300 (NMJ V2) pedro75 73 10,596 02-17-2013 11:18 AM
Last Post: racquemis
  Exclude Apps From Scan Raddy 4 4,610 12-25-2010 01:06 PM
Last Post: Iradj

Forum Jump: