Comments (10)
Using vlcj (http://www.capricasoftware.co.uk/projects/vlcj/index.html), I get the following error:
stream_out_standard stream out error: mov and mp4 mux are only valid with file output
from fling.
Ah, bummer. There was no error message when I set up the stream and my browser started downloading something... I didn't wait for the whole move to download. So perhaps muxing this way is a no-go.
The available HTTP streams are listed here: http://www.videolan.org/streaming-features.html. The other option is VP8/WebM but I don't see any mention on that page...
The message makes it sound like it's just a container issue so maybe you can stick h.264 video into a different container?
from fling.
I'm not a VLC expert. If you can figure out what I need to send to VLC, I will code that.
from fling.
I'm no expert either... but VLC can stream the webm format just fine. Try this:
:sout=#transcode{vcodec=VP80,vb=2000,width=800,acodec=vorb,ab=128,channels=2,samplerate=44100}:http{mux=webm,dst=:8087/cast.webm} :sout-keep
That should produce a proper webm-formatted stream (chrome plays it fine; don't know about the chromecast). Stuff to mess with might include:
width=800
which is the output resolution width (maybe try=540
to simulate casting a medium quality tab?)vb=2000
which is the video bitrate (lower for lower-quality)dst=:8087/cast.webm
which specifies the port to play on (8087) and the url (sohttp://192.168.0.12:8087/cast.webm
opens up the stream on my machine.
Encoding on-the-fly is quite intensive, unfortunately. The video plays beautifully but my quad-core Xeon sits at ~5.7 load average. I suppose converting them in advance might be in order. Then I could just cast the h.264 files as you're doing now.
from fling.
Setting width=540
and vb=1000
still looks good but drops the load down to 1.6, which I think would be pretty reasonable for most.
from fling.
That works! I'll do more testing, then check the code in.
from fling.
Great! I'm sure XBMC et al. will eventually have similar functionality but it'd be great to have a lightweight drag-n-drop transcoder/player. I'll try it out and give feedback tonight/whenever you push.
from fling.
I think I need to make the settings configurable. Probably will check in tomorrow.
from fling.
There's a lot you could do to expand... transcode/not transcode, transcode settings, you could queue up several items, etc. Hope to play with it soon
from fling.
I decided to keep the settings simple. I have updated the readme with details. I have checked in the code. I have only tested the code on OS X.
from fling.
Related Issues (20)
- Allow http:// URL to the file HOT 1
- Version Number
- In short, it doesn't work anymore HOT 2
- scrobbing while transcoding HOT 1
- Debugging output causes console beeps in Windows HOT 3
- Wrong network interface being selected
- Unable to drag & drop under mac HOT 14
- Unable to playback local file HOT 5
- Problems streaming to network HOT 3
- Unable to cast to Chromecast with fling.jar and APP ID HOT 12
- CC gives Brain Freeze error HOT 2
- Response code 404 from RampClient HOT 4
- Question about user friendly HOT 2
- [Feature request] Specify App ID in GUI
- Getting around the local encoding HOT 1
- Fling 0.3 works now, bu Fling 0.6 does not work
- connectionServiceUrl is Null
- Opening a 8.44 GB .mkv file from a windows share crashes fling
- Please, add a small test video
- No video streaming. log texts loops
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fling.