Mediainfo Plugin

lisas4567

Member
May 25, 2018
773
0
16
i tried it but it doesn't work for me.


No matter what i do i get a warning letting me know the web user can't find mediainfo

I've even manually logged in the web user and checked, it can use it, it's a bug in the code i believe.


I am on arch, i used the mediainfo package from the arch repositories.


I've set the path in the conf.php to reflect the mediainfo path.
 

randac56

Member
May 25, 2018
915
0
16
i tried it but it doesn't work for me.


No matter what i do i get a warning letting me know the web user can't find mediainfo

I've even manually logged in the web user and checked, it can use it, it's a bug in the code i believe.


I am on arch, i used the mediainfo package from the arch repositories.


I've set the path in the conf.php to reflect the mediainfo path.
Turns out there was a small bug and the path set in conf.php was not being used. This should be resolved now
 

randac56

Member
May 25, 2018
915
0
16
still no joy.
Code:
<?php

$pathToExternals[&#39;mediainfo&#39;] = &#39;/usr/bin/mediainfo&#39;; // Something like /usr/bin/mediainfo. If empty, will be founded in PATH.

?>



and the path is right:
Code:
# which mediainfo
/usr/bin/mediainfo

but still:
 

lisas4567

Member
May 25, 2018
773
0
16
Wonslung,

Try to temporarily remove this line from plugin.info: "web.external.error: mediainfo". This will disable the check for mediainfo binary. Not sure why but it seems that maybe it's not checking the path that is set in conf.php.
 

simur612

Member
May 25, 2018
879
0
16
You can get rid of this error by adding

Code:
/usr/bin/mediainfo:

to your open_basedir line in php.ini or commenting this line out. we managed to get the plugin working to some kind last night, but it's not showing any information tho.
 

lisas4567

Member
May 25, 2018
773
0
16
Hmmm I'm fresh out of ideas now. Still doesn't seem to work for me.

Arch and apache. We spoke about this last night on the IRC and all came to the conclusion it's incorrectly set up.

So I come seeking help lol

httpd.conf >> http://pastebin.com/kk29acA1

php.ini >> http://pastebin.com/F6viEteR

LOL can't wrap them in code tags I get this The message exceeds the maximum allowed length (20000 characters).

I'h hoping it's going to be something simple that I've missed, been at this for like 2 nights straight now, and can't see it sad.gif

What do you guys think?
 

simur612

Member
May 25, 2018
879
0
16
Hmmm I'm fresh out of ideas now. Still doesn't seem to work for me.

Arch and apache. We spoke about this last night on the IRC and all came to the conclusion it's incorrectly set up.

So I come seeking help lol

httpd.conf >> http://pastebin.com/kk29acA1

php.ini >> http://pastebin.com/F6viEteR

LOL can't wrap them in code tags I get this The message exceeds the maximum allowed length (20000 characters).

I'h hoping it's going to be something simple that I've missed, been at this for like 2 nights straight now, and can't see it sad.gif

What do you guys think?
Did you try the latest ruTorrent release (from the svn repository)?

I used my ruTorrent installer and I got no error messages at all. Of course I had to update it to checkout the new mediainfo plugin and also install mediainfo (pacman -S mediainfo).

Here's the diffs, but I don't think it matters:
Code: [Select]
--- his_httpd.conf
+++ /etc/httpd/conf/httpd.conf
@@ -474,7 +474,7 @@
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
-LoadModule php5_module modules/libphp5.so
-LoadModule scgi_module modules/mod_scgi.so
Include conf/extra/php5_module.conf
-SCGIMount /RPC2 127.0.0.1:5000
\ No newline at end of file
+Include conf/extra/scgi.conf
+Include conf/extra/httpd-ssl.conf
+Include conf/extra/rutorrent.conf

Code: [Select]
--- his_php.ini
+++ /etc/php/php.ini
@@ -941,7 +941,7 @@
;extension=bcmath.so
;extension=bz2.so
;extension=calendar.so
-extension=curl.so
+;extension=curl.so
;extension=dba.so
;extension=enchant.so
;extension=exif.so
@@ -952,7 +952,7 @@
;extension=iconv.so
;extension=imap.so
;extension=intl.so
-;extension=json.so
+extension=json.so
;extension=ldap.so
;extension=mcrypt.so
;extension=mssql.so
@@ -978,7 +978,7 @@
;extension=sysvsem.so
;extension=sysvshm.so
;extension=tidy.so
-extension=xmlrpc.so
+;extension=xmlrpc.so
;extension=xsl.so
;extension=zip.so

@@ -989,7 +989,7 @@
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
-;date.timezone =
+date.timezone = Africa/Kinshasa

; http://php.net/date.default-latitude
;date.default_latitude = 31.7667
@@ -1893,4 +1893,4 @@

; Local Variables:
; tab-width: 4
-; End:
\ No newline at end of file
+; End:
 

peshua19

Member
May 25, 2018
897
0
16
Thanks for the input guys, I managed to fix it on my machine. I'll look into what actually fixed it later.
But I did 2 things, using the information Brock gave, awesome btw smiley.gif I noticed you have json.so enabled in your php.ini so i changed that. The NFO plugin was giving me permission dienied when I tried to use it, so I changed the user that apache was running as to my user. I know it's a bad move with sudo and that but it's only a local machine so nothing to worry about smiley.gif

I'll edit the post later when I change a few things back to see what fixed it.
 

simur612

Member
May 25, 2018
879
0
16
Would love to hear a newbie version of how to fix this.

I'm running this on a Synology NAS which works fine except for this message.