WDTV Live transcoding hangs after few minutes (SOLVED)

For help and support with PS3 Media Server in general
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Re: WDTV Live transcoding hangs after few minutes

Postby ditlew » Tue Dec 08, 2009 12:15 am

I found the problem, not the solution.

I took the mencoder command and ran it by hand. It reached the exact same frame and stopped, saying :"BUFFER UNDEFLOW at stream 1, raising muxrate to 55000 kb/s, delta_scr: 804". Why this doesn't happen with the PS3 as a client .. I dunno.

Do you have an idea?

*update* I don't get it ... the ps3 command looks the exact same..
PMS Developer
Before reporting a problem read this: viewtopic.php?f=6&t=496
ditlew
Project Member
 
Posts: 21
Joined: Sun Nov 29, 2009 9:08 am

Re: WDTV Live transcoding hangs after few minutes

Postby shagrath » Tue Dec 08, 2009 12:31 am

this error should be the same with the ps3 or the wd live, unless you are using the MPEGTSAC3 transcoder option in the renderer conf file
shagrath
Project Lead
 
Posts: 2646
Joined: Wed Jan 14, 2009 1:39 pm

Re: WDTV Live transcoding hangs after few minutes

Postby ditlew » Tue Dec 08, 2009 12:45 am

Found the problem and fixed it :D

I dunno why, but I came to think of that maybe I ran my PS3 test on a different version of mencoder, so I copied mencoder_mt.exe on top of mencoder.exe and vola .. it runs perfectly! Did you add a new mencoder version recently or did I replaced yours as a test earlier on perhaps ... hmm?

I'm heading to bed now, but tomorrow I'll clean up my code and let you know what the minimun changes are for a WDTV Live client.
PMS Developer
Before reporting a problem read this: viewtopic.php?f=6&t=496
ditlew
Project Member
 
Posts: 21
Joined: Sun Nov 29, 2009 9:08 am

Re: WDTV Live transcoding hangs after few minutes

Postby ditlew » Tue Dec 08, 2009 12:48 pm

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.conf
transcode_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.

Mencoder
The 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.
Attachments
wd-tv-live.png
a file that can be used as a renderer icon
wd-tv-live.png (11.24 KiB) Viewed 625 times
PMS Developer
Before reporting a problem read this: viewtopic.php?f=6&t=496
ditlew
Project Member
 
Posts: 21
Joined: Sun Nov 29, 2009 9:08 am

Re: WDTV Live transcoding hangs after few minutes

Postby shagrath » Tue Dec 08, 2009 11:27 pm

ditlew wrote:PMS.conf
transcode_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.


this change requires some heavy method signature modification, maybe I could make a renderer setting who enable the current option for now
shagrath
Project Lead
 
Posts: 2646
Joined: Wed Jan 14, 2009 1:39 pm

Re: WDTV Live transcoding hangs after few minutes

Postby ditlew » Wed Dec 09, 2009 9:31 am

shagrath wrote:
ditlew wrote:PMS.conf
transcode_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.


this change requires some heavy method signature modification, maybe I could make a renderer setting who enable the current option for now


What ever will make it work :) Btw, my PS3 works fine with BufferOutputFile.java change activated permantly, but I dunno if it will cause problems for some of the other renderers therefor the wish for a setting.
PMS Developer
Before reporting a problem read this: viewtopic.php?f=6&t=496
ditlew
Project Member
 
Posts: 21
Joined: Sun Nov 29, 2009 9:08 am

Previous

Return to General Help and Support

Who is online

Users browsing this forum: No registered users and 28 guests