FAQ  •  Register  •  Login

New 2012 TV Scene Rules

<<

nickveldrin

Serviio newbie

Posts: 7

Joined: Tue Dec 06, 2011 7:53 pm

Post Wed Mar 21, 2012 2:56 pm

Re: New 2012 TV Scene Rules

zip wrote:you'd have to add matcher for mpeg4@h264 to the transcoding config like

  Code:
<Matches container="mpeg4" vCodec="h264" />

Thanks, zip. I was actually thinking about that after i wrote the message when i was sitting at home. So i made the change to the profile and added these lines to the <Video targetContainer="asf" targetVCodec="wmv2" targetACodec="wmav2" maxVBitrate="15360" forceStereo="true"> section:
  Code:
            <Matches container="avi" vCodec="h264" aCodec="aac" />
            <Matches container="mp4" vCodec="h264" aCodec="aac" />
            <Matches container="mp4" vCodec="h264" />
            <Matches container="mp4" vCodec="msmpeg4" />
            <Matches container="mp4" vCodec="wmv2" />
            <Matches container="mp4" vCodec="dvvideo" />


It then allowed the video to stream, but the video's length didn't show up, so ffwd and rwd were not functional. So i did a deeper dive into the log file, and i saw that when Serviio tries to stream the xvid .avi file, it does it "native", compared to launching ffmpeg and doing the transcode for the x264.

Here are some of the debug logs, first for the console itself so you see header info:
  Code:
2012-03-20 20:26:18,321 DEBUG [DeviceDescriptionRequestHandler] DeviceDescription request received for device fb20c5b3-498b-3e94-8313-d02970d77991 from 192.168.0.121 (headers = [User-Agent: Xbox/2.0.14719.0 UPnP/1.0 Xbox/2.0.14719.0,Connection: Keep-alive,Host: 192.168.0.225:8895])
2012-03-20 20:26:18,321 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.121
2012-03-20 20:26:18,322 DEBUG [RendererManager] Looking for a renderer profile for Http headers: [User-Agent: Xbox/2.0.14719.0 UPnP/1.0 Xbox/2.0.14719.0,Connection: Keep-alive,Host: 192.168.0.225:8895]
2012-03-20 20:26:18,322 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.121
2012-03-20 20:26:18,325 DEBUG [DeviceDescriptionRequestHandler] Sending DeviceDescription XML back using profile 'Xbox 360'

Here's the part where it streams the xvid perfectly:
  Code:
