LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-19-2015, 04:54 AM   #1
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Media server on debian, client on android - lost in the jungle


i want to watch and listen to my media collection from my android phone.
the media resides on my kitchenserver, and the "streaming" to my desktop in the livingroom works perfectly via sshfs.
streaming to my android phone isn't so easy.
the hardware and the bandwidth are well capable of doing this (e.g. youtube videos or manually copied movies).
after some research i started using file managers that have sftp capabilities, but the amount of dropouts & hangups is too high.
i'm not exactly sure why this happens.
i'm using mobile broadband only for this.
i think using a dedicated media server on my debian server and a client for the phone, should help things go smoothly.
both should be FOSS (or at least close to it).
i haven't yet tried anything; the amount of different more or less specialised apps and servers is overwhealming.
what's the way to go?
 
Old 12-20-2015, 05:15 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872

Original Poster
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
what, nothing?

i've been looking around and it seems that linux FOSS media servers pretty much boils down to ampache and xmbc.
there seems to be no problem on the server side (but are they good with mobile broadband connections?).

the much bigger choice, confusion and commercialism seems to be happening on the android client side.

i did try ampache meanwhile; at least with music all is fine, there's a few free clients on f-droid, e.g. this one.
leaves the video.
it looks like this should be possible with ampache, too, but a different client.
fortunately ampache seems to be able to use other transfer protocols, so i could e.g. use a subsonic client.

or should i try/use something else?
 
Old 12-20-2015, 05:20 AM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
So that I can watch video from my Pi on my iPhad I simply set up Apache and watch movies over HTTP as a simpler solution to a media server as when I've looked into them the setup looks too involved to bother with for the few occasions I want to watch on my iPhad.
 
Old 12-20-2015, 12:43 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872

Original Poster
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i'm well underway with ampache now.

in case someone wants to go there:
don't use the debian repos. they're too old.
i think the easiest is to download this (*) and install it manually like you would install a CMS, following these instructions.
dependencies for debian are here (but one of the devs warned me not to use the ampache-debian repo!).

i should now be able to access both music and video on my android phone, using a subsonic client.

whether all this actually improves my situation, we'll see.


(*) i cloned the normal github repo and had to install composer to install other dependencies. the web UI is really quite bloated now, with bootsrap and ajax and whatnot, but i'm not planning on using it anyway...
still, functionality is much better now.
 
Old 12-22-2015, 03:08 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872

Original Poster
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
it is as i suspected; using a dedicated media server/client has smoothed things perfectly, i can watch movies and tv shows, even listen to .flac audio without transcoding it first!

i recap:

download and install ampache, git version (see previous post) to your server
on your android device: install DSub (supports both audio and video playback)
on your ampache install, activate the subsonic api (preferably by creating a dedicated user, plus some additional setup, see here


however, not all is rosy.
it seems that some media codecs aren't suitable for streaming, and i cannot stream all movies to my phone, even though they play nicely when i copy them to the sd card first.
there is a "transcode on the fly" option in ampache.
it works nicely with music, but not with video; i am still researching this, i think it's fixable.
maybe i'll need a stronger server...
 
Old 12-23-2015, 03:54 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872

Original Poster
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
so, to cut it short, can someone help with a nice avconv/ffmpeg oneliner that will transcode video/audio to a format suitable for streaming to android phones?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to turn your Android phone or tablet into a Web, file, or media server LXer Syndicated Linux News 0 10-13-2013 05:40 PM
[Ubuntu Server 12.04+PHP Server Side Script+Android Client App]Stripslashes not work! MarkoSan Linux - Server 0 05-24-2012 08:35 AM
LXer: In-car media server hobnobs with Android, Linux devices LXer Syndicated Linux News 0 06-15-2011 01:50 AM
x264 Streaming media server & client decompressing on server-side? Pearlseattle Linux - General 2 12-12-2007 11:04 AM
lost in jungle mihk Linux - Software 4 10-13-2005 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration