LinuxQuestions.org
Review your favorite Linux distribution.
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 04-14-2017, 11:24 AM   #1
tonj
Member
 
Registered: Sep 2008
Posts: 523

Rep: Reputation: 37
free video server that streams to smartphones


is there such a thing as a free video server that works on centos and will stream to mobile phones?
For a couple of years I've been using red5 server (free version) on a centos 6 machine to test streaming live tv on my web page which is here: http://198.91.92.112/stream/live/
This page uses video-js for the web page player and everything works fine when viewing on a computer but I've never had any luck viewing on a mobile phone.
This next page is the same and uses flowplayer as the video player: http://198.91.92.112/stream/flowplayer/
both players receive video as rtmp from red5 server.
does the video play on your smartphone?
I've been told that only pro version of red5 will stream to mobiles. It could by that my crappy little samsung galaxy ace phone just isn't up to the job but I've also tried other mobiles and they don't play either. I've searched on google but free software turns out to be pay-only when you start reading. tbh I don't know whether it's the video server or the website player that I need to change. Thanks for any advice.
 
Old 04-14-2017, 11:59 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248
first of all, no video plays onthe js version of your test page. all i see is the text 'test transmission using video-js' and "welcome to the show! live from the midlands..." - no video.

then,
ampache can do what you want. it is possible to enable streaming to subsonic clients, i.e. i can install a subsonic client on my android phone (i used dsub from f-droid) and watch video.

it is also possible to simply serve the files and let the browser figure out what to do with them (html5).
i tried it once, it worked both at home and on my phone, but on my phone the bandwidth was just way too much.
 
Old 04-15-2017, 04:28 AM   #3
tonj
Member
 
Registered: Sep 2008
Posts: 523

Original Poster
Rep: Reputation: 37
thanks ondoho, sorry you didn't see video playing but both urls I gave play fine on my pc, I just looked at them. Were you viewing on a phone or a computer? I checked out ampache briefly, I know I've got to read more and try it out but is it a gui based application? or can it be run in a linux terminal?
 
Old 04-15-2017, 07:35 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248
on a computer, with 3 different browsers.

ampache is a server extension, can run on top of apache2 or nginx and possibly others, thus does not require a gui on the server.
its default interface is html based, so that requires a gui afaics.
 
Old 04-17-2017, 03:18 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,988

Rep: Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405
Ideas.
I've never tried it but VLC seems to be able to do that. Might be some way to use ajax or php to grab a streamed resource and insert it.

The main issue is getting a format that mobile can support. So many of the programs might allow flash/asf content but you'd want to stream maybe to html5.

Idea also. https://forum.videolan.org/viewtopic.php?t=112597

Last edited by jefro; 04-17-2017 at 03:20 PM.
 
Old 04-21-2017, 08:40 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
I've only ever gotten it to work with vlc, but you have to view it in vlc with the URL. In theory crtmpserver, obs, and others can stream. The VLC can do it without re-encoding a webcam, if it has MJPG formats. BSDNOW had an episode with the nginx method.

http://www.jupiterbroadcasting.com/9...d-bsd-now-132/

http://www.unixmen.com/freebsd-nginx...ive-streaming/

Most of these require writting out a file for the thing you are streaming, which wasn't what I wanted to do since SDHC cards are small and have limited writes.
 
Old 04-22-2017, 03:07 AM   #7
tonj
Member
 
Registered: Sep 2008
Posts: 523

Original Poster
Rep: Reputation: 37
thanks shadow 7, I can stream live video with rtmp and have been doing that for a while but it's streaming to smartphones that I want to resolve. There are several ways to stream live video but I haven't yet found a way to make it work on smartphones.
 
Old 04-22-2017, 01:57 PM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Perhaps minidlna could do what you are wanting. I couldn't find the video I watched a couple years ago about it (cain with teksyndicate/crit sometime before TXLF 2015), but here's a link to something at least. More of a plex / time lapse thing though. But I've never used it so I could be wrong.

http://www.instructables.com/id/Rasp...rver-MiniDLNA/

VLC -> View -> Universal Plug N Play

