FAQ  •  Register  •  Login

Media Folder Location /manually add files

<<

swexpert

Serviio newbie

Posts: 4

Joined: Mon Oct 15, 2012 3:43 pm

Post Mon Oct 15, 2012 3:54 pm

Media Folder Location /manually add files

Hi,
I am a freelance IT consultant from Chandigarh, India.

Just installed Serviio for testing for a client. Looks like a nice product. However, have been banging my head against multiple computers for last 2 days. Everything has been installed fine but couldn't figure out where to add media files (I know about the console, but read on to understand).

Server: Linux CentOS (No GUI)
Console: Windows remote machine (With great difficulty realized can't run console on text mode Linux)

Now when you add content from console, clicking on add local folder shows Local machine (windows folders). Quiet logical, but when the console is connected to a remote server, it should show the servers folders. There is no way to edit the entry so as to use /folder1/subfolder via the console app.

Is there any way to manually edit the media folder location anywhere within the Serviio config files? (yes looked at docs, searched forums etc but to no avail)

A simple things would have been to add a sample video or audio file to the default installation of Serviio. That way one would have known where the media folder is. What permissions should the files/folders have?

Any guide/leads/directions/links are welcome.

Thanks and regards,
Inderjeet S Sodhi
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Mon Oct 15, 2012 4:18 pm

Re: Media Folder Location /manually add files

Just use the add path button on the console, rather than the add local one, then you can enter the full path. The permissions should be set so that the user you run serviio.sh under has read access.

Alternatively install this web ui viewtopic.php?f=17&t=5330 (requires curl for php to be installed), or use my android app, ServiiDroid, if you have an android device.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

swexpert

Serviio newbie

Posts: 4

Joined: Mon Oct 15, 2012 3:43 pm

Post Mon Oct 15, 2012 4:52 pm

Re: Media Folder Location /manually add files

Hello Will,
Thanks for the prompt reply. The included console didn't work.
Yes, I did try both the webUIs before posting and was able to add the folder to the library list. Changed permissions to 777 just to rule out for the library folder, still no go. The folder does show in the mediabrowser list, but I believe even if I add /someone/somewhere/non-existent it will show up in the list, regardless of whether Serviio can access that folder or not (Just an assumption).

Can't get rid of the "No content available" message. Will it show this message If the server is unable to execute ffmpeg?

If i do an #ffmpeg -i <filename> it does show up the information and (obviously) says at least one output file must be specified. So am assuming ffmpeg is working.

Serviio Log show some warnings and errors:
======================================
2012-10-15 10:34:30,685 WARN [FeedUpdaterThread] Failed to retrieve online item information for rtmp://live.ilive.to/edge playpath=vy53hnhoedewi27 swfUrl=http://cdn.static.ilive.to/jwplayer/player.swf pageUrl=http://www.ilive.to/view/40499/ABC tcUrl=rtmp://live.ilive.to/edge. It might not play.
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveMetadata(FeedUpdaterThread.java:291)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:209)
at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:102)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.metadata.FFmpegMetadataRetriever.validateCodecsFound(FFmpegMetadataRetriever.java:382)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:86)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveOnlineMetadata(FFmpegMetadataRetriever.java:124)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveMetadata(FeedUpdaterThread.java:268)
... 2 more
<-----Snipped ---->
2012-10-15 12:19:08,634 INFO [LibraryAdditionsCheckerThread] Started looking for newly added files
2012-10-15 12:19:08,637 INFO [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2012-10-15 12:19:08,655 INFO [PlaylistMaintainerThread] Started looking playlist changes
2012-10-15 12:19:08,684 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-10-15 12:19:08,684 WARN [ProcessExecutor] Cannot retrieve results, stderrReader is null
2012-10-15 12:19:08,708 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-10-15 12:19:08,708 WARN [ProcessExecutor] Cannot retrieve results, stderrReader is null
2012-10-15 12:24:08,735 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-10-15 12:24:08,736 WARN [ProcessExecutor] Cannot retrieve results, stderrReader is null
2012-10-15 12:24:08,752 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-10-15 12:24:08,753 WARN [ProcessExecutor] Cannot retrieve results, stderrReader is null
2012-10-15 12:29:08,767 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-10-15 12:29:08,768 WARN [ProcessExecutor] Cannot retrieve results, stderrReader is null
2012-10-15 12:29:08,791 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-10-15 12:29:08,791 WARN [ProcessExecutor] Cannot retrieve results, stderrReader is null
2012-10-15 12:30:31,436 INFO [RestletProxy] Starting WebUI
2012-10-15 12:30:31,440 INFO [RestletProxy] Starting Serviio WebUI on port 8123
2012-10-15 12:34:08,806 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-10-15 12:34:08,806 WARN [ProcessExecutor] Cannot retrieve results, stderrReader is null
2012-10-15 12:34:08,823 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-10-15 12:34:08,823 WARN [ProcessExecutor] Cannot retrieve results, stderrReader is null
2012-10-15 12:39:08,842 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-10-15 12:39:08,842 WARN [ProcessExecutor] Cannot retrieve results, stderrReader is null
2012-10-15 12:39:08,867 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-10-15 12:39:08,868 WARN [ProcessExecutor] Cannot retrieve results, stderrReader is null
2012-10-15 12:44:08,882 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-10-15 12:44:08,883 WARN [ProcessExecutor] Cannot retrieve results, stderrReader is null
2012-10-15 12:44:08,912 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-10-15 12:44:08,912 WARN [ProcessExecutor] Cannot retrieve results, stderrReader is null
2012-10-15 12:49:08,929 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-10-15 12:49:08,930 WARN [ProcessExecutor] Cannot retrieve results, stderrReader is null
2012-10-15 12:49:08,960 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-10-15 12:49:08,961 WARN [ProcessExecutor] Cannot retrieve results, stderrReader is null
[x@y video]#
======================================================

What is unable to find ffmpef and how to fix it?

Thanks and best wishes!

Sincerely,
Inderjeet
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Mon Oct 15, 2012 4:57 pm

Re: Media Folder Location /manually add files

ffmpeg is the tool that does all of the audio/video detection and transcoding, Serviio will not work with out it.

Which version of Cent OS are you on? You can try installing it using yum, although it will probably be too old, I think version 0.9 or 0.10 at a minimum is required. In which case, its normally easier just to compile it from source http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux (is for debian based versions, but it should translate faily easily to Cent OS, replace apt with yum etc) using this source code http://download.serviio.org/opensource/ ... 863.tar.gz or the latest version from git.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

swexpert

Serviio newbie

Posts: 4

Joined: Mon Oct 15, 2012 3:43 pm

Post Mon Oct 15, 2012 5:26 pm

Re: Media Folder Location /manually add files

Hi,
As mentioned, ffmpeg seems to be working independently. I had compiled it following the Installation guide by Serviio (downloaded the version mentioned therein only). As a standard procedure I had uninstalled it and also x264 as mentioned in the guide, then compiled from the sources provided there.

I'm on CentOS 5.7 x64 at the moment. First was on 6.3 x64 but then things were not good so downgraded. Some obvious changes were followed (such as -libdir=usr/lib64 in ./configure due to 64 bit OS).

[root@xy ~]# ffmpeg -version
ffmpeg version N-42368-gbf53863
built on Oct 14 2012 13:03:48 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
configuration: --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
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
[root@xy ~]#

What appears to me is for some reason Serviio is unable to execute it, which shows up in the logs also.
How do i correct this? I believe the next step would be to check ownership issues with the involved folders.

Any directions would be appreciated.
Thanks again!
Inderjeet
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Mon Oct 15, 2012 5:44 pm

Re: Media Folder Location /manually add files

Type "which ffmpeg" to get its location, and then edit JAVA_OPTS at the bottom of serviio.sh and add -Dffmpeg.location=/path/to/ffmpeg
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

swexpert

Serviio newbie

Posts: 4

Joined: Mon Oct 15, 2012 3:43 pm

Post Mon Oct 15, 2012 8:31 pm

Re: Media Folder Location /manually add files

And I wish to thank you with a bow. It worked after adding that JAVA_OPTS variable. Thats why they call you "experts". All is fine now hopefully one more pro version would be sold soon :-)
Is there any other way I can thank you instead of just saying thank you? Well thank you!

I hope this problem was specific to my scenario and not an inherent problem within the Linux version of Serviio.

Best wishes to everyone!

Sincerely,
Inderjeet

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 50 guests

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