Giter Site home page Giter Site logo

Comments (3)

anacrolix avatar anacrolix commented on July 17, 2024

This error should occur when the device you're streaming abruptly rejects the stream. Most likely the format that ffmpeg is sending is not what the TV is expecting, or is not supported by the TV. Perhaps web is the wrong transcode target for your TV.

from dms.

jcaesar avatar jcaesar commented on July 17, 2024

That was my first hypothesis, but I finally got some time to look around:

  1. The error is output once per second many times over, seemingly indefinitely, while the TV displays a spinner.
  2. This behavior only happens with webb and chromecast. With vp8, the TV immediately displays a "Unplayable file" message
  3. I confirmed that I can stream files with dms (without -forceTranscode) that can also be streamed from other servers (minidlna/rygel)
  4. I created a foo.dms.json containing {"Title":"Foo","Resources":[{"MimeType":"video/x-matroska","Command":"cat file-that-plays-without-transcoding.mkv"}]} and confirmed that it doesn't play (I get the same failed: signal: broken pipe but no spinner from the TV, just an immediate exit from the playback menu.
  5. Looking at -logHeaders, it seems there are two subsequent requests, the second containing Range: bytes=7075-.

Could the range request pose a problem? [Edit:] Looking at the response, there's no Content-Range, so I'll make that my prime suspect.

from dms.

anacrolix avatar anacrolix commented on July 17, 2024

Hm yes, I don't remember the specifics (I started this project nearly 12 years ago), but I doubt range requests are supported for on-the-fly transcodes if that is what it is doing. Range requests should work fine for static files.

from dms.

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.