FAQ  •  Register  •  Login

Installation trouble - ffmpeg not found

<<

sbv3

Serviio newbie

Posts: 5

Joined: Fri Jun 03, 2011 8:54 pm

Post Sat Jun 04, 2011 10:54 pm

Installation trouble - ffmpeg not found

Hi!

After 3 days of trying to get a JRE onto my QNAP TS410
(all the installers/guides pointed to a old version - new version is 1.6.0_25 - had troubles finding the old version - anyways: solved),
I have the issue that everything runs (yeah!) but the Server does not find the ffmeg and quits.

Initially, I followed the instructions of viewtopic.php?f=14&t=2263, but those lead to an empty box with the need to factory reset because it installs it all into the tmp directories - which are RAM discs...great for newbies to find out!!! Or did I miss something? Anyways - solved.

Next, I followed viewtopic.php?f=14&t=2443.
This worked! Up to step 7. ;-)
This is because the server goes down because ffmpeg can't be found and before the console can connect.

Here is my log from the server:
2011-06-04 22:26:54,608 INFO [MediaServer] ------------------------------------------------------------------------
2011-06-04 22:26:54,616 INFO [MediaServer] Serviio DLNA media streaming server v 0.5.2 (rev. 4e3210bd9ff3)
2011-06-04 22:26:54,617 INFO [MediaServer] Petr Nejedly 2009-2011
2011-06-04 22:26:54,617 INFO [MediaServer] http://www.serviio.org
2011-06-04 22:26:54,617 INFO [MediaServer]
2011-06-04 22:26:54,618 INFO [MediaServer] Java 1.6.0_10-ea-Sun Microsystems Inc.
2011-06-04 22:26:54,618 INFO [MediaServer] OS Linux arm 2.6.33.2
2011-06-04 22:26:54,619 INFO [MediaServer] File encoding: UTF-8
2011-06-04 22:26:54,619 INFO [MediaServer] ------------------------------------------------------------------------
2011-06-04 22:26:55,451 INFO [RestletServer] Starting Restlet server exposed on 192.168.0.3:23423
2011-06-04 22:26:55,912 INFO [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2011-06-04 22:27:04,928 INFO [ProfilesDefinitionParser] Parsing Profiles definition
2011-06-04 22:27:10,384 INFO [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)
2011-06-04 22:27:12,777 INFO [ProfilesDefinitionParser] Added profile 'Samsung TV (B-series)' (id=2)
2011-06-04 22:27:14,352 INFO [UpdateChecker] Checking if a new version is available
2011-06-04 22:27:14,770 INFO [ProfilesDefinitionParser] Added profile 'XBox 360' (id=3)
2011-06-04 22:27:15,745 INFO [ProfilesDefinitionParser] Added profile 'Playstation 3' (id=4)
2011-06-04 22:27:17,840 INFO [ProfilesDefinitionParser] Added profile 'Samsung TV (A-series)' (id=5)
2011-06-04 22:27:19,050 INFO [WebServer] Socket buffer set to 65535 bytes
2011-06-04 22:27:19,052 INFO [Device] Created UPnP Device with UUID: c5db91ac-54f5-3daa-b7ba-6fea634c26b1, bound address: 192.168.0.3
2011-06-04 22:27:19,583 INFO [CompositeCacheManager] Creating cache manager from config file: /cache.ccf
2011-06-04 22:27:19,658 INFO [ThreadPoolManager] thread_pool.default PoolConfiguration = useBoundary = [true] boundarySize = [2000] maximumPoolSize = [150] minimumPoolSize = [4] keepAliveTime = [300000] whenBlockedPolicy = [RUN] startUpSize = [4]
2011-06-04 22:27:19,708 INFO [CompositeCacheConfigurator] Setting default auxiliaries to null
2011-06-04 22:27:19,709 INFO [CompositeCacheConfigurator] No special CompositeCacheAttributes class defined for key [jcs.default.cacheattributes], using default class.
2011-06-04 22:27:19,730 INFO [CompositeCacheConfigurator] setting defaultCompositeCacheAttributes to [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 100, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-06-04 22:27:19,731 INFO [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.default.elementattributes], using default class.
2011-06-04 22:27:19,733 INFO [CompositeCacheConfigurator] setting defaultElementAttributes to [ IS_LATERAL = true, IS_SPOOL = true, IS_REMOTE = true, IS_ETERNAL = true, MaxLifeSeconds = -1, IdleTime = -1, CreateTime = 1307226439732, LastAccessTime = 1307226439732, getTimeToLiveSeconds() = -1, createTime = 1307226439732 ]
2011-06-04 22:27:19,779 INFO [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.region.local_resetafterplay.elementattributes], using default class.
2011-06-04 22:27:19,881 INFO [ProfilesDefinitionParser] Added profile 'DirecTV HD-DVR' (id=6)
2011-06-04 22:27:20,003 INFO [LRUMemoryCache] initialized LRUMemoryCache for local_resetafterplay
2011-06-04 22:27:20,004 INFO [CompositeCache] Constructed cache with name [local_resetafterplay] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-06-04 22:27:20,006 INFO [CompositeCacheConfigurator] No special ElementAttribute class defined for key [jcs.region.local_default.elementattributes], using default class.
2011-06-04 22:27:20,007 INFO [LRUMemoryCache] initialized LRUMemoryCache for local_default
2011-06-04 22:27:20,007 INFO [CompositeCache] Constructed cache with name [local_default] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = 0 ]
2011-06-04 22:27:20,008 INFO [CompositeCacheConfigurator] Parsed regions [local_resetafterplay, local_default]
2011-06-04 22:27:20,008 INFO [CompositeCacheConfigurator] Finished configuration in 327 ms.
2011-06-04 22:27:22,491 INFO [ProfilesDefinitionParser] Added profile 'Samsung TV / player (C/D-series)' (id=7)
2011-06-04 22:27:22,952 INFO [ProfilesDefinitionParser] Added profile 'LG BD player' (id=8)
2011-06-04 22:27:26,799 INFO [ProfilesDefinitionParser] Added profile 'Sony Bravia TV' (id=9)
2011-06-04 22:27:30,294 INFO [ContentDirectoryDefinitionParser] Parsing ContentDirectory definition
2011-06-04 22:27:35,434 INFO [ProfilesDefinitionParser] Added profile 'Sony BD Player' (id=10)
2011-06-04 22:27:38,154 INFO [ProfilesDefinitionParser] Added profile 'Panasonic Viera' (id=12)
2011-06-04 22:27:40,073 INFO [ProfilesDefinitionParser] Added profile 'Toshiba Rezga' (id=13)
2011-06-04 22:27:40,224 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "/share/MD0_DATA/.qpkg/ffmpeg/ffmpeg": java.io.IOException: error=2, No such file or directory
2011-06-04 22:27:40,226 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: null
2011-06-04 22:27:40,233 INFO [DatabaseManager] Shutting down database
2011-06-04 22:27:40,674 INFO [AbstractTranscodingDeliveryEngine] Cleaning transcode engine and its data

Here is where ffmpeg is:
[/] # find -name ffmpeg
./mnt/ext/opt/ffmpeg
./mnt/ext/opt/ffmpeg/usr/bin/ffmpeg
./mnt/ext/usr/bin/ffmpeg
./share/MD0_DATA/.qpkg/ffmpeg

Here is the listing of ./share/MD0_DATA/.qpkg/ffmpeg:

[/share/MD0_DATA/.qpkg/ffmpeg] # ls -al
drwxr-xr-x 14 1000 1000 4096 Jan 10 22:23 ./
drwxrwxrwx 6 admin administ 4096 Jun 4 23:49 ../
-rw-r--r-- 1 1000 1000 0 Jun 4 21:54 .config
-rw-r--r-- 1 1000 1000 210 Jan 13 2010 .project
-rw-r--r-- 1 1000 1000 0 Jun 4 21:54 .version
-rw-rw-rw- 1 1000 1000 18092 Jan 13 2010 COPYING.GPLv2
-rw-rw-rw- 1 1000 1000 35147 Jan 13 2010 COPYING.GPLv3
-rw-rw-rw- 1 1000 1000 27032 Jan 13 2010 COPYING.LGPLv2.1
-rw-rw-rw- 1 1000 1000 7651 Jan 13 2010 COPYING.LGPLv3
-rw-rw-rw- 1 1000 1000 930 May 3 2010 CREDITS
-rw-rw-rw- 1 1000 1000 22696 Jan 10 21:58 Changelog
-rw-rw-rw- 1 1000 1000 60484 Jul 14 2010 Doxyfile
-rw-rw-rw- 1 1000 1000 491 Jan 13 2010 INSTALL
-rw-rw-rw- 1 1000 1000 2034 Jan 1 20:14 LICENSE
-rw-rw-rw- 1 1000 1000 18524 Jan 10 21:58 MAINTAINERS
-rw-rw-rw- 1 1000 1000 9577 Jan 10 21:57 Makefile
-rw-rw-rw- 1 1000 1000 176 Jan 13 2010 README
-rw-rw-rw- 1 1000 1000 30137 Jan 5 23:35 cmdutils.c
-rw-rw-rw- 1 1000 1000 9614 Jan 1 20:14 cmdutils.h
-rw-rw-rw- 1 1000 1000 975 Jan 13 2010 cmdutils_common_opts.h
-rw-rw-rw- 1 1000 1000 3318 Jan 1 20:14 common.mak
-rw-rw-rw- 1 1000 1000 22660 Jun 4 21:54 config.asm
-rw-rw-rw- 1 1000 1000 234 Jun 4 21:51 config.fate
-rw-rw-rw- 1 1000 1000 29799 Jun 4 21:54 config.h
-rw-rw-rw- 1 1000 1000 130941 Jun 4 21:51 config.log
-rw-rw-rw- 1 1000 1000 29337 Jun 4 21:54 config.mak
-rwxrwxrwx 1 1000 1000 101049 Jan 10 22:29 configure*
drwxrwxrwx 2 1000 1000 4096 Jan 10 22:23 doc/
-rw-rw-rw- 1 1000 1000 167410 Jan 10 21:58 ffmpeg.c
-rw-rw-rw- 1 1000 1000 104425 Jan 10 21:58 ffplay.c
drwxrwxrwx 2 1000 1000 4096 Jan 10 22:23 ffpresets/
-rw-rw-rw- 1 1000 1000 14833 Jan 1 20:14 ffprobe.c
-rw-rw-rw- 1 1000 1000 163779 Jan 10 21:57 ffserver.c
-rw-rw-rw- 1 1000 1000 1032 Jan 13 2010 ffserver.h
drwxrwxrwx 13 1000 1000 20480 Jan 10 22:23 libavcodec/
drwxrwxrwx 2 1000 1000 4096 Jan 10 22:23 libavcore/
drwxrwxrwx 2 1000 1000 4096 Jun 4 21:54 libavdevice/
drwxrwxrwx 3 1000 1000 4096 Jun 4 21:55 libavfilter/
drwxrwxrwx 2 1000 1000 12288 Jan 10 22:23 libavformat/
drwxrwxrwx 10 1000 1000 4096 Jan 10 22:23 libavutil/
drwxrwxrwx 2 1000 1000 4096 Jan 10 22:23 libpostproc/
drwxrwxrwx 7 1000 1000 4096 Jan 10 22:23 libswscale/
-rw-rw-rw- 1 1000 1000 3297 Jan 1 20:14 subdir.mak
drwxrwxrwx 4 1000 1000 4096 Jan 10 22:23 tests/
drwxrwxrwx 2 1000 1000 4096 Jan 10 22:23 tools/
-rw-rw-rw- 1 1000 1000 33 Jun 4 21:54 version.h
-rwxrwxrwx 1 1000 1000 1362 Jan 10 22:30 version.sh*


Where can I configure this, and what should I do. Pls note, that I am an absolute LINUX Newbee and have no clue on about 98% of all commands. But I usually find my way around. Can you guys help me out?

Thanks,
Stefan.
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Tue Jun 07, 2011 8:24 pm

Re: Installation trouble - ffmpeg not found

Can you run FFmpeg from the command prompt? Did you compile it? Is /opt/bin in your path? Looks like you're using a different location. Check with echo $PATH. Your NAS has the same type of CPU as the 419 so that guide should be the most appropriate, especially for compiling FFmpeg. Perhaps try PMing the author of that thread?
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

sbv3

Serviio newbie

Posts: 5

Joined: Fri Jun 03, 2011 8:54 pm

Post Tue Jun 07, 2011 9:04 pm

Re: Installation trouble - ffmpeg not found

Hi!

(Sorry for spamming you on the PM - somehow the message didn't go out, but was stuck in the out box and I just tried different access methods...)

1) Yes I can run ffmpeg from the command. When I run it, I get

[~] # ffmpeg
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/opt/cross-project/arm/marvell/arm-none-linux-gnueabi/libc/marvell-f/usr --enable-cross-compile --cross-prefix=arm-none-linux-gnueabi- --disable-static --enable-shared --arch=arm --disable-optimizations
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
built on Apr 27 2011 02:20:22, gcc: 4.2.1
At least one output file must be specified

2) echo $PATH delivers:
[~] # echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:/usr/local/jre/bin

