Page 1 of 1

Serviio crashes on library scan.

PostPosted: Sun Sep 30, 2012 4:19 pm
by dzan
Hi,

Running the latest version on a headless ubuntu server. When I added a directory with media files nothing happened. After checking the logs I see the DAO fails.. When I force a library update after the initial one no more errors come up in the log but there is no media added neither. I'm guessing it marked the whole folder as checked the first time or something?

Here is my log:
http://paste.ubuntu.com/1252095/

Thanks

Re: Serviio crashes on library scan.

PostPosted: Mon Oct 01, 2012 9:10 am
by dzan
No one knows? I'd like to test it all out before my evaluation period ends..

Re: Serviio crashes on library scan.

PostPosted: Mon Oct 01, 2012 10:01 am
by Illico
Could you check your ffmpeg version ?
You have to use this version http://www.serviio.org/download
or latest ffmpeg build (take care of config library)

Re: Serviio crashes on library scan.

PostPosted: Mon Oct 01, 2012 10:09 am
by dzan
Hi,

I build it myself using this guide: http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux
Instead of getting the latest ( only for ffmpeg itself ) from git I downloaded and used the source you linked.

When I tried checking the version I does fail with:
  Code:
ffmpeg: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory


So something must be wrong. It compiled and built perfectly.. strange. I tried removing it and installing the .deb I build over again but same result. I don't mind using the version from the ubuntu repo but then I would miss features right? ( Like the mediabrowser because of the rtmp missing? ) Any ideas?

dzan

Re: Serviio crashes on library scan.

PostPosted: Mon Oct 01, 2012 4:05 pm
by zip
The DAO exception is weird and I've seen similar when the system shuts down. You shoud be able to force refresh though, the folder is not marked, it's the files that are marked.

Re: Serviio crashes on library scan.

PostPosted: Mon Oct 01, 2012 4:10 pm
by dzan
Hi,

I fixed that one by manually copying the lib file that was built ( following the wiki ) to the /lib folder. After that everything "worked" but the video ( using both an android phone and the mediabrowser ) was terrible even on "medium". Purple spots & very blocky. The audio had these high frequency squeeks.

I figured something must have been wrong with the ffmpeg library and finally tried the one from the repository hoping that it would fix it. Now I can't even play video anymore... Uninstalled that one again and installed my custom build ffmpeg lib... still broke ( also tried restarting serviio ).

Basically I broke it good now. Is there something I should do when un(in)stalling ffmpeg to get it working again except from restarting?

Thx

Re: Serviio crashes on library scan.

PostPosted: Mon Oct 01, 2012 4:19 pm
by zip
can you execute ffmpeg from command line? What is the output?

Re: Serviio crashes on library scan.

PostPosted: Mon Oct 01, 2012 4:22 pm
by dzan
Sure;

ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
built on Sep 30 2012 17:25:32 with gcc 4.5.2
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx --enable-librtmp --enable-libxvid
libavutil 51. 64.100 / 51. 64.100
libavcodec 54. 33.100 / 54. 33.100
libavformat 54. 15.102 / 54. 15.102
libavdevice 54. 1.100 / 54. 1.100
libavfilter 3. 1.100 / 3. 1.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Hyper fast Audio and Video encoder

Re: Serviio crashes on library scan.

PostPosted: Mon Oct 01, 2012 11:03 pm
by zip
it looks good. The pixelated output you have is in MediaBrowser or on a DLNA device? If MB it might be down to Flash plugin - try to access it from a different (Windows?) PC.

Re: Serviio crashes on library scan.

PostPosted: Thu Oct 04, 2012 2:41 pm
by skshimer
I have been trying to build FFmpeg on Ubuntu 10.04. My build also results in the error message
error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory.

This happens checking the version of rtmpdump or ffmpeg. Using find, I have located this library in three locations (all /usr/local/*) and added them to my $PATH. Still get the same error message.

I am am using the installation directions posted in the wiki (http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux) using the libRTMP, libmp3lame and FFmpeg source codes supplied on http://www.serviio.org/download. I am not sure of the recommended installation order since the other than adding a warning to http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux regarding the proper files to use the wiki has not been updated. I have tried to complete the installation by following the instructions through "Build and install libvpx" followed by installing the libRTMP source code, libmp3lame and finally FFmpeg.

I am assuming that the problem is occurring during the installation of librtmp since rtmpdump cannot find the librtmp.so.0.

Any help is greatly appreciated.

Thanks

Re: Serviio crashes on library scan.

PostPosted: Thu Oct 04, 2012 9:31 pm
by skshimer
Nevermind!!

I finally got this all up and working today. I used the instructions outlined above but used the downloaded FFmpeg, lame and rtmpdump. One thing I noticed is that I needed to append my $PATH to include /usr/local/lib and used ldconfig after every step. I installed lame with default .configure, make and install from the downloaded source first, x264,libvpx as in the wiki instructions, rtmpdump from the download all the wiki instructions, and finally installed the downloaded ffmpeg source with the settings contained in the wiki. It works! I hope this helps anyone else having problems.

Best

Re: Serviio crashes on library scan.

PostPosted: Fri Oct 05, 2012 6:31 pm
by dzan
Image

This is an example of what I get in the mediabrowser, on any system I tried so it can't be the flashplayer or something on the renderer. Any ideas? The sound is terrible too! When I use the original quality all is fine.

Re: Serviio crashes on library scan.

PostPosted: Sat Oct 06, 2012 10:50 am
by zip

Re: Serviio crashes on library scan.

PostPosted: Sat Oct 06, 2012 11:25 am
by dzan
zip wrote:maybe it's similar to this? viewtopic.php?f=5&t=7150&hilit=blue+flash&start=10#p52148


The serviio log does indeed say:
"Process ffmpeg has a return code of 137! This is a possible error."

But I tried uninstalling libvdpau and that didn't fix it. Also it's not a flash issue because the same happens streaming to my phone & such.
I'll best open a topic on the ubuntu forum too I think?

Re: Serviio crashes on library scan.

PostPosted: Sun Oct 07, 2012 12:36 pm
by zip
There shoulf be a .stf file in serviio temp directory created by the transcoder. Wait for ffmpeg to finish, then rename the file to .flv and try to play it in VLC - same result?