2012-03-20 20:26:43,312 DEBUG [ResourceTransportRequestHandler] GET /resource/14847/MEDIA_ITEM/AVI*0 HTTP/1.1, headers = [User-Agent: Xenon,Connection: Keep-alive,Host: 192.168.0.225:8895]]
2012-03-20 20:26:43,312 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.121
2012-03-20 20:26:43,313 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:43,313 DEBUG [ResourceTransportRequestHandler] Request for resource 14847 and type 'MEDIA_ITEM' received
2012-03-20 20:26:43,313 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 14847 (local)
2012-03-20 20:26:43,313 DEBUG [VideoDeliveryEngine] Delivering item '14847' for client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:43,313 DEBUG [VideoDeliveryEngine] Delivering file 'Once.Upon.a.Time.(2011).S01E14.Dreamy.SD.TV.avi' in native format
2012-03-20 20:26:43,360 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2012-03-20 20:26:43,361 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 366713786
2012-03-20 20:26:43,361 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-03-20 20:26:43,361 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/avi,Content-Length: 366713786,Date: Wed, 21 Mar 2012 00:26:43 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,transferMode.dlna.org: Streaming]]
2012-03-20 20:26:43,422 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2012-03-20 20:26:43,445 DEBUG [WebServer] Incoming connection from /192.168.0.121:26003
2012-03-20 20:26:43,446 DEBUG [ResourceTransportRequestHandler] GET /resource/14847/MEDIA_ITEM/AVI*0 HTTP/1.1, headers = [User-Agent: Xenon,Connection: Keep-alive,Host: 192.168.0.225:8895,RANGE: bytes=364071122-]]
2012-03-20 20:26:43,446 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.121
2012-03-20 20:26:43,447 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:43,447 DEBUG [ResourceTransportRequestHandler] Request for resource 14847 and type 'MEDIA_ITEM' received
2012-03-20 20:26:43,447 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 14847 (local)
2012-03-20 20:26:43,448 DEBUG [VideoDeliveryEngine] Delivering item '14847' for client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:43,448 DEBUG [VideoDeliveryEngine] Delivering file 'Once.Upon.a.Time.(2011).S01E14.Dreamy.SD.TV.avi' in native format
2012-03-20 20:26:43,449 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 2642664
2012-03-20 20:26:43,449 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-03-20 20:26:43,449 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/avi,Content-Range: bytes 364071122-366713785/366713786,Content-Length: 2642664,Date: Wed, 21 Mar 2012 00:26:43 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,transferMode.dlna.org: Streaming]]
2012-03-20 20:26:45,104 DEBUG [WebServer] Incoming connection from /192.168.0.121:45787
2012-03-20 20:26:45,105 DEBUG [ResourceTransportRequestHandler] GET /resource/14847/MEDIA_ITEM/AVI*0 HTTP/1.1, headers = [User-Agent: Xenon,Connection: Keep-alive,Host: 192.168.0.225:8895,RANGE: bytes=65536-]]
2012-03-20 20:26:45,105 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.121
2012-03-20 20:26:45,106 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:45,106 DEBUG [ResourceTransportRequestHandler] Request for resource 14847 and type 'MEDIA_ITEM' received
2012-03-20 20:26:45,106 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 14847 (local)
2012-03-20 20:26:45,107 DEBUG [VideoDeliveryEngine] Delivering item '14847' for client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:45,107 DEBUG [VideoDeliveryEngine] Delivering file 'Once.Upon.a.Time.(2011).S01E14.Dreamy.SD.TV.avi' in native format
2012-03-20 20:26:45,108 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 366648250
2012-03-20 20:26:45,108 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-03-20 20:26:45,108 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/avi,Content-Range: bytes 65536-366713785/366713786,Content-Length: 366648250,Date: Wed, 21 Mar 2012 00:26:45 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,transferMode.dlna.org: Streaming]]
2012-03-20 20:26:45,634 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.0.109:65530
2012-03-20 20:26:48,105 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error


And here's where it's doing the x264:
  Code:
2012-03-20 20:26:55,993 DEBUG [WebServer] Incoming connection from /192.168.0.121:28191
2012-03-20 20:26:55,993 DEBUG [ResourceTransportRequestHandler] GET /resource/14848/MEDIA_ITEM/WMVMED_FULL*0 HTTP/1.1, headers = [User-Agent: Xenon,Connection: Keep-alive,Host: 192.168.0.225:8895]]
2012-03-20 20:26:55,993 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.121
2012-03-20 20:26:55,994 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:55,994 DEBUG [ResourceTransportRequestHandler] Request for resource 14848 and type 'MEDIA_ITEM' received
2012-03-20 20:26:55,994 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 14848 (local)
2012-03-20 20:26:55,995 DEBUG [VideoDeliveryEngine] Delivering item '14848' for client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:55,995 DEBUG [VideoDeliveryEngine] Delivering file 'Once.Upon.a.Time.(2011).S01E15.Red.Handed.SD.TV.mp4' using transcoding
2012-03-20 20:26:55,995 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:55,996 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: E:\01-Incoming\tv\Once Upon a Time (2011)\Once.Upon.a.Time.(2011).S01E15.Red.Handed.SD.TV.mp4
2012-03-20 20:26:55,996 DEBUG [ProcessExecutor] Starting C:\Program Files (x86)\Serviio\bin\\..\lib/ffmpeg.exe -i E:\01-Incoming\tv\Once Upon a Time (2011)\Once.Upon.a.Time.(2011).S01E15.Red.Handed.SD.TV.mp4 -y -async 1 -vcodec wmv2 -b 15360k -maxrate 15360k -bufsize 15360k -r 24000/1001 -g 15 -copyts -acodec wmav2 -ab 128k -ac 2 -map 0:0 -map 0:1 -sn -f asf f:\TEMP\Serviio\transcoding-temp-14848-ASF.stf
2012-03-20 20:26:56,496 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2012-03-20 20:26:56,500 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Once.Upon.a.Time.(2011).S01E15.Red.Handed.SD.TV.mp4: WMVMED_FULL
2012-03-20 20:26:56,502 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2012-03-20 20:26:56,502 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 50000000000
2012-03-20 20:26:56,502 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2012-03-20 20:26:56,502 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-03-20 20:26:56,503 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/x-ms-wmv,Date: Wed, 21 Mar 2012 00:26:56 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,transferMode.dlna.org: Streaming]]
2012-03-20 20:26:56,797 DEBUG [WebServer] Incoming connection from /192.168.0.121:29754
2012-03-20 20:26:56,797 DEBUG [ResourceTransportRequestHandler] GET /resource/14848/MEDIA_ITEM/WMVMED_FULL*0 HTTP/1.1, headers = [User-Agent: Xenon,Connection: Keep-alive,Host: 192.168.0.225:8895,RANGE: bytes=131072-]]
2012-03-20 20:26:56,798 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.121
2012-03-20 20:26:56,798 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:56,798 DEBUG [ResourceTransportRequestHandler] Request for resource 14848 and type 'MEDIA_ITEM' received
2012-03-20 20:26:56,798 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 14848 (local)
2012-03-20 20:26:56,799 DEBUG [VideoDeliveryEngine] Delivering item '14848' for client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:56,799 DEBUG [VideoDeliveryEngine] Delivering file 'Once.Upon.a.Time.(2011).S01E15.Red.Handed.SD.TV.mp4' using transcoding
2012-03-20 20:26:56,799 DEBUG [AbstractTranscodingDeliveryEngine] A suitable transcoding job already exists, re-use it for client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:56,799 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2012-03-20 20:26:56,801 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Once.Upon.a.Time.(2011).S01E15.Red.Handed.SD.TV.mp4: WMVMED_FULL
2012-03-20 20:26:56,801 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 49999868928
2012-03-20 20:26:56,801 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2012-03-20 20:26:56,801 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-03-20 20:26:56,801 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/x-ms-wmv,Content-Range: bytes 131072-49999999999/50000000000,Date: Wed, 21 Mar 2012 00:26:56 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,transferMode.dlna.org: Streaming]]
2012-03-20 20:26:57,595 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2012-03-20 20:26:58,538 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2012-03-20 20:26:58,574 DEBUG [WebServer] Incoming connection from /192.168.0.121:41511
2012-03-20 20:26:58,575 DEBUG [ResourceTransportRequestHandler] GET /resource/14848/MEDIA_ITEM/WMVMED_FULL*0 HTTP/1.1, headers = [User-Agent: Xenon,Connection: Keep-alive,Host: 192.168.0.225:8895]]
2012-03-20 20:26:58,575 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.121
2012-03-20 20:26:58,575 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:58,576 DEBUG [ResourceTransportRequestHandler] Request for resource 14848 and type 'MEDIA_ITEM' received
2012-03-20 20:26:58,576 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 14848 (local)
2012-03-20 20:26:58,576 DEBUG [VideoDeliveryEngine] Delivering item '14848' for client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:58,576 DEBUG [VideoDeliveryEngine] Delivering file 'Once.Upon.a.Time.(2011).S01E15.Red.Handed.SD.TV.mp4' using transcoding
2012-03-20 20:26:58,576 DEBUG [AbstractTranscodingDeliveryEngine] A suitable transcoding job already exists, re-use it for client 'IPAddress=/192.168.0.121, Profile=Xbox 360'
2012-03-20 20:26:58,577 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2012-03-20 20:26:58,578 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Once.Upon.a.Time.(2011).S01E15.Red.Handed.SD.TV.mp4: WMVMED_FULL
2012-03-20 20:26:58,580 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2012-03-20 20:26:58,580 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 50000000000
2012-03-20 20:26:58,580 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2012-03-20 20:26:58,580 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-03-20 20:26:58,580 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/x-ms-wmv,Date: Wed, 21 Mar 2012 00:26:58 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,transferMode.dlna.org: Streaming]]
2012-03-20 20:27:21,003 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error


