filemanager plugin

shwetha17

Member
May 24, 2018
785
0
16
Tested latest filemanager svn on debian wheezy with latest ffmpeg compiled from sources, same problem just different error:

File Manager ERROR: undefined - 200 Current ffmpeg/ffprobe not supported. Please compile a newer version. SyntaxError: Unexpected token C
 

dsouvik215

Member
May 25, 2018
896
0
16
The solution for that FFmpeg problem is this one. But I only used this one on my seedbox with OS Ubuntu 10.04. I think it'll be easy to find out how to do this for other versions.

Code:
sudo add-apt-repository ppa:jon-severinsson/ffmpeg
sudo apt-get update
sudo apt-get install ffmpeg

FFmpeg is outdated that's why it won't work I think.

If you don't have the add-apt-repository, just type this:
Code:
sudo apt-get -y install python-software-properties

For Debian:

Add repository to your /etc/apt/sources.list:

Code:
# multimedia
deb http://deb-multimedia.org squeeze main

After adding the new repository, update its sources:

Code
# apt-get update
Ignore the warning about the missing key for now, we'll fix that right now. To install the keyring package for the new repository, issue the following command:

Code
# gpg --keyserver hkp://keyring.debian.org --recv 07DC563D1F41B907
# gpg --export --armor 07DC563D1F41B907 | apt-key add -
Now update your repositories:

Code:
# apt-get update
The warning from the previous step should be gone, your now ready to rock'n'roll!

Code:
# apt-get install ffmpeg libmp3lame0
 

das329717

Member
May 25, 2018
928
0
16
Thanks, by i tried the debian multimedia repo on both debian 6 and 7 (old and new stable), but i still get the error.

It does not give me any problem on an old ubuntu 10.04 as you said, i will try to compile an old version of ffmpeg, maybe the problem is that it wants an outdated version and not a recent one...
 

jith45

Member
May 25, 2018
960
0
16
I wonder if the plugin supports both premium account and free registered accounts, because a lot of hosts now ask to register for a free account in order to upload and only works if we change the fileup class to "--auth-free", but if we change this the premium option (--auth only) doesn't work. So you have to choose to use all accounts registered free or all accounts premium.

I'm not a programmer but maybe anyone know how to use both options (registered free and premium) at the same time.
 

somus1735

Member
May 25, 2018
833
0
16
Thanks for this AMAZING plugin. It has allowed me to easily run a server w/o desktop. One request... is it possible to add Hard Links to the Copy and Move options? AutoTools does this but only automatically. I would like to use the filemanager functionality (selecting multiple directories/files) but have the option to Hard Link to a folder instead of moving or copying.

Thanks again!

EDIT: To enable this functionality, I went to the cp script (plugins/filemanager/scripts/cp) and added "-l" to the cp line like so:

Code: [Select]
##added -l to hardlink instead of copy
cp -rfl --target-directory="$2" "$file" && echo "0: OK" >> "$1/log" || echo "0: FAILED" >> "$1/log"

Now whenever I use filemanager to manually "copy" from my seedbox's downloads folder to my "sendHome" BTSync folder, it actually does a hardlink instead of duplicating the files which saves me huge amounts of disk space. When the sync is done and CouchPotato or SickBeard see the files, they process and delete the sync'd files which deletes the hardlink. I'm free to delete the .torrent data files whenever I wish without it impacting whats syncing. This essentially gives me a manual way of hardlinking like autotools does automatically
 

shwetha17

Member
May 24, 2018
785
0
16
I cannot find any solution to this after compiling latest ffmpeg from sources and all i could try under debian wheezy.

The screenshots plugin works fine but i get this from the file manager screenshot function:

Code: [Select]
FILE MANAGER: Action has finished :
but no screens are generated.


This is my ffmpeg:

Code:
ffmpeg version git-2013-09-30-5c7d86c Copyright (c) 2000-2013 the FFmpeg developers
built on Sep 30 2013 03:26:18 with gcc 4.7 (Debian 4.7.2-5)
configuration: --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libgsm --enable-postproc --enable-libxvid --enable-pthreads --enable-libvorbis --enable-gpl --enable-nonfree --enable-filter=movie --enable-avfilter --enable-libfaac --enable-fontconfig --enable-libfreetype
libavutil 52. 46.100 / 52. 46.100
libavcodec 55. 33.101 / 55. 33.101
libavformat 55. 18.104 / 55. 18.104
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 88.100 / 3. 88.100
libswscale 2. 5.100 / 2. 5.100
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
Any hint?

EDIT: it was a script permission problem, but now i got ffmpeg running forever and not producing any screenshot.
 

das329717

Member
May 25, 2018
928
0
16
It takes like 30 sec to generate screens of 128MB divx, waited more than 30 minutes for a 3GB mkv before killing the process.

