Page 1 of 1

Transcoding working in 1.1 has problems in 1.2

PostPosted: Mon Mar 11, 2013 9:32 am
by mbarnig
Hello,

I use the Serviio server in my home-network since version 0.6.2.
It's a great product. I run it on a Synology NAS DS412+.
My main renderers are settopboxes provided by the french company Netgem (netbox 8000 and netbox 5000).
These are basic DLNA devices v1.0.

Here is the description.xml :
  Code:
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion><major>1</major><minor>0</minor></specVersion>
<device><deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType>
<friendlyName>netbox [54:39:E3]</friendlyName>
<manufacturer>Netgem</manufacturer>
<manufacturerURL>http://www.netgem.com/</manufacturerURL>
<modelName>netbox</modelName>
<modelNumber>5000 v5.2.65-70</modelNumber>
<modelURL>http://www.netgem.com/</modelURL>
<UDN>uuid:af0a754a-685c-4765-b418-0004305439e3</UDN>
<presentationURL>/description.xml</presentationURL>
</device></root>


UPnP detection with Serviio is working, but the devices are shown as "Unrecognized device" in the Serviio console.
I use the following profile to play Quicktime mjpeg videos on my TV's connected to the netboxes :

  Code:
<Profile id="netbox" name="SetTopBox Netgem" extendsProfileId="1">
       <Detection>
         <UPnPSearch>
            <FriendlyName>netbox</FriendlyName>
         </UPnPSearch>
      </Detection>
      <Transcoding>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
            <Matches container="mp4" vCodec="mjpeg" />
         </Video>
      </Transcoding>
</Profile>


Since version 1.2, the transcoding is no longer working. The audio is playing without an image,
a spinning icon shows that the video never finish loading.
The same problem appears on my Windows 7 PC with Serviio version 1.2.
I reinstalled versions 1.0.1 and 1.1 on the same Windows 7 PC with the netbox profile.
The transcoding is working as expected with both versions.

Something seems to have changed with version 1.2.

I add the zipped log file with the debug informations when I tried to play 4 video items on the netbox with IP address 192.168.178.24.
I think these are the relevant data from the log file :

  Code:
2013-03-10 18:33:37,565 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2013-03-10 18:33:37,566 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Date: Sun, 10 Mar 2013 17:33:37 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/1.2,Cache-control: no-cache,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2013-03-10 18:33:39,085 DEBUG [TranscodingJobListener] Transcoding finished; successful: true
2013-03-10 18:33:47,215 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error


Thank you in advance for any help. In the meantime I will go back to version 1.1.

mbarnig, Luxembourg

Re: Transcoding working in 1.1 has problems in 1.2

PostPosted: Mon Mar 11, 2013 12:43 pm
by zip
what if you use the ffmpeg binary from 1.1 in 1.2 installation?

Re: Transcoding working in 1.1 has problems in 1.2

PostPosted: Mon Mar 11, 2013 1:01 pm
by Illico
zip wrote:what if you use the ffmpeg binary from 1.1 in 1.2 installation?


I had the same problem with some AVI/mjpeg camcorder, works with 1.1, failed with 1.2

Re: Transcoding working in 1.1 has problems in 1.2

PostPosted: Mon Mar 11, 2013 4:59 pm
by zip
Does FFmpeg fail then or does it just produce an invalid file? Can you try with latest Ffmpeg as well - if they fixed it I could still include it in 1.2.1

Re: Transcoding working in 1.1 has problems in 1.2

PostPosted: Mon Mar 11, 2013 7:51 pm
by mbarnig
Hello Zip & Illico,
Thank you for the quick answers.

I replaced ffmpeg.exe in Serviio version 1.2 with the ffmpeg.exe from Serviio version 1.1 on my Windows PC.
This did the job, the mjpeg transcoding is working again.
I tried also with the latest Zeranoe FFmpeg Build Version: git-586ae70 (2013-03-10), without success. The problem is not fixed in this version.

I would like to do the 1.1 change in my Synology NAS, but this seams less obvious.
The Synology Serviio lib folder has no single ffmpeg binary, but the individual ffmpeg libraries.
Worse, I don't have a copy of the Synology package 1.1 because I did an automatic upgrade and
I can't find the 1.1 package in the forum or on the web.

I would be grateful if somebody could give me a hint what ffmpeg binaries to change in the Synology package and provide me the corresponding files.

Your help is appreciated.
kind regards,

mbarnig

Re: Transcoding working in 1.1 has problems in 1.2

PostPosted: Mon Mar 11, 2013 9:36 pm
by zip
can you or Illico create a ticket at ffmpeg? https://ffmpeg.org/trac/ffmpeg

Re: Transcoding working in 1.1 has problems in 1.2

PostPosted: Tue Mar 12, 2013 8:51 am
by mbarnig
I will create a ticket at ffmpeg as soon as possible.

mbarnig

Re: Transcoding working in 1.1 has problems in 1.2

PostPosted: Tue Mar 12, 2013 11:32 pm
by sushidog
After reinstalling Serviio and Java multiple times this afternoon trying to figure out what's up, I think this is what happened to me as well. Some avis that used to play no longer do. Although they play using other servers, including through my Panasonic's built in DLNA setup, Serviio was just more robust that the internal server, or than Plex (which I tired in my frustration). I'm anxious to see if a new version of ffmpeg.exe fixes my problem (been scouring the web for possible sources of old files, but no luck so far).

Re: Transcoding working in 1.1 has problems in 1.2

PostPosted: Wed Mar 13, 2013 11:02 am
by mbarnig
Hello shushidog,

please find here a link to download the windows ffmpeg version from Serviio 1.1
http://www.web3.lu/download/ffmpeg_pc5dczc_1_1.zip

mbarnig

Re: Transcoding working in 1.1 has problems in 1.2

PostPosted: Wed Mar 13, 2013 12:13 pm
by zip
mbarnig wrote:Hello shushidog,

please find here a link to download the windows ffmpeg version from Serviio 1.1
http://www.web3.lu/download/ffmpeg_pc5dczc_1_1.zip

mbarnig

Just to note, this version will not support burned-in subtitles

Re: Transcoding working in 1.1 has problems in 1.2

PostPosted: Wed Mar 13, 2013 10:13 pm
by sushidog
mbarnig wrote:Hello shushidog,

please find here a link to download the windows ffmpeg version from Serviio 1.1
http://www.web3.lu/download/ffmpeg_pc5dczc_1_1.zip

mbarnig



Thanks, I'll give that a try...

Re: Transcoding working in 1.1 has problems in 1.2

PostPosted: Thu Mar 14, 2013 4:12 am
by sushidog
My Java messed up and had to re-install it a few times before I could get Serviio working again. Finally did and then swapped in the older ffmpeg, but no luck. I can get the files to play using the built-in network or with Plex, but neither one is as elegant as Serviio when it's working. I'll keep looking for a solution.