Page 1 of 1

FFMPEG not found. Serviio will not work properly

PostPosted: Sat Nov 21, 2015 10:24 pm
by janrou
Hi,

What is the problem with Serviio 1.5.2 for Windows 7?

I finally find the problem after reinstalling and struggling with "No media files". Ffmpeg.exe is not found by Serviio. Serviio is started from the command prompt using serviio.bat and serviio-console.bat. Does ffmpeg.exe work? Yes it does from the command prompt, as shown in second attachement.

I conclude it must be some kind of bug.

Regards
Jan

Attachments
Snippet from Serviio.log
Ffmpeg.exe console output
System dat from Serviio.log

Here is the important part of the Serviio.log:
2015-11-21 23:04:16,862 DEBUG [FFMPEGWrapper] Invoking FFMPEG to check if it exists of path C:\Program Files\Serviio\lib\ffmpeg.exe
2015-11-21 23:04:16,862 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\lib\ffmpeg.exe
2015-11-21 23:04:16,878 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "cmd": CreateProcess failed, error=216
java.io.IOException: Cannot run program "cmd": CreateProcess failed, error=216
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at org.serviio.external.ProcessExecutor.run(ProcessExecutor.java:135)
Caused by: java.io.IOException: CreateProcess failed, error=216
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 1 more
2015-11-21 23:04:16,878 ERROR [MediaServer] FFMPEG not found. Serviio will not work properly.
2015-11-21 23:04:16,878 DEBUG [DCRawWrapper] Invoking DCRAW to check if it exists of path C:\Program Files\Serviio\lib\dcraw.exe
2015-11-21 23:04:16,878 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\lib\dcraw.exe
2015-11-21 23:04:16,878 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "cmd": CreateProcess failed, error=216
java.io.IOException: Cannot run program "cmd": CreateProcess failed, error=216
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at org.serviio.external.ProcessExecutor.run(ProcessExecutor.java:135)
Caused by: java.io.IOException: CreateProcess failed, error=216
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 1 more
2015-11-21 23:04:16,878 WARN [MediaServer] DCRAW not found. Support for raw image files will be missing.


ffmpeg output started from the command prompt:
C:\Program Files\Serviio\lib>"C:\Program Files\Serviio\lib\ffmpeg.exe" -i "E:\Video\SomeVideo.mkv"
ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 19 2014 22:12:09 with gcc 4.7.2 (GCC)
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtm
p --enable-fontconfig --enable-libfreetype --enable-zlib --enable-libx264 --enable-libspeex --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype
-lfribidi -lz' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config

libavutil 54. 14.100 / 54. 14.100
libavcodec 56. 12.101 / 56. 12.101
libavformat 56. 14.100 / 56. 14.100
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, matroska,webm, from 'E:\Video E\SomeVideo.mkv':
Metadata:
encoder : libmakemkv v1.7.9 (1.2.0/1.1.0) win(x64-release)
creation_time : 2012-12-23 21:23:05
Duration: 02:04:54.11, start: 0.000000, bitrate: 5865 kb/s
Chapter #0:0: start 0.000000, end 293.400000
Metadata:
title : Chapter 01
Chapter #0:1: start 293.400000, end 640.200000
Metadata:
title : Chapter 02
Chapter #0:2: start 640.200000, end 876.000000
Metadata:
title : Chapter 03
Chapter #0:3: start 876.000000, end 1227.600000
Metadata:
title : Chapter 04
...
Chapter #0:23: start 7251.560000, end 7494.112000
Metadata:
title : Chapter 24
Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 6800 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc
Stream #0:1(jpn): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
Metadata:
title : 3/2+1
Stream #0:2(jpn): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
Metadata:
title : 3/2+1
At least one output file must be specified

C:\Program Files\Serviio\lib>

Here is my system data from the log file:
2015-11-21 23:04:15,162 INFO [MediaServer] Serviio DLNA media streaming server v 1.5.2 (rev. 4b9ce176daa1)
2015-11-21 23:04:15,162 INFO [MediaServer] Petr Nejedly 2009-2015
2015-11-21 23:04:15,162 INFO [MediaServer] http://www.serviio.org
2015-11-21 23:04:15,162 INFO [MediaServer]
2015-11-21 23:04:15,162 INFO [MediaServer] Java 1.8.0_40-Oracle Corporation x86
2015-11-21 23:04:15,162 INFO [MediaServer] OS Windows 7 6.1
2015-11-21 23:04:15,162 INFO [MediaServer] File encoding: windows-1252
2015-11-21 23:04:15,162 INFO [MediaServer] Headless mode enabled: true
2015-11-21 23:04:15,162 INFO [MediaServer] User: Jan
2015-11-21 23:04:15,162 INFO [MediaServer] User home dir: C:\Users\Jan
2015-11-21 23:04:15,162 INFO [MediaServer] Temp dir: C:\Users\Jan\AppData\Local\Temp\