So, yes, opt/bin is in, but /share/MD0_DATA/.qpkg/ffmpeg is not.

3) I checked your other post (http://pcloadletter.co.uk/2011/02/07/se ... h-arm-cpu/) and it said, that if it reads "Fabrice Bellard", then something went wrong. Where to go from here?

Options (I can think of):
a) recompile (how? using the directions given on the pcloader-page, or using it like on the 419P+ page or on the viewtopic.php?f=14&t=1738)
b) remove it first? (again: how)
c) somehow map the paths over? Saw that whoever did that had issues with lame afterwards...

My prefered choice would be a) following your pcloader-page - but I don't know if this simply trashes ffmep all together ;-)

Cheers,
sbv3.
<<

sbv3

Serviio newbie

Posts: 5

Joined: Fri Jun 03, 2011 8:54 pm

Post Tue Jun 07, 2011 10:42 pm

Re: Installation trouble - ffmpeg not found

There is one more thing: the NAS tells me that my version of Java is 90 days time limited. How can I prolong this? I installed ejre-1_6_0_10-ea-b39-linux-armv5-sflt-eabi-headless-eval-31_jul_2009.tar.gz

Thanks,
sbv3
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Tue Jun 07, 2011 10:50 pm

Re: Installation trouble - ffmpeg not found

