FAQ  •  Register  •  Login

Serviio Linux not finding ffmpeg

<<

Anaerin

Serviio newbie

Posts: 16

Joined: Sat Apr 30, 2011 7:16 am

Post Wed Apr 29, 2015 1:58 am

Serviio Linux not finding ffmpeg

Using 1.5.2, under Ubuntu, the log states:

  Code:
2015-04-28 19:02:14,866 ERROR [MediaServer] FFMPEG not found. Serviio will not work properly.
2015-04-28 19:02:14,887 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "dcraw": error=2, No such file or directory
java.io.IOException: Cannot run program "dcraw": error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
        at org.serviio.external.ProcessExecutor.run(ProcessExecutor.java:135)
Caused by: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:187)
        at java.lang.ProcessImpl.start(ProcessImpl.java:134)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        ... 1 more
2015-04-28 19:02:14,905 WARN  [MediaServer] DCRAW not found. Support for raw image files will be missing.


I understand the DCRaw not working (I don't have it installed) but running ffmpeg -version reports:

  Code:
rjohnston@mythbuntu:/usr/share/serviio/log$ ffmpeg -version
ffmpeg version 0.8.13-6:0.8.13-0ubuntu0.13.10.1, Copyright (c) 2000-2014 the Libav developers
  built on Jul 15 2014 13:53:49 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
ffmpeg 0.8.13-6:0.8.13-0ubuntu0.13.10.1
libavutil    51. 22. 2 / 51. 22. 2
libavcodec   53. 35. 0 / 53. 35. 0
libavformat  53. 21. 1 / 53. 21. 1
libavdevice  53.  2. 0 / 53.  2. 0
libavfilter   2. 15. 0 /  2. 15. 0
libswscale    2.  1. 0 /  2.  1. 1
libpostproc  52.  0. 0 / 52.  0.100
rjohnston@mythbuntu:/usr/share/serviio/log$ which ffmpeg
/usr/bin/ffmpeg


setting "-Dffmpeg.location=/usr/bin/ffmpeg" isn't helping at all, either. Any pointers?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Apr 30, 2015 4:12 pm

Re: Serviio Linux not finding ffmpeg

First - your version is pretty old and won't work very well.
Second - maybe the user that runs serviio doesn't have access to your ffmpeg?
<<

mellowcandle

Serviio newbie

Posts: 2

Joined: Fri May 01, 2015 1:55 pm

Post Fri May 01, 2015 1:59 pm

Re: Serviio Linux not finding ffmpeg

On console type:
$ which ffmpeg
/usr/local/bin/ffmpeg
You should get something similar to the above.
and change the ffmpeg.location parameter in serviio.sh
-Dffmpeg.location=/usr/local/bin/ffmpeg
<<

Anaerin

Serviio newbie

Posts: 16

Joined: Sat Apr 30, 2011 7:16 am

Post Sun May 03, 2015 4:25 pm

Re: Serviio Linux not finding ffmpeg

zip wrote:First - your version is pretty old and won't work very well.

It's the most recent version listed in Ubuntu 14.04.1 LTS. Is there a PPA I can use for a more recent build?
zip wrote:Second - maybe the user that runs serviio doesn't have access to your ffmpeg?

Checked, and the user that runs serviio has access to ffmpeg.
mellowcandle wrote:On console type:
$ which ffmpeg
/usr/local/bin/ffmpeg
You should get something similar to the above.
and change the ffmpeg.location parameter in serviio.sh
-Dffmpeg.location=/usr/local/bin/ffmpeg

As mentioned in the original message:
Anaerin wrote:
  Code:
rjohnston@mythbuntu:/usr/share/serviio/log$ which ffmpeg
/usr/bin/ffmpeg

setting "-Dffmpeg.location=/usr/bin/ffmpeg" isn't helping at all.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue May 05, 2015 8:22 pm

Re: Serviio Linux not finding ffmpeg

Can you post detailed log of the server starting?
<<

mwg255

Serviio newbie

Posts: 2

Joined: Sat May 09, 2015 11:17 am

Post Sat May 09, 2015 11:24 am

Re: Serviio Linux not finding ffmpeg

Hi - I also have the same error. I had the problem with Kubuntu 14.04 64 bit LTS and now I'm running Opensuse 13.2 64 bit with oracle java version 8.45 installed.

I have the detail log here from my serviio server starting:

2015-05-09 21:15:55,439 WARN [ProcessExecutor] Cannot retrieve results, output reader is null
2015-05-09 21:15:55,439 WARN [MetadataExtractionCoordinator] Skipping processing metadata for an unsupported file (/media/sdb2/Video/A Dangerous Man.mkv). Message: Unknown video file type.
2015-05-09 21:15:55,439 DEBUG [PendingFilesCache] Adding file '/media/sdb2/Video/A Dangerous Man.mkv' for the pending files cache
2015-05-09 21:15:55,439 DEBUG [MediaFileIndexer] Found file 'A Good Day To Die Hard (2013).m4v', checking if it's already in the Library
2015-05-09 21:15:55,439 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item /media/sdb2/Video/A Good Day To Die Hard (2013).m4v
2015-05-09 21:15:55,439 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: /media/sdb2/Video/A Good Day To Die Hard (2013).m4v, ignore case: false
2015-05-09 21:15:55,439 DEBUG [MediaItemDAOImpl] Media item /media/sdb2/Video/A Good Day To Die Hard (2013).m4v doesn't exist in DB yet
2015-05-09 21:15:55,439 DEBUG [MediaFileIndexer] File not in Library, will add it
2015-05-09 21:15:55,439 DEBUG [LibraryHelper] Checking if the file is complete using file lock
2015-05-09 21:15:55,439 DEBUG [VideoExtractionStrategy] Extracting metadata of video file: /media/sdb2/Video/A Good Day To Die Hard (2013).m4v
2015-05-09 21:15:55,439 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: /media/sdb2/Video/A Good Day To Die Hard (2013).m4v
2015-05-09 21:15:55,439 DEBUG [ProcessExecutor] Starting ffmpeg -i /media/sdb2/Video/A Good Day To Die Hard (2013).m4v
2015-05-09 21:15:55,440 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": error=2, No such file or directory
java.io.IOException: Cannot run program "ffmpeg": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at org.serviio.external.ProcessExecutor.run(ProcessExecutor.java:135)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
<<

mwg255

Serviio newbie

Posts: 2

Joined: Sat May 09, 2015 11:17 am

Post Sun May 10, 2015 6:20 am

Re: Serviio Linux not finding ffmpeg

I think I've found the problem - ffmpeg seems to have been replaced in linux and for serviio to work you need to compile ffmpeg. Follow the instructions on this page and then restart and serviio works fine: http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 39 guests

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