Hi shagrath,
These are the WDTV Live support changes I would like you to include:
From BufferedOutputFile.java- Code: Select all
public WaitBufferedInputStream getCurrentInputStream() {
if (inputStreams.size() > 0)
{
// Ditlew - org
//return inputStreams.get(0);
// Ditlew - You might wanna create a new setting for this?
// I've found other ways of making this work but this is the most simple one.
return PMS.getConfiguration().getTrancodeKeepFirstConnections() ? inputStreams.get(0) : inputStreams.get(inputStreams.size() - 1);
}
else
return null;
}
From DNLARessource.java- Code: Select all
public String getDisplayName() {
String name = getName();
if (this instanceof RealFile) {
if (PMS.getConfiguration().isHideExtensions() && !isFolder())
name = FileUtil.getFileNameWithoutExtension(name);
}
if (player != null) {
if (noName)
name = "[" + player.name() + "]";
else {
// Ditlew - WDTV Live don't show durations otherwize, and this is usefull for finding the main title
// You might wanna add a setting for this.
if (media.dvdtrack > 0)
{
name += " - " + media.duration;
}
if (!PMS.getConfiguration().isHideEngineNames()) {
name += " [" + player.name() + "]";
}
}
} else {
if (noName)
name = "[No encoding]";
else if (nametruncate > 0)
name = name.substring(0, nametruncate).trim();
}
if (srtFile && (media_audio == null && media_subtitle == null))
if (player == null || player.isExternalSubtitlesSupported())
name += " {External Subtitles}";
if (media_audio != null)
name = (player!=null?("[" + player.name() + "]"):"") + " {Audio: " + media_audio.getAudioCodec() + "/" + media_audio.getLang() + "}";
if (media_subtitle != null && media_subtitle.id != -1)
name += " {Sub: " + media_subtitle.getSubType() + "/" + media_subtitle.getLang() + (media_subtitle.flavor!=null?("/"+media_subtitle.flavor):"") + "}";
if (avisynth)
name = (player!=null?("[" + player.name()):"") + " + AviSynth]";
if (splitStart > 0 && splitLength > 0) {
name = ">> " + DLNAMediaInfo.getDurationString(splitStart);
}
return name;
}
WDTVLive.conf *I've just attached a png that can be used instead of unknown.png*
- Code: Select all
# ps3mediaserver renderer profile for WDTV Live
# Refer to PS3.conf for help
RendererName=WD TV Live
RendererIcon=unknown.png
UserAgentSearch=INTEL_NMPR
Video=true
Audio=true
Image=true
#SeekByTime=true
SeekByTime=false
TranscodeVideo=MPEGAC3
#TranscodeVideo=MPEGTSAC3
TranscodeAudio=PCM
DefaultVBVBufSize=false
#DefaultVBVBufSize=true
MuxH264ToMpegTS=false
MuxDTSToMpeg=true
WrapDTSIntoPCM=false
MuxLPCMToMpeg=false
MaxVideoBitrateMbps=0
MaxVideoWidth=0
MaxVideoHeight=0
#TranscodedVideoFileSize=-1
#TranscodedVideoFileSize=0
#TranscodedVideoFileSize=100000000000
TranscodeExtensions=flv
StreamExtensions=avi,xvid,divx,avc,mpg,mpeg,mkv,264,ts,tp,m2t,m2ts,wmv,mp3,wav,pcm,lpcm,wma,aac,flac,mka,aif,aiff,ogg,dts
PMS.conftranscode_keep_first_connection = false or another setting to allow the BufferOutputFile.java change to activate. If this could be a renderer conf setting it would be great.
MencoderThe mencoder from .369 doesn't work as it should on my system, but the one from .366 do. Others must have seen this problem too, since it isn't WDTV Live specific.