audio transcoding doesn't work

Issue #6 new
Lukas Jirkovsky repo owner created an issue

There is some weird bug with audio transcoding. For some reason even the old tested code doesn't work anymore. That means that it's possible that the problem lies outside the readymedia.

Comments (5)

  1. Oliver Springauf

    Hi, I've been trying to get audio transcoding to work, but so far without success. The transcoding script is supposed to write the output stream to stdout, isn't it? All I see are the following messages in the logfile:

    [2013/12/17 22:59:32] dlnameta.c:182: warn: Opening pipe:11 failed! [Invalid data found when processing input] [2013/12/17 22:59:32] upnphttp.c:2028: error: Cannot obtain metadata.

    Any advice on this?

  2. Lukas Jirkovsky reporter

    I haven't looked into this problem in more detail yet, because it works for my TV where I need it most. Right now I am able to reproduce it only with XBMC (it wroks with VLC now, too).

    The error I'm getting is a bit different ("Poll error : No data in Pipe"). Both errors points to the encoder not producing any data for some reason. The weird thing is that it happens only with some clients, so there may be some error in the DLNA flags that causes client to do some "unexpected things" that the current code can't cope with.

    I would like to get rid of this bug during Christmas, because it's the last bigger bug I know of.

  3. Lukas Jirkovsky reporter

    I think I found the reason why it breaks. The only difference between VLC (working) and XBMC (broken) is that VLC requests the files with "Connection: close" while XBMC uses "Connection: keep-alive"

    This should be perfectly fine as ReadyMedia claims to support HTTP/1.1 for which "keep-alive" is defined. However, ReadyMedia apparently doesn't support persistent connections. Instead, it just ignores the "connection: keep-alive" and uses "connection: closed" just like HTTP/1.0 server would.

  4. Oliver Springauf

    Thanks you for your help. Turns out it was my fault - I had an error in my transcoding script. I was sure I had the same error with your default audio transcoding script, but now it works fine. Btw, I am using BubbleUpnp (Android) as DLNA controller. Again, thanks, readymedia-transcode is a very nice piece of software.

    One feature that I would love to see is to browse my music collection also by "Album Artist" category. The problem with "Artist" is that compilation albums end up being scattered across many different artists. Whereas with "Album Artist", I could see them all under "Various" or whoever made the compilation.

  5. Log in to comment