The Screenshot plugin that uses the ffmpeg too on the other hand takes a 1 minute to generate all the screens of the 3GB mkv.

And no, my disk is not full.
 

shwetha17

Member
May 24, 2018
785
0
16
I get finally filemanager working, but there is still displayed

Code
[16.10.2013 11:48:12] FILE MANAGER: rar archive manipulation disabled (application not found)
[16.10.2013 11:48:12] FILE MANAGER: zip archive manipulation disabled (application not found)
[16.10.2013 11:48:12] FILE MANAGER: tar archive manipulation disabled (application not found)
[16.10.2013 11:48:12] FILE MANAGER: gzip archive manipulation disabled (application not found)
[16.10.2013 11:48:12] FILE MANAGER: bzip2 archive manipulation disabled (application not found)
I'm running rutorrent under nginx 1.5.6, Ubuntu, with www-data user. When I perform
Code
sudo -u www-data which gzip
I get as response
Code:
/bin/gzip
Therefore I guess the error-message might be misleading, cause the gzip is accessible under the web-user.

Hints what to check additionally? resp. where?
 

das329717

Member
May 25, 2018
928
0
16
thx, that helped really smiley.gif Some more questions/issues:

I needed to configure in the conf.php of filemanager e.g. gzip=/bin/ which was/is some kind of surprise. Cause on the one hand I would have assumed the same config-style as in the rutorrent-config.php, i.e. direct file-specification and not generic path. On the other hand I would have expected that this works without definition (e.g. $pathToExternals['zip'] = '';) as soon as its available via open_basedir (cause its accessed via the env-path) [which didn't work THAT way]. Did I miss something or do I have a misunderstanding reg. how the whole thing should work? huh.gif

A cosmetic one: Directories are displayed with the name, tooltip is with the name and the trailing / Any reason why they differ? I personally would have preferred to see the trailing / cause it confuses me little bit. But as mentioned a cosmetic issue.

And last but not least: When I try to get the Screenshot-plugin I get

Quote
File Manager ERROR: undefined - 200 Current ffmpeg/ffprobe not supported. Please compile a newer version. SyntaxError: JSON.parse: unexpected character​


When I run via bash I get

Quote
ffmpeg version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2000-2013 the Libav developers
built on Mar 31 2013 01:04:55 with gcc 4.7.2
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.​


Running avconv I get

Quote
rtorrent@arm:~$ avconv
avconv version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2000-2013 the Libav developers
built on Mar 31 2013 01:04:55 with gcc 4.7.2​


Any ideas? Is this resolvable resp. within your scope?
 

jith45

Member
May 25, 2018
960
0
16
This is a third-party plugin. May be it's developer will answer to your questions...
 

somus1735

Member
May 25, 2018
833
0
16
You can strip trailing / by going into the plugins settings page.
ffmpeg / screenshot issues is discussed in multiple threads on this forum.
 

dsouvik215

Member
May 25, 2018
896
0
16
updated german translation!
Maybe someone will use this before it gets into repo wink.gif
rename de.txt to de.js !!!
 

das329717

Member
May 25, 2018
928
0
16
Hi Guys (sorry for 'unburie' this topic embarrassed.gif),

I have my rtorrent running on a raspberry machine with raspbian (a debian distro)

On rtorrent i can see

Quote
[10.01.2014 00:36:32] FILE MANAGER: rar archive manipulation disabled (application not found)
[10.01.2014 00:36:32] FILE MANAGER: zip archive manipulation disabled (application not found)​


I installed unrar-free on my machine, and since i only have "unrar" and "unzip" i added this:
Quote
$pathToExternals = array(
"rar" => '/usr/bin/unrar', // Something like /usr/bin/php. If empty, will be founded in PATH.
"zip" => '/usr/bin/unzip',
);​

to my
Quote
/var/www/rutorrent/conf/config.php​

in the hope that would fix this problem. It didn't undecided.gif


Have been looking for an answer for the pass few hours, but can't find one. Anyone can help me?

Cheers
 

jith45

Member
May 25, 2018
960
0
16
This is a third-party plugin. And it's author doesn't use standard rutorrent configuration elements. See plugin's conf.php for details.
 

somus1735

Member
May 25, 2018
833
0
16
Novik65 Thanks for your reply!

Just did what you told me and got a good result.

I edited
Quote
/var/www/rutorrent/plugins/filemanager/conf.php​


With
Quote
$pathToExternals['rar'] = '/usr/bin/unrar';
$pathToExternals['zip'] = '';
$pathToExternals['unzip'] = '/usr/bin/unzip';
$pathToExternals['tar'] = '';​


and now on rtorrent i only have
Quote
[10.01.2014 00:36:32] FILE MANAGER: zip archive manipulation disabled (application not found)​


Any idea on this?