So i guess to reach full functionality with ffwd/rwd, would we need to transcode to avi/xvid to serve to the 360?

Or could it be that when doing the "native" xvid handling, it's sending more valid "Content-Range","Content-Length", and bytes info whereas the x264 stuff does not?
<<

nickveldrin

Serviio newbie

Posts: 7

Joined: Tue Dec 06, 2011 7:53 pm

Post Wed Mar 21, 2012 4:26 pm

Re: New 2012 TV Scene Rules

Ah i just noticed that we cannot set a <Video targetContainer="avi"> nor can we set targetVCodec="h263" or "avi" or even "mp4". I got errors on startup, so it seems that we're limited to what's set up in the profiles.xsd on the serviio server, which looks like:
  Code:
<xsd:simpleType name="targetContainerEnumType">
  <xsd:restriction base="xsd:string">
    <xsd:enumeration value="asf"/>
    <xsd:enumeration value="mpegvideo"/>
    <xsd:enumeration value="mpeg"/>
    <xsd:enumeration value="mpegts"/>
  </xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="targetVideoCodecEnumType">
  <xsd:restriction base="xsd:string">
    <xsd:enumeration value="mpeg2video"/>
    <xsd:enumeration value="wmv2"/>
  </xsd:restriction>
</xsd:simpleType>


So can i request that Serviio have the option to encode to xvid(or mp4 or h263 or whatever codec streams native from the 360) ?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Mar 21, 2012 10:59 pm

Re: New 2012 TV Scene Rules

you can only encode to wmv on xbox
<<

nickveldrin

Serviio newbie

Posts: 7

Joined: Tue Dec 06, 2011 7:53 pm

Post Wed Mar 21, 2012 11:22 pm

Re: New 2012 TV Scene Rules

zip wrote:you can only encode to wmv on xbox

That would be okay if the transcoded wmv worked as well as the natively handled xvid, but we don't have ffwd/rwd :( I guess i'll just have to take it as is and buy something to put xmbc on to get codecs handled a little better.

I appreciate the hard work you guys do! Serviio is the best dlna server out there.
<<

Stuey

Serviio newbie

Posts: 2

Joined: Thu Mar 15, 2012 10:19 am

Post Sat Apr 07, 2012 3:38 am

Re: New 2012 TV Scene Rules

Dont' want to sound like too much of a newbie, but why can't there be a targetContainerEnumType of either avi, Xvid or divX. The reason I ask is that I only want to transcode the audio of my avi (xvid/divx) files from VBR to CBR so that they'll play on my Viera.

Example script:
<Video targetContainer="avi" targetACodec="mp3" aBitrate="128">
<Matches container="avi"
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Apr 10, 2012 8:49 pm

Re: New 2012 TV Scene Rules

You cannot transcode to those containers as they are not suitable for on-the-fly transcoding
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Wed Apr 11, 2012 11:05 pm

Re: New 2012 TV Scene Rules

You're not the first person to optimistically suggest this though :)
I banged my head for ages back in 2010 trying to find a glimmer of hope that there was some way of live-encoding MP4.
viewtopic.php?f=5&t=36

tl;dr - There isn't. :(
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
Previous

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 71 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.