Page 1 of 1

SOLVED-Serviio 1.5 NAS doesn't find video,ffmpeg.exe error

PostPosted: Mon Oct 26, 2015 8:28 pm
by woodrook
Hi everybody, i've installed Serviio v 1.5.2 with Java 1.8 and ffmpeg2.

Music and Pictures working good but Mediaserver doesn't see any of my video files. Looking at the log (DEBUG mode) this is the result:

********************************************************************************************************************************************
2015-10-26 20:21:20,183 DEBUG [MediaFileIndexer] Found file 'prova.avi', checking if it's already in the Library
2015-10-26 20:21:20,183 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item /mnt/HD_a2/Cartoni/One Piece/Ep 329-332/prova.avi
2015-10-26 20:21:20,183 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: /mnt/HD_a2/Cartoni/One Piece/Ep 329-332/prova.avi, ignore case: false
2015-10-26 20:21:20,191 DEBUG [MediaItemDAOImpl] Media item /mnt/HD_a2/Cartoni/One Piece/Ep 329-332/prova.avi doesn't exist in DB yet
2015-10-26 20:21:20,191 DEBUG [MediaFileIndexer] File not in Library, will add it
2015-10-26 20:21:20,191 DEBUG [LibraryHelper] Checking if the file is complete using file lock
2015-10-26 20:21:20,192 DEBUG [VideoExtractionStrategy] Extracting metadata of video file: /mnt/HD_a2/Cartoni/One Piece/Ep 329-332/prova.avi
2015-10-26 20:21:20,192 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: /mnt/HD_a2/Cartoni/One Piece/Ep 329-332/prova.avi
2015-10-26 20:21:20,193 DEBUG [ProcessExecutor] Starting lib\ffmpeg.exe -i /mnt/HD_a2/Cartoni/One Piece/Ep 329-332/prova.avi
2015-10-26 20:21:20,195 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "lib\ffmpeg.exe": error=2, No such file or directory
java.io.IOException: Cannot run program "lib\ffmpeg.exe": 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)
... 1 more
2015-10-26 20:21:20,196 WARN [ProcessExecutor] Cannot retrieve results, output reader is null
2015-10-26 20:21:20,196 WARN [MetadataExtractionCoordinator] Skipping processing metadata for an unsupported file (/mnt/HD_a2/Cartoni/One Piece/Ep 329-332/prova.avi). Message: Unknown video file type.
2015-10-26 20:21:20,197 DEBUG [PendingFilesCache] Adding file '/mnt/HD_a2/Cartoni/One Piece/Ep 329-332/prova.avi' for the pending files cache
********************************************************************************************************************************************

It's look like an ffmpeg.exe problem but i don't know what i can do to solve it.

Any suggestion?

Thanks!!

Gianluca

Re: Serviio 1.5 on NAS doesn't find video, ffmpeg.exe error

PostPosted: Mon Nov 09, 2015 9:10 am
by woodrook
Solved adding the following text to file /ffp/opt/serviio/bin/serviio.sh in the line where the JAVA_OPTS are defined:

  Code:
-Dffmpeg.location=ffmpeg


So the whole line should now look like this:
  Code:
# Setup Serviio specific properties
JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.fixedPointEncoders -Dserviio.defaultTranscodeFolder=/ffp/tmp -Dserviio.home=$SERVIIO_HOME -Dffmpeg.location=ffmpeg"

Re: SOLVED-Serviio 1.5 NAS doesn't find video,ffmpeg.exe err

PostPosted: Mon Nov 16, 2015 10:21 am
by patters
Making this modification will cause Serviio to use the system's regular build of ffmpeg - not the one from Serviio. It is likely to be missing support for the many additional libraries which Serviio requires (libass, librtmp, libx264, etc.).

Re: SOLVED-Serviio 1.5 NAS doesn't find video,ffmpeg.exe err

PostPosted: Tue Nov 17, 2015 8:21 am
by daconas
hello, can you help my i update servio 1.4 to 1.5.2 and configure the same as 1.4 but the televison tell me no picture/ musik /video serviio consolle found 862 files and se tv is very slow
i have a ds 110j ist it to old .