In theory http://[IP]:[PORT]/content ??? but I've never used this with any success to know for sure. Fiddling atm and the server shows up in VLC, just not the content (yet).
 
Old 05-01-2017, 04:23 AM   #9
tonj
Member
 
Registered: Sep 2008
Posts: 523

Original Poster
Rep: Reputation: 37
thanks shadow 7 and after trying for several days I think the problem is my phone, it's too old and crappy (samsung galaxy ace). I discovered even youtube says 'live event playback is not supported on this client'. If they can't do it then that explains why I can't do it. On the phone I can play files from youtube and I've even been able to play a file to the phone using ffmpeg over my LAN but live streaming...no. I did try vlc as you said, it worked in streaming to another pc but not to the phone. It looks as though I'll have to get a better phone.

Last edited by tonj; 05-01-2017 at 08:00 AM.
 
Old 05-01-2017, 08:40 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,988

Rep: Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405Reputation: 3405
VLC on phone?
 
Old 05-02-2017, 01:35 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248
^ i have a kitkat phone (android 4.4.4) and VLC keeps on crashing; it's really useless on that phone, too heavy anyways. at least the most recent version from f-droid is.

anyhow i still can't play the video from post #1 (the js version).
i have a suspicion that this is not only my problem because:
it requests http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js and never gets there, however that is not blocked on my machine, i can get to the jquery script if i enter it manually.
 
Old 05-02-2017, 02:53 AM   #12
tonj
Member
 
Registered: Sep 2008
Posts: 523

Original Poster
Rep: Reputation: 37
@jefro, in an ideal world I would try vlc on my phone but this phone has a really bad problem for space to install apps. It's hopeless. Only a better phone would have more space to install more apps.
@ondoho, I've learnt that android is a very fussy OS when it come to playing video. The video has to be just right in terms of bitrate, size, codec etc. The video at the urls above originate from ffmpeg running on another machine and I know now that ffmpeg hasn't been configured properly (yet) to stream to mobile devices. I'm still working on this. Could you please try the flowplayer url again? I had some wrong coding in the page I've just corrected. Also - for the video-js page I've now got jquery.js on the server itself and not fetching from google. Could you try that url again?
 
Old 05-03-2017, 12:25 AM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248
Quote:
Originally Posted by tonj View Post
@ondoho, I've learnt that android is a very fussy OS when it come to playing video. The video has to be just right in terms of bitrate, size, codec etc. The video at the urls above originate from ffmpeg running on another machine and I know now that ffmpeg hasn't been configured properly (yet) to stream to mobile devices. I'm still working on this. Could you please try the flowplayer url again? I had some wrong coding in the page I've just corrected. Also - for the video-js page I've now got jquery.js on the server itself and not fetching from google. Could you try that url again?
i haven't even tried it on my phone yesterday, that was from my desktop.
but the results are the same across 4 browser: Tor Browser (firefox), palemoon, surf (webkit based), and Fennec F-Droid on my phone (firefox).
i find it hard to believe that this is actually working for anyone (except you).
 
Old 05-07-2017, 02:20 AM   #14
tonj
Member
 
Registered: Sep 2008
Posts: 523

Original Poster
Rep: Reputation: 37
@ondoho yes you're right, I tried my own url on another pc in a different house and the stream didn't work. I don't understand why it works on my pc and not other peoples. What happened in your browser? did you get a black play screen? something different? any error message? thanks for your further help.
 
Old 05-07-2017, 02:46 AM   #15
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248
Quote:
Originally Posted by tonj View Post
What happened in your browser? did you get a black play screen? something different? any error message?
i already described that in post #2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
software to remultiplex video streams fadey Linux - Software 1 05-14-2009 09:14 AM
Cam server can not serve video streams juiev Linux - Networking 0 07-03-2008 02:50 AM
video streams in firefox... questionasker Linux - General 3 05-11-2004 05:14 PM
combining video streams matt_w_lambert Linux - Software 5 03-05-2004 11:59 AM
Capturing Video Streams Under Linux LinuxGeek Linux - Software 3 06-24-2002 01:31 PM

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

All times are GMT -5. The time now is 04:30 PM.

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