Code Monkey home page Code Monkey logo

Comments (15)

mdempsky avatar mdempsky commented on June 18, 2024

Changing

    if r.UserAgent() == "" && true {

to

    if r.UserAgent() == "" && false {

in dlna/dms/dms.go seems to fix the pauses, FYI.

from dms.

anacrolix avatar anacrolix commented on June 18, 2024

I guess you read the long comment on why that's there. It only seems necessary with one particular TV, I'm guessing the rest works for you. A shame your device isn't sending a UserAgent either, so I can differentiate these broken clients.

from dms.

anacrolix avatar anacrolix commented on June 18, 2024

If you could send me some of the logs you get, from the code that is now executing as a result of your code change, that'd help immensely. In the meanwhile I think I'll plan to make the change you made the default, since most TVs seem to implement evening correctly.

from dms.

mdempsky avatar mdempsky commented on June 18, 2024

I should be able to collect some logs tonight. Is there anything in particular you're interested in? Just the stdout output with -logHeaders?

from dms.

anacrolix avatar anacrolix commented on June 18, 2024

Yes I think logHeaders for starters. I'm interested in what's occurring in event subscription for your device. I take it that with the change you've made, everything else is also working nicely? Seeking/thumbnails/and possibly transcoding if you're utilizing that?

from dms.

mdempsky avatar mdempsky commented on June 18, 2024

Yeah, no problems so far since making that change, but I've only tried it a couple times. Seeking works, but I'll have to check about thumbnails and transcoding.

from dms.

mdempsky avatar mdempsky commented on June 18, 2024

Sorry for the delays. Here are the dms logs from watching a video on my TV:

http://shinobi.dempsky.org/~matthew/misc/dms-logs.txt

In case you're interested, it's from browsing and playing the set of 512KB MPEG4 videos from https://archive.org/details/FinalFantasy2_356.

Seeking works, but I'm not noticing any thumbnails. In the TV's folder view, the files are represented by generic video file icons. (For comparison, the Sonic VGC icon does show up for the main folder; but even with Twonky, I don't think I've ever seen thumbnails.)

File doesn't seem to require transcoding (I don't see ffmpeg running at least). I had a copy of the .ogv file available too (which I expected might need transcoding because of Theora+Vorbis), but it doesn't show up in the file browser.

from dms.

mdempsky avatar mdempsky commented on June 18, 2024

Oops, thumbnails do work once I install the ffmpegthumbnailer package. (I knew from README.rst that I needed the ffprobe/avprobe commands from ffmpeg, but I didn't realize thumbnailing required another package.)

from dms.

anacrolix avatar anacrolix commented on June 18, 2024

It's appalling how media device vendors lock down the software on their devices. Their clients are often garbage, can't be upgraded or switched out.

This one really inspires confidence:

Friendlyname.dlna.org: LG DLNA DMC v0.1

Most of them are some poorly supported Linux client or incomplete framework that's been shoehorned onto their hardware. ಠ_ಠ

from dms.

anacrolix avatar anacrolix commented on June 18, 2024

You said an ogv didn't show up in the browser, what is the output if you run go run play/mime.go blah.ogv in the project source folder?

from dms.

mdempsky avatar mdempsky commented on June 18, 2024
$ go run play/mime.go FinalFantasy2_356_part01.ogv     
application/ogg

from dms.

anacrolix avatar anacrolix commented on June 18, 2024

Could you add

    if err := mime.AddExtensionType(".ogv", "video/ogg"); err != nil {
        panic(err)
    }

In func init, ./dlna/dms/dms.go:294. Then go run play/mime.go FinalFantasy2_356_part01.ogv should return "video/ogg".

What OS are you on?

Thanks

from dms.

mdempsky avatar mdempsky commented on June 18, 2024

I'll try that tonight. I'm using OpenBSD.

from dms.

mdempsky avatar mdempsky commented on June 18, 2024

With that mime.AddExtensionType change, the .ogv file shows up in the file browser, but the TV gives a "This file is invalid." error when I try to watch it.

from dms.

anacrolix avatar anacrolix commented on June 18, 2024

Thanks for the report. I'll close this issue, the original problem is solved.

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.