Git Product home page Git Product logo

Comments (10)

NoRulesJustFeels avatar NoRulesJustFeels commented on June 30, 2024

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.

jakebiesinger avatar jakebiesinger commented on June 30, 2024

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.

NoRulesJustFeels avatar NoRulesJustFeels commented on June 30, 2024

I'm not a VLC expert. If you can figure out what I need to send to VLC, I will code that.

from fling.

jakebiesinger avatar jakebiesinger commented on June 30, 2024

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 (so http://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.

jakebiesinger avatar jakebiesinger commented on June 30, 2024

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.

NoRulesJustFeels avatar NoRulesJustFeels commented on June 30, 2024

That works! I'll do more testing, then check the code in.

from fling.

jakebiesinger avatar jakebiesinger commented on June 30, 2024

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.

NoRulesJustFeels avatar NoRulesJustFeels commented on June 30, 2024

I think I need to make the settings configurable. Probably will check in tomorrow.

from fling.

jakebiesinger avatar jakebiesinger commented on June 30, 2024

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.

NoRulesJustFeels avatar NoRulesJustFeels commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.