The PM thing is a quirk of this forum software. Stuff shows as being in your outbox until the recipient actually reads it...

For Java follow the link in my guide on pcloadletter. You will need to sign up with Oracle to get the download which is irritating but it isn't time-limited. It looks like you've picked up some other test version.

As for FFmpeg, I'd follow the QNAP 419 guide as best you can, it's likely to be more appropriate. Once you compile the newer FFmpeg you will need to make sure that its location appears sooner in the path than the FFmpeg that was built in to the QNAP distro. I saw there was something in the guide about editing the Optware settings, whIch contained a path mod.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

sbv3

Serviio newbie

Posts: 5

Joined: Fri Jun 03, 2011 8:54 pm

Post Wed Jun 08, 2011 8:15 am

Installation trouble - ffmpeg not found

As for the Java: I used the .qpkg installer since I have no clue how to install Java ;-)
Can you help me out with the concrete commands to 1) uninstall the current version and 2) how to install version 1.6.0_25?
sorry for being sooo increadibly unknowledgable...

Reg ffmpeg: I will follow the instructions. I assume no uninstall needed prior to the new installation., correct?

Cheers,
sbv3
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Wed Jun 08, 2011 10:47 pm

Re: Installation trouble - ffmpeg not found

Not sure about the Java question. You may need to find out how to uninstall the package you have now, but it sounds like it will be QNAP specific - which I have no clue about. There must be a QNAP forum where you can get help on that in particular.

