Comments (15)
Changing
if r.UserAgent() == "" && true {
to
if r.UserAgent() == "" && false {
in dlna/dms/dms.go seems to fix the pauses, FYI.
from dms.
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.
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.
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.
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.
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.
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.
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.
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.
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.
$ go run play/mime.go FinalFantasy2_356_part01.ogv
application/ogg
from dms.
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.
I'll try that tonight. I'm using OpenBSD.
from dms.
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.
Thanks for the report. I'll close this issue, the original problem is solved.
from dms.
Related Issues (20)
- can not serv the flac and mp3 file HOT 1
- BubbleUPnP and DMS HOT 3
- HomeAssistant TorrServe error HOT 1
- dms binary can't be executed in NixOS. HOT 6
- binary: log level configuration HOT 1
- got an SSDP server running in LAN already, so how to disable SSDP listening in dms? HOT 7
- ssdp panic while caltulating delay time HOT 2
- Verbose/Debug output? HOT 3
- broken pipe from ffmpeg when transcoding HOT 3
- Does not work with Kodi HOT 7
- Can it run in the environment without go installed? HOT 4
- Can it cast to Chromecast audio directly? HOT 2
- Samsung TV: Video found but cannot be played (works on minidnla, trace attached) HOT 10
- Serving media from non-local/dummy filesystem HOT 6
- foobar2k iOS? HOT 1
- Not discovered by LG WebOS HOT 4
- Path must be absolute HOT 5
- docs HOT 1
- grep not works on usage message HOT 4
- how to use ffmpeg instead avconv? HOT 2
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 dms.