Transcoding for Touchpad

Discuss alternative media renderers (not PS3) supported by PS3 Media Server (e.g. Xbox 360, TVs &c.)

Transcoding for Touchpad

Postby dirtymole » Thu Aug 25, 2011 10:14 pm

Hey everyone,

I've got a problem with streaming videos to my touchpad through an app called bHome. MP3s work perfectly as they have native support on WebOS. However, the only video format it will support is MP4. I have tried created a conf file to rectify this and force it to transcode avi files to MP4 format which has been adapted from the Samsung preset. When accessing the file it does start to transcode but the container type is still set to [avi] and the video is [mpeg4]. I'm guessing it has something to do with changing the container type - which if I am correct you need to mux it across (however this is the limit of my knowledge and I'm not sure where to go!

Here is my conf file:

Code: Select all
RendererName=HP Touchpad
RendererIcon=touchpad.png
UserAgentSearch=BSS webOS Device Discover UPnP/1.0 DLNADOC/1.50
Video=true
Audio=true
Image=true
SeekByTime=false
TranscodeVideo=MPEGAC3
TranscodeAudio=WAV
DefaultVBVBufSize=true
MuxH264ToMpegTS=true
MuxDTSToMpeg=true
WrapDTSIntoPCM=false
MuxLPCMToMpeg=false
MaxVideoBitrateMbps=0
MaxVideoWidth=0
MaxVideoHeight=0
MimeTypesChanges=audio/wav=audio/L16
TranscodeExtensions=mov,avi
StreamExtensions=mp3,mp4,wav




Any help would be greatly appreciated!

Thankyou!
dirtymole
 
Posts: 2
Joined: Thu Aug 25, 2011 10:07 pm

Re: Transcoding for Touchpad

Postby ed_db » Fri Aug 26, 2011 4:08 pm

Hi I am also looking for a working config for the Touchpad.

Supported Formats
Audio Formats: DRM-free MP3, AAC, AAC+, eAAC+, AMR, QCELP, WAV
Video Formats: MPEG-4, H.263, H.264
ed_db
 
Posts: 1
Joined: Fri Aug 26, 2011 3:39 pm

Re: Transcoding for Touchpad

Postby mikeucfl » Mon Aug 29, 2011 3:29 am

I've been trying to get this to work the past few hours, but haven't come up with anything yet :\ Anyone got any ideas?
mikeucfl
 
Posts: 1
Joined: Mon Aug 29, 2011 3:27 am

Re: Transcoding for Touchpad

Postby fastfreddy678 » Tue Aug 30, 2011 3:32 am

I'm dying for this to work too. I've seen on a few boards that they talk about how ps3mediaserver transcodes only in MPEG2, which is a great idea for most media players, however the TP doesn't support MPEG2, it only handles what was mentioned before. I don't know if this is true, but I think the trick we need to figure out is how to set the default transcoding stream from MPEG2 to MPEG4. If we can figure that out I think we are set.

So when I tried making my own .conf file, I set UserAgentSearch=hpwOS. ps3ms, recognized it. so it would say a webOS renderer is connected. of course I still ran into the issue above, but if I was streaming an old iphone move, mp4, then it ran great using the UPNP AV player. I'm debating whether I want to spring for the full version, I probably will if we can get this .conf sorted out, I want to play .avi.

Keep up the good work fellas or ladies!
fastfreddy678
 
Posts: 1
Joined: Tue Aug 30, 2011 3:22 am

Re: Transcoding for Touchpad

Postby jlvandusen » Sun Sep 11, 2011 2:34 pm

I too am waiting for someone to determine how to solve this. I am a Touchpad owner looking for a single server environment. We have all PS3s connected to our Monitors (50"+) and the touchpad would be the portable device that we would access the same content.
jlvandusen
 
Posts: 1
Joined: Sun Sep 11, 2011 2:31 pm

Re: Transcoding for Touchpad

Postby Dave114 » Sat Sep 24, 2011 10:50 pm

Am I correct in understanding that you're at least able to get MP3s to work properly? I recently switched to Mac OS X and, although I can browse the server and the logs note that it's trying to send me a file, when I try to load a file like an MP3 I'm getting errors in the log like the following:

Code: Select all
[New I/O server worker #1-4] INFO  15:36:26.161 java.lang.StringIndexOutOfBoundsException: String index out of range: -1
[New I/O server worker #1-4] INFO  15:36:26.162    at java.lang.String.substring(String.java:1937)
[New I/O server worker #1-4] INFO  15:36:26.163    at net.pms.network.RequestV2.answer(RequestV2.java:248)
[New I/O server worker #1-4] INFO  15:36:26.164    at net.pms.network.RequestHandlerV2.writeResponse(RequestHandlerV2.java:220)
[New I/O server worker #1-4] INFO  15:36:26.165    at net.pms.network.RequestHandlerV2.messageReceived(RequestHandlerV2.java:194)
[New I/O server worker #1-4] INFO  15:36:26.165    at org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(ChunkedWriteHandler.java:148)
[New I/O server worker #1-4] INFO  15:36:26.169    at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:116)
[New I/O server worker #1-4] INFO  15:36:26.170    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302)
[New I/O server worker #1-4] INFO  15:36:26.170    at org.jboss.netty.handler.codec.replay.ReplayingDecoder.unfoldAndfireMessageReceived(ReplayingDecoder.java:522)
[New I/O server worker #1-4] INFO  15:36:26.171    at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:506)
[New I/O server worker #1-4] INFO  15:36:26.171    at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:443)
[New I/O server worker #1-4] INFO  15:36:26.172    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
[New I/O server worker #1-4] INFO  15:36:26.172    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
[New I/O server worker #1-4] INFO  15:36:26.172    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)
[New I/O server worker #1-4] INFO  15:36:26.173    at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280)
[New I/O server worker #1-4] INFO  15:36:26.189    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200)
[New I/O server worker #1-4] INFO  15:36:26.190    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[New I/O server worker #1-4] INFO  15:36:26.191    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[New I/O server worker #1-4] INFO  15:36:26.191    at java.lang.Thread.run(Thread.java:680)


Anyone else seeing these sorts of errors (particularly if running your server on Mac OS X)?
Dave114
 
Posts: 12
Joined: Sat Sep 24, 2011 12:31 pm

Re: Transcoding for Touchpad

Postby dirtymole » Sat Sep 24, 2011 11:06 pm

I have no difficulties with mp3 or mp4 files when streaming from PMS. However this is from a Windows 7 machine not Mac.

Anyone had any luck with this yet?
dirtymole
 
Posts: 2
Joined: Thu Aug 25, 2011 10:07 pm

Re: Transcoding for Touchpad

Postby Raptor399 » Sun Sep 25, 2011 7:33 am

Dave114 wrote:Anyone else seeing these sorts of errors (particularly if running your server on Mac OS X)?

Yes, I am seeing those on my iPad / iPhone as well (see issue 1156).

There is a problem with PMS's HTTPv2 mechanism that causes requests to be handled concurrently. As in: you place one request, but somehow it fires two concurrent handlers for that same request. And that causes strange behavior in underlying code. I've seen ArrayOutOfBoundsExceptions, ConcurrentModificationExceptions etc. in places where they could not possibly occur if there weren't multiple threads at work.

The same goes for your "StringIndexOutOfBoundsException: String index out of range: -1":
Code: Select all
      } else if ((method.equals("GET") || method.equals("HEAD")) && argument.startsWith("get/")) {
         // Request to retrieve a file

         // Extract the resource id from the argument string.
         String id = argument.substring(argument.indexOf("get/") + 4, argument.lastIndexOf("/"));

argument.lastIndexOf("/") is the only bit that could be the -1 that the exception is talking about. However, the if above it demands that argument.startsWith("get/"), which contains a "/". So lastIndexOf("/") simply cannot be -1... if it were a thread safe environment. ;-)
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am

Re: Transcoding for Touchpad

Postby ThaDraGun » Sun Sep 25, 2011 5:14 pm

I hope someone can figure out how to get PS3MediaServer working on Touchpad. I've tried every server and cant get anything to transcode properly.
ThaDraGun
 
Posts: 15
Joined: Sat Jan 24, 2009 6:24 am

Re: Transcoding for Touchpad

Postby christovftw » Sat Dec 17, 2011 3:43 pm

Has anyone figured out how to get this working? I'm having the same problem as the OP, mp3 and mp4 work fine but avi or mkv (which pms seems to at least *think* it's transcoding to mp4 as this is what the status bar tells me) don't stream and I get an unsupported file format error.
Failing that, perhaps the CM7 android touchpad port and someone has figured out how to get that working?
christovftw
 
Posts: 4
Joined: Sat Dec 17, 2011 3:38 pm

Next

Return to Alternative Media Renderers

Who is online

Users browsing this forum: No registered users and 3 guests