For FFmpeg the two versions can coexist - you just need to make sure the newer one has precedence in the path order. That 419 guide will sort that for you.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jun 09, 2011 8:21 am

Re: Installation trouble - ffmpeg not found

patters wrote:Nmake sure the newer one has precedence in the path order

or pass -Dffmpeg.location=path/to/ffmpeg property in the start shell script.
<<

sbv3

Serviio newbie

Posts: 5

Joined: Fri Jun 03, 2011 8:54 pm

Post Fri Jun 10, 2011 10:08 pm

Re: Installation trouble - ffmpeg not found

Hi!

OK - I got stuck again. ffmpeg doesn't seem to fly...
BTW I postponed the Java replacement to later ;-)

echo $PATH delivers:
/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:/usr/local/jre/bin

The error I am getting is:
2011-06-10 21:55:48,265 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "/opt/bin": java.io.IOException: error=13, Permission denied
2011-06-10 21:55:48,268 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: null

When I do the ffmpeg in the /opt/bin I get:

[/opt/bin] # ffmpeg
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/opt/cross-project/arm/marvell/arm-none-linux-gnueabi/libc/marvell-f/usr --enable-cross-compile --cross-prefix=arm-none-linux-gnueabi- --disable-static --enable-shared --arch=arm --disable-optimizations
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
built on Apr 27 2011 02:20:22, gcc: 4.2.1
At least one output file must be specified

How can I check which version of ffmpeg is running?
How can I find all the installs at all?

Cheers,
sbv3
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Jun 11, 2011 9:59 pm

Re: Installation trouble - ffmpeg not found

path to ffmpeg must include the ffmpeg executable itself, in your case /opt/bin/ffmpeg

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 14 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.