Comments (12)
@Sami32 I'm aware that there's a lot of stuff that's wrong/missing, including bitrates, sizes etc. My plan was to rewrite the whole thing from scratch, as I don't see much hope for "fixing" the code that's already there. So many wrong assumptions are made, but there's also a lack of available information.
I don't know a proper way to get the bitrate when transcoding, I don't know if one exists. Taking the first 2,5 seconds is likely to be very wrong, as many videos start with some kind of intro which probably has a lower bitrate than the rest. Also, we'd need to know the maximum bitrate, which isn't possible without probing the whole file. In addition, we need to know this long before playback is started, at the browsing stage. In short, it's not possible to get this information in time.
My plan is different; I'm planning to only transcode to defined DLNA profiles. The profiles have defined bitrate (and other) constraints, so my idea is to tell the transcoding engine to keep the bitrate within the defined limit. As I understand the DLNA standard, the information in the DIDL should then be the defined maximum bitrate, not the actual bitrate.
As it is now, DLNA profiles aren't used (or, the little DLNA information sent is wrong). It's impossible to tell how it would work if implemented correctly as long as it is so much non-compliance, so I'm simply ignoring these problems until it is reimplemented.
from digitalmediaserver.
Yes ๐
from digitalmediaserver.
Sorry...i feel that it's not clear as i would like, but i miss the words and write what i think is the more near than french.
Yes, i use anterior, as "before", "less than"; "infรฉrieur" or "moins que" in french, so "less than" is good for me to remember, thanks ๐
from digitalmediaserver.
Surely the cleanest and best approach, that's an advantage of working without users ๐
Some users want play their "camera" AVI videos, so i don't really have choice for the quick fix, IMO...
from digitalmediaserver.
Following your post, i should have added that you could be surprised by the future MediaInfo DLNA's profiles support ๐
from digitalmediaserver.
@Sami32 I really don't see how a quick fix could be done, as the information simply isn't there. The only thing I can think of is to make a "guesstimation" where you use the source codecs and their bitrates, resolution etc into account and then use some pre-defined conversion value between the different formats and apply that "guesstimate factor" to the source bitrate. It sounds like quite รฅ project to me, but I guess something could be done, although that's the kind of solution one would end up having to adjust for eternity.
from digitalmediaserver.
I mean really quick ๐
Not one imperfect that will need eternal adjustement.
I just used the bandwidth limitation set inside the renderer configuration file because thet are set their to follow the renderer specifications limiting the bitrate, but only for video having an original bitrate superior to 200 Mb/s, as all the renderers that i saw with limitation followed the same limitation, at least the far more popular one.
Still a more quick way is to hardcode the 25 MB/s bitrate value to be set in the DIDL while the original bitrate is superior to 200 Mb/s
from digitalmediaserver.
@Sami32 I didn't quite understand that. When you say "superior" - do you mean greater than? In any case, I don't quite see the point of just trying to "cheat" the renderer. If the bitrate are greater than what the renderer can handle, I doubt playback will be very nice. Or, did I simply misunderstand you?
from digitalmediaserver.
Yes, i meant >
("supรฉrieur" in french)
I was not clear, precise, so misunderstanding was easy. When i transcode with a FFmpeg custom option set into the renderer i made sure that the bitrate will be not more of 25 MB/s, but as the code is now, the bitrate set into the DIDL string will be totally wrong and more important, not supported by the renderer that freeze, as your with AAC having high bitrate.
So i just trick the bitrate value set into the DIDL string.
Do i was more clear this time โ
from digitalmediaserver.
Do i was more clear this time โ
I guess you meant "Was I clearer this time?" If so, I guess somewhat but I still don't quite follow you. If a file is transcoded with a bitrate limitation (as a transcoder parameter), then I'd say it would be correct to use that bitrate limitation in the DIDL. The problem might be to know this when the DIDL is created, but if that is known that isn't really "tricking" IMO. The logic would have to make sure that the media would really be transcoded with that limit though. Is this what you're doing?
from digitalmediaserver.
Yes ๐
from digitalmediaserver.
@Sami32 While we're at it, do you mean "less than" when you say "inferior" as well? Anterior is another word you use that I don't understand, is sounds like "older than" or "more ancient than" to me, but that often doesn't make sense in the way you use it.
from digitalmediaserver.
Related Issues (20)
- WebInterface favicon bug HOT 1
- macOS sleep failure
- Create BUILD.md
- DTS
- Remove the wrongly called GPU acceleration from MEncoder and FFmpeg engines GUI
- Improve PS3 and PS4 Configuration File for Streaming HOT 4
- Subtitle Type Priority Checkbox/Option HOT 3
- NPE throwed when transcoding thumbnail
- Pipe break while using tsMuxeR HOT 1
- Suggestion: Add and save more OSHI informations
- Missing error handling? HOT 4
- [DepShield] (CVSS 5.8) Vulnerability due to usage of org.apache.httpcomponents:httpclient:4.2.1 HOT 1
- [DepShield] (CVSS 9.1) Vulnerability due to usage of io.netty:netty:3.10.6.Final HOT 2
- [DepShield] (CVSS 10.0) Vulnerability due to usage of com.fasterxml.jackson.core:jackson-databind:2.0.5 HOT 1
- [DepShield] (CVSS 9.8) Vulnerability due to usage of org.codehaus.jackson:jackson-mapper-asl:1.9.13 HOT 1
- [DepShield] (CVSS 8.1) Vulnerability due to usage of org.beanshell:bsh-core:2.0b4 HOT 1
- [DepShield] (CVSS 5.9) Vulnerability due to usage of com.google.guava:guava:12.0 HOT 1
- [DepShield] (CVSS 7.5) Vulnerability due to usage of org.jdom:jdom2:2.0.6 HOT 1
- [DepShield] (CVSS 9.1) Vulnerability due to usage of com.h2database:h2:1.4.196 HOT 2
- [DepShield] (CVSS 7.5) Vulnerability due to usage of com.github.junrar:junrar:1.0.1
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 digitalmediaserver.