Re: SOLVED-Serviio 1.5 NAS doesn't find video,ffmpeg.exe err

PostPosted: Wed Nov 18, 2015 3:32 pm
by patters
The DS110j is old and will be very slow indeed. I think its ARMv5 CPU is only 800MHz. I'm not sure how possible it would be to fit the OS and Serviio in 128MB RAM.
It does run DSM 5.2 though. Can you check that ffmpeg works by running the following from an SSH session logged in as root:
  Code:
/var/packages/Serviio/target/bin/ffmpeg

Re: SOLVED-Serviio 1.5 NAS doesn't find video,ffmpeg.exe err

PostPosted: Thu Nov 19, 2015 8:20 am
by daconas
Hello,

i get this

/volume1/@appstore/minidlna/etc$ /var/packages/Serviio/target/bin/ffmpeg
ffmpeg version 2.7.1-compiled_by_patters_for_Serviio Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201309-2126.3d181f66 64K MAXPAGESIZE ALIGN)
configuration: --arch=arm --cpu=armv5te --enable-cross-compile --cross-prefix=/usr/local/arm-none-linux-gnueabi/bin/arm-marvell-linux-gnueabi- --target-os=linux --prefix=/usr/local/arm-none-linux-gnueabi --enable-shared --disable-static --enable-pic --disable-ffplay --disable-ffserver --disable-neon --disable-vfp --disable-armv6 --disable-armv6t2 --disable-debug --enable-pthreads --enable-libshine --enable-librtmp --enable-libass --enable-libspeex --enable-gpl --enable-libx264 --enable-gnutls --pkg-config=pkg-config --extra-version=compiled_by_patters_for_Serviio
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 36.100 / 56. 36.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 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'

I have a ds414 dualcore but i have a fear to install on it.
´the ds110 has much problems with it and shut down alone something ohter.
serviio works well or ist some problems in this version ?
thanks

Re: SOLVED-Serviio 1.5 NAS doesn't find video,ffmpeg.exe err

PostPosted: Sat Nov 21, 2015 1:06 am
by patters
Ok, so there's nothing wrong with FFmpeg. I think the system is just struggling due to a severe shortage of RAM.
Yes Serviio will work fine on the DS414.

Re: SOLVED-Serviio 1.5 NAS doesn't find video,ffmpeg.exe err

PostPosted: Tue Nov 24, 2015 5:23 am
by daconas
ok thank you, But the CPU is by 32% and the RAM by 51%

I notice a slight delay on Serviio 1.4 compared to the standard media server is it by serviio 1.5 more clearly or remains the same?
I need to update when the DSM 6.x rollout comes?

Re: SOLVED-Serviio 1.5 NAS doesn't find video,ffmpeg.exe err

PostPosted: Thu Dec 03, 2015 11:54 am
by woodrook
patters wrote:Making this modification will cause Serviio to use the system's regular build of ffmpeg - not the one from Serviio. It is likely to be missing support for the many additional libraries which Serviio requires (libass, librtmp, libx264, etc.).


Ok, good. How can I fix my problem making Serviio use the build of ffmpeg from Serviio?

Thanks

Re: SOLVED-Serviio 1.5 NAS doesn't find video,ffmpeg.exe err

PostPosted: Fri Jan 08, 2016 8:00 am
by paniko
After upgraded to serviio 1.5 I have the same issue but I'm on a ds713+

Re: SOLVED-Serviio 1.5 NAS doesn't find video,ffmpeg.exe err

PostPosted: Sat Mar 26, 2016 5:14 pm
by daconas
Hello, do now i am on dsm 6 on my DS414 with serviio 1.6 and Java ejdk-8u77-linux-arm-sflt
can you help me i have installed serviio 1.6 auf snology DS414 an i can not connect to console via cellphone/android only with integratet console but he foud no files
on my ds112 works well i can conect via cellphone/android an add some sources.
why can not connect and he dont finde some files ( he get error with Name of the Videofiles ) i think he get in the Direktory but ther is any problem.
by adding music i get error 500
Logfile