r/webdev • u/dularion • Jul 29 '15
I recently created this open source, self-hosted, Netflix-like web-application (intended for private use). I hope you enjoy it!
https://github.com/dularion/streama29
u/Ampix0 Jul 29 '15
I dont think I will switch from Plex yet. But I like it. Chromecast support is a must for me, I didnt see mention of it (but I could have missed it). I very much like the fact that the background in plex shows a wallpaper of the current show/movie. If you could integrate some features like Plex Pass, that would be nifty. Great animation is something that draws me in, like in Google's material design.
→ More replies (5)23
u/dularion Jul 29 '15
Thanks for your feedback! It should be supported by Chromecast out of the box, but I have not tested it there yet. I will look into the plex pass feature list, thanks for the tip!
7
Jul 29 '15
Chromecast can stream tabs, but this is sort of laggy with video and audio. I think you need to use the Chromecast API to cast video without lag.
→ More replies (1)4
u/format120 Jul 29 '15
Do you have a chromecast? I've got one, so I could help test it if you need?
2
→ More replies (2)9
u/Ampix0 Jul 29 '15
No problem! It looks great. One super nice thing about plex for me is being able to use it as an app on my phone that I then cast to the TV.
14
u/Warnaught Jul 29 '15
This is really impressive work. I hope it gets all the attention it deserves.
12
13
u/InconsiderateBastard Jul 29 '15
That is really slick. I like the way you manage content by adding it and then dragging and dropping video files for it. I find that more pleasant than other systems I've tried that rely on naming conventions to lookup data about movies and shows. They can work very well, but I think this suits me better.
Can't wait to try it out.
6
u/dularion Jul 29 '15
Im glad you like that! I was thinking back and forth about that, and decided on this functionality in the end. It's also almost like a todo-list, or like a "would like to watch in the future but don't want to bother with it right now"-feature :P
→ More replies (1)
4
u/dularion Jul 30 '15
Simpler setup:
you need a mysql db called "streama"
on a windows, run
grailsw.bat run-waron a unix-system, run
./grailsw run-warnavigate to
http://localhost:8080/streama
6
u/Rick7C2 Jul 30 '15
Is there any link support for media? I already have most of my media uploaded to Google drive. It would be awesome if I could just put the Google drive link instead of having to re-upload all my media.
Also would be cool if it could auto pick the Google drive transcoded quality based on network speed.
3
u/dularion Jul 30 '15
There is no link-support right now, but I like the idea. It would be fairly easy to implement, too. Please upvote the original comment if more people are interested in this, then I'll put it higher on my todo-list.
11
u/elracoono Jul 29 '15
Holy cow! I myself was thinking of doing something similar to this but I think your version is 10000% better. I look forward to trying your app out. Keep up the good work.
6
u/dularion Jul 29 '15
wow thanks! but this is still very work-in-progress, so there are probably still many bugs here and there. But I'm working in it :)
27
u/KLDzzz Jul 29 '15
Wow this is incredible. Nice job man.
0
Jul 29 '15
[deleted]
50
u/dularion Jul 29 '15
:)
→ More replies (6)2
u/styxynx Jul 30 '15
Really, really impressive portfolio and streama looks awesome. I just wanted to let you know that I found a typo here: http://www.dulariondesigns.com/#get-in-touch
LinkedIn "Profil" should be LinkedIn "Profile."
3
8
u/BigDane1992 Jul 29 '15
Nice, I will try it out soon. Maybe I'll also add docker support, I think that would be nice. Only mount the directory in it and you are good to go
7
4
u/Jamuss Jul 30 '15
I was thinking of doing this with node.js. I wanna contribute but don't want to spend the time learning Java right now haha. Looks great though.
2
8
Jul 29 '15
Fat controllers
5
u/dularion Jul 29 '15
Yeah, may actually be true. I mostly just used the generated restful-controllers and added more logic to them. But I could refactor them a bit, actually
→ More replies (3)11
3
Jul 30 '15 edited Jun 17 '24
expansion dime wasteful office handle sheet liquid deliver alive correct
This post was mass deleted and anonymized with Redact
3
2
u/pterencephalon Jul 29 '15
The looks awesome. It would be awesome to have a setup tutorial for those of us who haven't worked with things like this before.
1
u/dularion Jul 30 '15
There is a short list of instructions in the bottom, but you have a point, I might make some sort of tutorial for ubuntu :)
2
u/geek_at Jul 29 '15
Really awesome project! Something I have waited for since I started collecting videos ~ 10 years ago..
But one Question: Why the hell Tomcat?
4
u/dularion Jul 30 '15
Well, the answer is simple: I program very quickly with grails. I started this project last last saturday. I was thinking of making a nodejs project out of it sometime in the future, but I am much slower with nodejs than I am with Grails/Groovy so it will have to wait a little.
2
u/ABC_AlwaysBeCoding Jul 29 '15
Didn't fill out your test stubs?
Sad panda :(
Would this let me stream to my PS4?
4
u/dularion Jul 30 '15
yea I know .. :/ I wrote in another comment somewhere, started this project a little under a week ago and didn't expect it to become anything. And adding tests after the logic is programmed is so tedious. Should have started with it from the get-go.
2
u/SemiNormal C♯ python javascript dba Jul 30 '15
It should work on PS4 as long as the source video is H.264/mp4
→ More replies (1)
2
u/UberChargeIsReady Jul 30 '15
Hey OP I haven't tried it yet but this looks pretty nice rom the screenshots. Question is would I need to install Java?
2
2
u/PancakeZombie Jul 30 '15
So.... like YouTube?
1
u/dularion Jul 30 '15
well, kind of. But you host it yourself, so you can host all kinds of videos (ofc, legal :P)
→ More replies (1)
2
2
u/Kryxx Jul 30 '15
How does this work for codecs?
My Chromebook for example cannot stream AC3 files.
3
u/dularion Jul 30 '15
Its very basic with codecs atm .. it doesnt convert for you and only plays what your browser natively supports in regards to html5. its at the top of my list to implement a converter that automatically converts with ffmpeg to the right formats.
2
u/QuietKillah Jul 30 '15
Isn't this quite similar to http://emby.media/ ?
2
u/dularion Jul 30 '15
I guess it is, yeah! Never heard of it before yesterday, so will check it out :)
107
u/ahughesb Jul 29 '15
Cool, we need more modern competitors in the Plex area
→ More replies (5)9
u/mikenew02 Jul 30 '15
Plex is love
→ More replies (4)7
u/btchombre Jul 30 '15
Except for the fact that it doesn't run as a service on Windows. Seriously wtf.
→ More replies (12)7
4
Jul 29 '15 edited Jul 30 '15
I think I might run that on my Raspberry Pi. Thanks. See if the folks over at /r/raspberry_pi like it.
Edit: Since OP didn't do it, here's the /r/raspberry_pi link: https://www.reddit.com/r/raspberry_pi/comments/3f3lpb/i_recently_created_this_open_source_selfhosted/
→ More replies (2)2
27
u/TEE_EN_GEE Jul 29 '15
Yeah, this looks nicely done. If I ever become dissatisfied with my XBMC/Kodi setup I will definitely look it back up.
8
u/bloomingtontutors Jul 29 '15
It looks like the main point of this project is to let you stream videos in your browser from your file server.
So far, support for this in Kodi has been spotty (I know the Chorus plugin can do this, but only with certain types of video files).
I'm very excited about this, and hoping I can get it to play nicely with my existing Kodi setup.
3
u/TEE_EN_GEE Jul 30 '15
Huh. I have no problem streaming from my NAS with Kodi inside the house, outside I generally use the app on my iPad or VLC if I'm at a PC.
→ More replies (1)
10
4
4
u/skini26 Jul 30 '15
Oh, that's nice to see that some people are still using Grails. This framework and its language (groovy) are so good and so underrated !
Good job for the app.
1
u/negativerad Jul 30 '15
Video-conversion via Quartz
Is Quartz similar to ffmpeg??
2
u/dularion Jul 30 '15
ah no, I will ofc use ffmpeg, but Quatz is just a way to run it asynchronously in a cron-job
→ More replies (1)
1
u/sazzer full-stack Jul 30 '15
Are you planning on supporting DLNA or anything like that? So that it can be used to stream to a media device? (Or even better, Chromecast support?)
2
u/dularion Jul 30 '15
Yea, multiple people have asked about chromecast, and I would love to get that working some time in the future :)
3
3
u/k1down Jul 30 '15 edited Jul 30 '15
Disruptive as hell, nice work. If you ever need any UI graphical elements turned into SVG pm me
3
u/jordanlund Jul 30 '15
This looks awesome, but one small change would make it my dream application...
I would like to rip all my media and run a private TV network. Essentially have it streaming video 24/7 just like a "normal" TV channel. When I want to watch my content, I flip to that input on my television and watch whatever is streaming at the moment.
The way I see it working is assigning folders to different timeslots. Then the player just starts with the first file in that folder at that particular time. The next time it runs, it pulls the next file in sequence.
So at 5:00 it's streaming Batman: The Animated Series, 5:30, MASH, 6:00 Star Trek, 7:00 Next Generation, 8:00 it pulls from "the movie of the night" folder, etc. Saturday morning is all cartoons, all the time.
It would go beyond a media streamer and become "PTN" - a Personal Television Network. There are a couple of benefits to this:
You never get stuck with "where did I leave off?" The software remembers the last episode played and won't play it again until everything else in the folder is done.
Ability to randomize. For shows that don't really matter like Seinfeld or Friends you could do a shuffle play, all the episodes in the folder, one at a time, in "random" order until content is exhausted then it starts over.
And this is the important bit - you're never stuck going "man, I wish there was something on!" Just flip to your PTN channel input and it's running.
/I have no idea how to actually make this happen.
3
u/OkSt00pid Jul 30 '15
That's awesome. Thanks for releasing such an expansive product into the OSS world. Wish you as Borat may say, "great success!"
3
Jul 30 '15 edited Jul 30 '15
This is pretty awesome. Congrats on a popular github repo!
Wonder how it will run on a Pi... hmmm
5
1
u/jesusbot Jul 29 '15
So when you drag and drop the media file, you are uploading it to the server on which this is hosted? I don't have space to host all of my media twice. Am I misunderstanding?
3
u/dularion Jul 29 '15
Yea it is uploading, but if you run it on your local machine, it is basically just copying the file over. After this you can remove it from wherever it came from (if you primarily want to use streama for your video-related needs). I was thinking of implementing a sort of file-browser, too, but then the server would need permissions for that directory, which may be a bit unsafe.
2
Jul 29 '15
Does it take any longer than copying a file? What sort of bandwidth do you see on the local network?
It might be a good idea to allow a local way to move a file, that way a copy isn't made. Moving is also a lot faster because it may only involve changing metadata about the file's location.
This thing looks amazing, by the way. I may set it up when I get home
→ More replies (3)2
u/Kussie Jul 29 '15
A file browser would be extremely nice and handy, especially for those of us with large collections already in Kodi, would save a great deal of space then having to have two copies.
4
u/ajr901 Jul 29 '15 edited Jul 29 '15
4
u/hansolo669 Jul 29 '15
/u/ for users /r/ for subreddits. so:
/u/dularion[1] I want to be like you when I grow up.
Seriously, well done.
2
0
u/anonymyx Jul 30 '15
Why did you go with Grails and Java in general? Have you thought of using other stacks, like MEAN? Or is it just something that you are most familiar with?
5
u/dularion Jul 30 '15
Im just most familiar with it and am able to work really fast with it. But I might port it to nodejs sometime in the future
2
2
2
u/tylercoder Jul 30 '15
So I could have my huge collection of pirated LEGALLY PURCHASED movies on a swedish server outside the reach of FBI and movie studios MY DOG and which I could watch from nearly any device anywhere in the world?
Not bad!
2
2
2
u/d4nyll DevOps @ Nexmo / Author of BEJA (bit.ly/2NlmDeV) Jul 30 '15
For those who want to spread the word - vote it up on Product Hunt!
2
u/paranoidray Jul 30 '15
SSL tutorial for ubuntu and www.startssl.com
uncomment the ssl connector in /etc/tomcat7/server.xml
cd /usr/share/tomcat7
keytool -keysize 2048 -genkey -alias tomcat -keyalg RSA -storepass changeit -keystore .keystoreDo not give your name, but use the domain name. For example mystreama.net
keytool -certreq -keyalg RSA -alias tomcat -file csr.csr -storepass changeit -keystore .keystoreupload csr.csr to startssl, download the response.crt, the ca.crt and the sub ca crt file.
keytool -import -trustcacerts -alias startcom.ca -file ca.crt -storepass changeit -keystore .keystore
keytool -import -alias startcom.ca.sub -file sub.crt -storepass changeit -keystore .keystore
keytool -import -alias tomcat -file response.crt -storepass changeit -keystore .keystore
service tomcat7 restart2
u/mattkatzbaby Jul 29 '15
This is a really sweet application - and the github page is very clear and well done!
1
Jul 29 '15
Nice! Will give this a try on my media server when I get home.
Thank you for your work. Will report back.
1
u/MaRmARk0 back-end Jul 29 '15
As an European who can't use Netflix I don't get it. It's some self-categorizing player for movies you get from torrents?
→ More replies (1)
1
u/omapuppet Jul 29 '15
Nice!
Are you familiar with Music Cabinet ? It's pretty good for music, and includes some nice front-ends (like subsonic) but it's video player is pretty bad.
Might be useful for ideas, or for poaching users or whatever.
→ More replies (2)
1
u/jaredcheeda Jul 30 '15
you should look into adding gamepad support. I've got a wired Xbox 360 controller I use for Steam.
1
u/zushiba Jul 30 '15
If this had embedding and uploading/converting it'd be the answer to a lot of problems I'm working with at work. (I work for a college). If it had user access levels with the ability for people to have their own "channels" it'd be even more amazing.
1
u/learningram Sep 02 '15
How did you go about creating this application ? What were the technologies used ? I would love to hear about about the background details if you don't mind.
1
u/Krayons Jul 29 '15
Looks great. I'll definitely try contribute, really wanted something similar to this.
1
-1
u/soothaa Jul 29 '15
Just wanted to say this looks very nice and great work, but sadly I am all Apple everywhere and Plex is the only thing I can use!
2
u/TamSanh Jul 30 '15
on a unix-system, run ./grailsw run-warShould work just fine with Apple, as apple is a unix system.
0
Jul 30 '15
[deleted]
4
u/dularion Jul 30 '15
What I have so far I built within approx 4 days. But there is a lot more that needs to be done :)
0
Jul 29 '15
[deleted]
9
u/dularion Jul 29 '15
It's really quite fun when you get into it! I don't like the strictness of Java either, but Groovy (which grails is built on) is really fantastic!
0
Jul 29 '15
[deleted]
7
u/evildonald Jul 29 '15
My household is up to it's 7th loop of the GGs. You get something new out of every episode still.
7
u/TrackieDaks Jul 30 '15
That's because it's only possible to catch every third or fourth word.
→ More replies (1)2
u/evildonald Jul 30 '15
I still don't know half the famous people names they say in their long dialogues.
13
2
u/Xeronate Jul 30 '15
I'm glad I'm not the only one who loves Gilmore Girls, but is embarrassed to let other people know I watch it.
0
0
Jul 29 '15
[deleted]
5
u/dularion Jul 29 '15
Manually adding all the files is the only way that the app works with, currently. But I agree, it would be nice if it would crawl. Then it would depend on some sort of naming-convention i guess. Will look into that.
→ More replies (1)3
u/whoisderg Jul 29 '15
I was totally in till this comment. this is a must for large collections.
3
u/dularion Jul 29 '15
But crawling shouldnt be too hard to add to the application, actually. What sort of naming-conventions would you guys be okay with? Something like breaking.bad.s01e02.xyz.mp4? or is that too restrictive? What naming-conventions do other systems use?
6
u/Speedzor Jul 29 '15
Since everyone setting this up will be versed in programming to a certain extent, maybe you could leave it up to the admin themself? Give the option to enter a regex for all shows and allow to redefine it per individual show and season. That way you've got it covered when someone has a specific naming scheme for everything, but also for one-off shows or seasons (e.g.: they came from a different source).
→ More replies (1)3
3
u/Kussie Jul 29 '15
Would also be nice to have some sort of basic API to add movies/tv shows via as well, so then it could be integrated with tools like Couchpotato and Sonarr to automatically add episodes too it through the API. The same way those tools update Kodi and the like
0
Jul 29 '15
[deleted]
1
u/dularion Jul 30 '15
I adjusted the documentation. you can actually change that location, if you prefer. But: it is supposed to go into your root, so on an ubuntu that would be / so what you would do is
cd / (root location of system)
mkdir data
mkdir data/streama (to create streama subfolder)
chown tomcat7:tomcat7 data/streama
3
Jul 29 '15
[removed] — view removed comment
5
u/dularion Jul 29 '15
You dont necessarily need ubuntu. Tomcat just installs very easily on it. You can also run it on a windows machine, just as long as you deploy it as a web-app you can access it.
2
u/dularion Jul 30 '15
technically its completely possible to stream, but this is ofc that is not something i endorse :P
4
Jul 29 '15
[removed] — view removed comment
6
u/dularion Jul 29 '15 edited Jul 29 '15
pretty much, yea. But the idea is to host it in your local network, and then reach it from all devices that are in the same network. There are other ways of using it, but that I leave to your creativity.
1
u/bwaxxlo Jul 30 '15
Wait, so where do all films reside? Surely they aren't uploaded to the mysql server, right?
1
u/dularion Jul 30 '15 edited Jul 30 '15
no no :D they reside in the folder you created, /data/streama Edit: oh damn! just realized that I did not add that info to the quick-guide, only to the dev guide. will add it now.
1
u/bwaxxlo Jul 30 '15
Phew, I was already sharpening my pitchfork :D
In terms of the structure, how would, say a house with several users, upload all the movies to a single folder? Would that mean there has to be one dedicated computer to act as a server? Or would it mean each user has their films and they share them as P2P service would (which means some films will be unavailable at certain times)?
1
u/dularion Jul 30 '15
it has to be on one dedicated computer, no P2P functionality yet
→ More replies (1)2
-8
Jul 30 '15
[removed] — view removed comment
6
u/Franko_ricardo Jul 30 '15
Now say this out loud to yourself and ask the question, "is this relevant to the conversation and what is the creepiness factor of such a question?"
3
33
u/lbearl Jul 30 '15
API credentials are hard coded... it might be a good idea to remove those and include instructions for people to get their own credentials.
EDIT: I just realized that might come across as harsh. I'm just trying to be helpful, this actually looks really cool. I might play around with it some if I get some free time.