FAQ  •  Register  •  Login

Fixed-point compiled ffmpeg

<<

csholmq

DLNA master

Posts: 139

Joined: Sun Mar 25, 2012 11:41 pm

Post Fri Mar 30, 2012 12:57 pm

Fixed-point compiled ffmpeg

My QNAP NAS has an optional Serviio armv5tel package that I use. With that, ffmpeg comes pre-compiled and works great! However, it has been suggested that compiling a fixed-point ffmpeg would greatly improve the performance of e.g live streaming.

For live HD streaming, with transcoding turned off in serviio-console, my processor serves ffmpeg with around 30-40% of CPU time. Is this normal or could I expect better performance with a re-compiled fix-point ffmpeg? I find that the streams all start lagging as soon as the NAS processes something in parallel.

NAS hardware specs:
CPU: Marvell 6282 1.6GHz
DRAM: 512MB DDRIII RAM


I'm on a hardwire TP between my Samsung (D-series) TV and my NAS. And my connection to the internet is 100/10 Mbit. I never go above 4 Mbit for streaming according to my NAS logging.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Mar 30, 2012 5:28 pm

Re: Fixed-point compiled ffmpeg

I'd ask on FFmpeg mailing list or IRC channel
<<

csholmq

DLNA master

Posts: 139

Joined: Sun Mar 25, 2012 11:41 pm

Post Mon Apr 02, 2012 10:41 am

Re: Fixed-point compiled ffmpeg

Actually, what I meant (I understand that now :)) is; how do I specify ac3_fixed as audio codec? I understand that you haven't implemented that option as of yet. But is there some option to allow changing targetACodec="ac3" to targetACodec="ac3_fixed" without Serviio complaining over which codecs that are available to choose from?

I.e is there some file that holds the available codecs that I can edit?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Mon Apr 02, 2012 11:41 am

Re: Fixed-point compiled ffmpeg

I think it is in the source code. However, you can always write an ffmpeg wrapper than replaces references to ac3 with ac3_fixed before passing the commandline args to the real ffmpeg. To do this, set the -Dffmpeg.location property in your serviio.sh to point to a bash script that uses something like sed to make the change and then call ffmpeg. Also make sure you capture the return code from ffmpeg and pass it back to serviio.

Here is the one I use to get you started, it adds an extra param, rather than replacing one, but it should give you an idea, If you need help adapting it then post back and I'll do it for you, but I'll assume you can use sed and work out the correct options on your own. Once it is done and working, it would be nice if you could put together a short guide which can then be put on the wiki for future users.

  Code:
#!/bin/bash
args=("$@")
DROP_VOL=0
for var in "$@"
do
        if [[ $var == *channel4.com* ]] ; then
                DROP_VOL=1
        fi
done
if [[ $DROP_VOL = 1 ]] ; then
        /usr/local/bin/ffmpeg -vol 32 "${args[@]}"
        rc=$?
else
        /usr/local/bin/ffmpeg "${args[@]}"
        rc=$?
fi

exit $rc
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

csholmq

DLNA master

Posts: 139

Joined: Sun Mar 25, 2012 11:41 pm

Post Tue Apr 03, 2012 12:02 am

Re: Fixed-point compiled ffmpeg

Thanks!

Here's my code.

  Code:
#!/bin/bash

# Replace default ac3 codec with fixed-point one
ARGS=$(echo $@ | sed s/ac3/ac3_fixed/g)

# Call ffmpeg from wrapper script
/root/.serviio/opt/bin/ffmpeg $ARGS


# Return ffmpeg status
exit $?


Haven't gotten it to work properly. The streams are indexed and shows up on the tv. But nothing will play.
  Code:
2012-04-03 02:03:49,397 DEBUG [StreamBasedTranscodingDeliveryStrategy] Transcoded stream is empty, connection may have been lost
2012-04-03 02:03:49,398 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s7.webport.tv/live/z050204.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1: AVC_TS_MP_HD_AC3_ISO
2012-04-03 02:03:49,398 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 50000000000
2012-04-03 02:03:49,399 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-04-03 02:03:49,399 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Content-Length: 50000000000,Date: Tue, 03 Apr 2012 00:03:49 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_TS_MP_HD_AC3_ISO;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=8D500000000000000000000000000000,transferMode.dlna.org: Streaming,MediaInfo.sec: SEC_Duration=18000000;]]
2012-04-03 02:03:53,675 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target uuid:83403509-60a4-3ac0-bae1-94340baf2344 from address /192.168.1.251:1028
2012-04-03 02:03:53,677 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.251:1028
2012-04-03 02:03:53,978 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target uuid:83403509-60a4-3ac0-bae1-94340baf2344 from address /192.168.1.251:1028
2012-04-03 02:03:53,980 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.251:1028
2012-04-03 02:03:54,282 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target uuid:83403509-60a4-3ac0-bae1-94340baf2344 from address /192.168.1.251:1028
2012-04-03 02:03:54,283 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.251:1028
2012-04-03 02:03:56,795 DEBUG [WebServer] Incoming connection from /192.168.1.251:57938
2012-04-03 02:03:56,796 DEBUG [ResourceTransportRequestHandler] HEAD /resource/1000000000030014/MEDIA_ITEM/AVC_TS_MP_SD_AC3_ISO*0 HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,Host: 192.168.1.2:8895]]
2012-04-03 02:03:56,797 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 02:03:56,798 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 02:03:56,799 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030014 and type 'MEDIA_ITEM' received
2012-04-03 02:03:56,799 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000000030014 (online)
2012-04-03 02:03:56,799 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 02:03:56,800 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 02:03:56,802 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000030014, format AVC_TS_MP_SD_AC3_ISO and profile Samsung TV / player (C/D-series)
2012-04-03 02:03:56,802 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file rtmp://93.114.44.21:1936/live/ swfUrl=http://veohcast.tv/veohcast.tv.swf pageurl=http://www.veohcast.tv playpath=eventtv swfVfy=0 live=1
2012-04-03 02:03:56,802 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://93.114.44.21:1936/live/ swfUrl=http://veohcast.tv/veohcast.tv.swf pageurl=http://www.veohcast.tv playpath=eventtv swfVfy=0 live=1: AVC_TS_MP_SD_AC3_ISO
2012-04-03 02:03:56,803 DEBUG [ResourceTransportRequestHandler] Sending HEAD response back
2012-04-03 02:03:56,803 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Content-Length: 50000000000,Date: Tue, 03 Apr 2012 00:03:56 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_TS_MP_SD_AC3_ISO;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=8D500000000000000000000000000000,transferMode.dlna.org: Streaming]]
2012-04-03 02:03:56,818 DEBUG [WebServer] Incoming connection from /192.168.1.251:58892
2012-04-03 02:03:56,819 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000000030014/MEDIA_ITEM/AVC_TS_MP_SD_AC3_ISO*0 HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Streaming,getMediaInfo.sec: 1,Host: 192.168.1.2:8895]]
2012-04-03 02:03:56,819 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 02:03:56,820 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 02:03:56,821 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030014 and type 'MEDIA_ITEM' received
2012-04-03 02:03:56,822 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000000030014 (online)
2012-04-03 02:03:56,822 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 02:03:56,823 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 02:03:56,824 DEBUG [VideoDeliveryEngine] Delivering item '1000000000030014' for client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 02:03:56,825 DEBUG [VideoDeliveryEngine] Delivering file 'rtmp://93.114.44.21:1936/live/ swfUrl=http://veohcast.tv/veohcast.tv.swf pageurl=http://www.veohcast.tv playpath=eventtv swfVfy=0 live=1' using transcoding
2012-04-03 02:03:56,825 DEBUG [AbstractTranscodingDeliveryEngine] Stopping previous transcoding job of file 'transcoding-temp-1000000000030012-MPEG2TS.stf'
2012-04-03 02:03:56,825 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 02:03:56,826 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: rtmp://93.114.44.21:1936/live/ swfUrl=http://veohcast.tv/veohcast.tv.swf pageurl=http://www.veohcast.tv playpath=eventtv swfVfy=0 live=1
2012-04-03 02:03:56,827 DEBUG [ProcessExecutor] Starting /root/.serviio/ffmpeg.sh -i rtmp://93.114.44.21:1936/live/ swfUrl=http://veohcast.tv/veohcast.tv.swf pageurl=http://www.veohcast.tv playpath=eventtv swfVfy=0 live=1 -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe:
2012-04-03 02:03:57,994 WARN  [ProcessExecutor] Process /root/.serviio/ffmpeg.sh has a return code of 1! This is a possible error.
2012-04-03 02:03:57,995 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Tue Apr 03, 2012 7:07 am

Re: Fixed-point compiled ffmpeg

Does it work on normal video files? What happens when you run the ffmpeg commands on their own.

As for your script, I would recomend looking for "-acodec ac3", as ac3 on its own might turn up in things like authentication tokens for some online sources.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

csholmq

DLNA master

Posts: 139

Joined: Sun Mar 25, 2012 11:41 pm

Post Tue Apr 03, 2012 9:13 am

Re: Fixed-point compiled ffmpeg

will wrote:Does it work on normal video files? What happens when you run the ffmpeg commands on their own.

As for your script, I would recomend looking for "-acodec ac3", as ac3 on its own might turn up in things like authentication tokens for some online sources.

Normal files work. But they don't seem to call on ffmpeg (since I disabled transcoding I presume).

As a test, I have the following code.
  Code:
#!/bin/bash

# Replace default ac3 codec with fixed-point one
#ARGS=$(echo $@ | sed s/-acodec ac3/-acodec ac3_fixed/g)

# Call ffmpeg from wrapper script
echo $@ >> ffmpeg.log

/root/.serviio/opt/bin/ffmpeg $@

# Return ffmpeg status
exit $?


What's weird is that I manage to get some streams working. But far from all.
  Code:
-i rtsp://winstream.kamu.tamu.edu/kamu-tv?tcp -y -threads 1 -async 1 -vcodec mpeg2video -sameq -r 30000/1001 -g 15 -copyts -acodec ac3 -ab 384k -ac 2 -map 0:2 -map 0:0 -sn -f vob pipe:

works, but since it's -vcodec mpeg2video is struggles at 99 % and lags behind.
  Code:
-i rtmp://s6.webport.tv/live/z020503.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1 -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe:

does not, and it usually always work.

I get errors when I test the rtmp stream directly on my Mac. How can I test a rtmp stream with ffmpeg properly?
[NULL @ 0x7ff5c9115800] Unable to find a suitable output format for 'pageUrl=http://www.tvsector.com/'
<<

csholmq

DLNA master

Posts: 139

Joined: Sun Mar 25, 2012 11:41 pm

Post Tue Apr 03, 2012 1:15 pm

Re: Fixed-point compiled ffmpeg

I reverted back to the default call on ffmpeg directly and I'm still having issues. So something I did is still hanging in there.

This is a successful play of BBC News
  Code:
2012-04-03 14:38:08,594 DEBUG [WebServer] Incoming connection from /192.168.1.251:38778
2012-04-03 14:38:08,595 DEBUG [ResourceTransportRequestHandler] HEAD /resource/1000000000050001/MEDIA_ITEM/AVC_TS_MP_SD_AC3_ISO*0 HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,Host: 192.168.1.2:8895]]
2012-04-03 14:38:08,596 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 14:38:08,597 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 14:38:08,598 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000050001 and type 'MEDIA_ITEM' received
2012-04-03 14:38:08,598 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000000050001 (online)
2012-04-03 14:38:08,598 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 5)
2012-04-03 14:38:08,599 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 5)
2012-04-03 14:38:08,601 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000050001, format AVC_TS_MP_SD_AC3_ISO and profile Samsung TV / player (C/D-series)
2012-04-03 14:38:08,601 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file rtmp://media7.lsops.net/live/bbcnews_en_high.sdp swfUrl=http://beta.cdn.livestation.com/player/5.7/player.swf swfVfy=0 live=1
2012-04-03 14:38:08,601 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://media7.lsops.net/live/bbcnews_en_high.sdp swfUrl=http://beta.cdn.livestation.com/player/5.7/player.swf swfVfy=0 live=1: AVC_TS_MP_SD_AC3_ISO
2012-04-03 14:38:08,602 DEBUG [ResourceTransportRequestHandler] Sending HEAD response back
2012-04-03 14:38:08,602 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Content-Length: 50000000000,Date: Tue, 03 Apr 2012 12:38:08 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_TS_MP_SD_AC3_ISO;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=8D500000000000000000000000000000,transferMode.dlna.org: Streaming]]
2012-04-03 14:38:08,625 DEBUG [WebServer] Incoming connection from /192.168.1.251:45422
2012-04-03 14:38:08,625 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000000050001/MEDIA_ITEM/AVC_TS_MP_SD_AC3_ISO*0 HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Streaming,getMediaInfo.sec: 1,Host: 192.168.1.2:8895]]
2012-04-03 14:38:08,626 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 14:38:08,627 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 14:38:08,628 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000050001 and type 'MEDIA_ITEM' received
2012-04-03 14:38:08,628 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000000050001 (online)
2012-04-03 14:38:08,628 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 5)
2012-04-03 14:38:08,630 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 5)
2012-04-03 14:38:08,631 DEBUG [VideoDeliveryEngine] Delivering item '1000000000050001' for client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 14:38:08,631 DEBUG [VideoDeliveryEngine] Delivering file 'rtmp://media7.lsops.net/live/bbcnews_en_high.sdp swfUrl=http://beta.cdn.livestation.com/player/5.7/player.swf swfVfy=0 live=1' using transcoding
2012-04-03 14:38:08,632 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 14:38:08,632 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: rtmp://media7.lsops.net/live/bbcnews_en_high.sdp swfUrl=http://beta.cdn.livestation.com/player/5.7/player.swf swfVfy=0 live=1
2012-04-03 14:38:08,633 DEBUG [ProcessExecutor] Starting /root/.serviio/opt/bin/ffmpeg -i rtmp://media7.lsops.net/live/bbcnews_en_high.sdp swfUrl=http://beta.cdn.livestation.com/player/5.7/player.swf swfVfy=0 live=1 -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe:
2012-04-03 14:38:11,174 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://media7.lsops.net/live/bbcnews_en_high.sdp swfUrl=http://beta.cdn.livestation.com/player/5.7/player.swf swfVfy=0 live=1: AVC_TS_MP_SD_AC3_ISO
2012-04-03 14:38:11,175 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 50000000000
2012-04-03 14:38:11,176 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-04-03 14:38:11,176 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Content-Length: 50000000000,Date: Tue, 03 Apr 2012 12:38:11 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_TS_MP_SD_AC3_ISO;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=8D500000000000000000000000000000,transferMode.dlna.org: Streaming,MediaInfo.sec: SEC_Duration=18000000;]]
2012-04-03 14:38:15,364 DEBUG [WebServer] Incoming connection from /192.168.1.251:45459
2012-04-03 14:38:15,365 DEBUG [ResourceTransportRequestHandler] HEAD /resource/1000000000050001/MEDIA_ITEM/AVC_TS_MP_SD_AC3_ISO*0 HTTP/1.0, headers = [getCaptionInfo.sec: 1]]
2012-04-03 14:38:15,366 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 14:38:15,367 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 14:38:15,368 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000050001 and type 'MEDIA_ITEM' received
2012-04-03 14:38:15,368 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000000050001 (online)
2012-04-03 14:38:15,368 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 5)
2012-04-03 14:38:15,369 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 5)
2012-04-03 14:38:15,371 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000050001, format AVC_TS_MP_SD_AC3_ISO and profile Samsung TV / player (C/D-series)
2012-04-03 14:38:15,371 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file rtmp://media7.lsops.net/live/bbcnews_en_high.sdp swfUrl=http://beta.cdn.livestation.com/player/5.7/player.swf swfVfy=0 live=1
2012-04-03 14:38:15,371 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://media7.lsops.net/live/bbcnews_en_high.sdp swfUrl=http://beta.cdn.livestation.com/player/5.7/player.swf swfVfy=0 live=1: AVC_TS_MP_SD_AC3_ISO
2012-04-03 14:38:15,372 DEBUG [ResourceTransportRequestHandler] Sending HEAD response back
2012-04-03 14:38:15,372 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Content-Length: 50000000000,Date: Tue, 03 Apr 2012 12:38:15 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,transferMode.dlna.org: Streaming]]
2012-04-03 14:38:16,135 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth0 (eth0) and address 192.168.1.2, timeout = 0
2012-04-03 14:38:16,137 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device 83403509-60a4-3ac0-bae1-94340baf2344
2012-04-03 14:38:18,114 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:01:25
2012-04-03 14:38:18,934 DEBUG [FeedUpdaterThread] Checking for new and expired online resources
2012-04-03 14:38:18,934 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2012-04-03 14:38:18,937 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 1)
2012-04-03 14:38:18,986 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 2)
2012-04-03 14:38:19,072 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 14:38:19,123 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 4)
2012-04-03 14:38:19,205 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 5)


This is an unsuccessful play of Comedy Central HD
  Code:
2012-04-03 15:10:42,055 DEBUG [FeedUpdaterThread] Checking for new and expired online resources
2012-04-03 15:10:42,055 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2012-04-03 15:10:42,058 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 1)
2012-04-03 15:10:42,067 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 2)
2012-04-03 15:10:42,134 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:10:42,173 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 4)
2012-04-03 15:10:42,213 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 5)
2012-04-03 15:10:55,174 DEBUG [WebServer] Incoming connection from /192.168.1.251:50379
2012-04-03 15:10:55,175 DEBUG [UPnPIconRequestHandler] UPnP icon request received for icon smallPNG
2012-04-03 15:11:01,065 DEBUG [WebServer] Incoming connection from /192.168.1.251:56456
2012-04-03 15:11:01,066 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"' from 192.168.1.251:
2012-04-03 15:11:01,067 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:01,094 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2012-04-03 15:11:01,106 DEBUG [WebServer] Incoming connection from /192.168.1.251:37051
2012-04-03 15:11:01,107 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"' from 192.168.1.251:
2012-04-03 15:11:01,107 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:01,143 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2012-04-03 15:11:01,148 DEBUG [WebServer] Incoming connection from /192.168.1.251:55570
2012-04-03 15:11:01,149 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"' from 192.168.1.251:
2012-04-03 15:11:01,149 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:01,189 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2012-04-03 15:11:01,210 DEBUG [WebServer] Incoming connection from /192.168.1.251:33123
2012-04-03 15:11:01,210 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.1.251:
2012-04-03 15:11:01,211 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:01,247 DEBUG [ContentDirectory] Browse() called for renderer UE40D6200 (profile 7) with parameters: objectID = V, browseFlag = BrowseDirectChildren, filter = *, startIndex = 0, count = 1, sortCriteria =
2012-04-03 15:11:01,250 DEBUG [RepositoryDAOImpl] Retrieving list of Repositories for VIDEO (from=0, count=1)
2012-04-03 15:11:01,254 DEBUG [FolderDAOImpl] Getting number of VIDEO sub-folders and media items in folder 'root'
2012-04-03 15:11:01,269 DEBUG [RepositoryDAOImpl] Retrieving number of repositories for VIDEO
2012-04-03 15:11:01,320 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2012-04-03 15:11:01,336 DEBUG [WebServer] Incoming connection from /192.168.1.251:53495
2012-04-03 15:11:01,337 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.1.251:
2012-04-03 15:11:01,337 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:01,363 DEBUG [ContentDirectory] Browse() called for renderer UE40D6200 (profile 7) with parameters: objectID = V, browseFlag = BrowseDirectChildren, filter = @id,@parentID,@restricted,dc:title,upnp:class,res,dc:date,@childCount,sec:CaptionInfo,sec:CaptionInfoEx, sec:dcmInfo, sec:MetaFileInfo,res@resolution,res@size,upnp:genre,dc:date,upnp:album,res@duration,upnp:albumArtURI,res@bitrate,dc:creator, startIndex = 0, count = 30, sortCriteria =
2012-04-03 15:11:01,396 DEBUG [RepositoryDAOImpl] Retrieving list of Repositories for VIDEO (from=0, count=30)
2012-04-03 15:11:01,400 DEBUG [FolderDAOImpl] Getting number of VIDEO sub-folders and media items in folder 'root'
2012-04-03 15:11:01,415 DEBUG [RepositoryDAOImpl] Retrieving number of repositories for VIDEO
2012-04-03 15:11:01,423 DEBUG [VideoDAOImpl] Retrieving number of 10 last added videos
2012-04-03 15:11:01,423 DEBUG [VideoDAOImpl] Retrieving number of videos of type 0
2012-04-03 15:11:01,670 DEBUG [OnlineRepositoryDAOImpl] Retrieving list of [FEED, WEB_RESOURCE] OnlineRepositories for VIDEO
2012-04-03 15:11:01,678 DEBUG [OnlineRepositoryDAOImpl] Retrieving list of [LIVE_STREAM] OnlineRepositories for VIDEO
2012-04-03 15:11:01,746 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2012-04-03 15:11:04,465 DEBUG [WebServer] Incoming connection from /192.168.1.251:56880
2012-04-03 15:11:04,466 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.1.251:
2012-04-03 15:11:04,467 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:04,505 DEBUG [ContentDirectory] Browse() called for renderer UE40D6200 (profile 7) with parameters: objectID = V_OF, browseFlag = BrowseDirectChildren, filter = *, startIndex = 0, count = 1, sortCriteria =
2012-04-03 15:11:04,506 DEBUG [OnlineRepositoryDAOImpl] Retrieving list of [FEED, WEB_RESOURCE] OnlineRepositories for VIDEO
2012-04-03 15:11:04,510 DEBUG [OnlineRepositoryDAOImpl] Retrieving list of [FEED, WEB_RESOURCE] OnlineRepositories for VIDEO
2012-04-03 15:11:04,515 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 1)
2012-04-03 15:11:04,527 DEBUG [OnlineRepositoryDAOImpl] Retrieving list of [FEED, WEB_RESOURCE] OnlineRepositories for VIDEO
2012-04-03 15:11:04,533 DEBUG [OnlineRepositoryDAOImpl] Retrieving list of [LIVE_STREAM] OnlineRepositories for VIDEO
2012-04-03 15:11:04,578 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2012-04-03 15:11:04,585 DEBUG [WebServer] Incoming connection from /192.168.1.251:49413
2012-04-03 15:11:04,586 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.1.251:
2012-04-03 15:11:04,587 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:04,612 DEBUG [ContentDirectory] Browse() called for renderer UE40D6200 (profile 7) with parameters: objectID = V_OF, browseFlag = BrowseDirectChildren, filter = @id,@parentID,@restricted,dc:title,upnp:class,res,dc:date,@childCount,sec:CaptionInfo,sec:CaptionInfoEx, sec:dcmInfo, sec:MetaFileInfo,res@resolution,res@size,upnp:genre,dc:date,upnp:album,res@duration,upnp:albumArtURI,res@bitrate,dc:creator, startIndex = 0, count = 30, sortCriteria =
2012-04-03 15:11:04,612 DEBUG [OnlineRepositoryDAOImpl] Retrieving list of [FEED, WEB_RESOURCE] OnlineRepositories for VIDEO
2012-04-03 15:11:04,626 DEBUG [OnlineRepositoryDAOImpl] Retrieving list of [FEED, WEB_RESOURCE] OnlineRepositories for VIDEO
2012-04-03 15:11:04,631 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 1)
2012-04-03 15:11:04,634 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 2)
2012-04-03 15:11:04,666 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:04,669 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 4)
2012-04-03 15:11:04,673 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 5)
2012-04-03 15:11:04,686 DEBUG [OnlineRepositoryDAOImpl] Retrieving list of [LIVE_STREAM] OnlineRepositories for VIDEO
2012-04-03 15:11:04,688 DEBUG [OnlineRepositoryDAOImpl] Retrieving list of [FEED, WEB_RESOURCE] OnlineRepositories for VIDEO
2012-04-03 15:11:04,692 DEBUG [OnlineRepositoryDAOImpl] Retrieving list of [LIVE_STREAM] OnlineRepositories for VIDEO
2012-04-03 15:11:04,742 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2012-04-03 15:11:06,779 DEBUG [WebServer] Incoming connection from /192.168.1.251:57889
2012-04-03 15:11:06,780 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.1.251:
2012-04-03 15:11:06,781 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:06,808 DEBUG [ContentDirectory] Browse() called for renderer UE40D6200 (profile 7) with parameters: objectID = V_OF^FOL_FD3, browseFlag = BrowseDirectChildren, filter = *, startIndex = 0, count = 1, sortCriteria =
2012-04-03 15:11:06,808 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:06,811 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000030001 and profile Samsung TV / player (C/D-series)
2012-04-03 15:11:06,815 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s6.webport.tv/live/z050001.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1: AVC_TS_MP_HD_AC3_ISO
2012-04-03 15:11:06,817 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:06,862 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2012-04-03 15:11:06,875 DEBUG [WebServer] Incoming connection from /192.168.1.251:47514
2012-04-03 15:11:06,876 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.1.251:
2012-04-03 15:11:06,876 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:06,911 DEBUG [ContentDirectory] Browse() called for renderer UE40D6200 (profile 7) with parameters: objectID = V_OF^FOL_FD3, browseFlag = BrowseDirectChildren, filter = @id,@parentID,@restricted,dc:title,upnp:class,res,dc:date,@childCount,sec:CaptionInfo,sec:CaptionInfoEx, sec:dcmInfo, sec:MetaFileInfo,res@resolution,res@size,upnp:genre,dc:date,upnp:album,res@duration,upnp:albumArtURI,res@bitrate,dc:creator, startIndex = 0, count = 30, sortCriteria =
2012-04-03 15:11:06,912 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:06,915 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000030001 and profile Samsung TV / player (C/D-series)
2012-04-03 15:11:06,926 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s6.webport.tv/live/z050001.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1: AVC_TS_MP_HD_AC3_ISO
2012-04-03 15:11:06,928 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000030003 and profile Samsung TV / player (C/D-series)
2012-04-03 15:11:06,929 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s6.webport.tv/live/z020503.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1: AVC_TS_MP_HD_AC3_ISO
2012-04-03 15:11:06,931 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000030005 and profile Samsung TV / player (C/D-series)
2012-04-03 15:11:06,932 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s7.webport.tv/live/z020101.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1: AVC_TS_MP_HD_AC3_ISO
2012-04-03 15:11:06,934 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000030008 and profile Samsung TV / player (C/D-series)
2012-04-03 15:11:06,934 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s7.webport.tv/live/z050003.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1: AVC_TS_MP_HD_AC3_ISO
2012-04-03 15:11:06,947 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000030009 and profile Samsung TV / player (C/D-series)
2012-04-03 15:11:06,948 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://fms2.tikilive.com:1935/view/25503_222/ pageURL=http://myiplayer.com/channeliframes/hgtv.html playpath=stream25503 swfVfy=0 live=1: AVC_TS_MP_HD_AC3_ISO
2012-04-03 15:11:06,950 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000030010 and profile Samsung TV / player (C/D-series)
2012-04-03 15:11:06,950 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s7.webport.tv/live/z010001.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1: AVC_TS_MP_HD_AC3_ISO
2012-04-03 15:11:06,953 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000030011 and profile Samsung TV / player (C/D-series)
2012-04-03 15:11:06,953 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s7.webport.tv/live/z050203.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1: AVC_TS_MP_HD_AC3_ISO
2012-04-03 15:11:06,966 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000030012 and profile Samsung TV / player (C/D-series)
2012-04-03 15:11:06,966 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s7.webport.tv/live/z050204.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1: AVC_TS_MP_HD_AC3_ISO
2012-04-03 15:11:06,969 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000030014 and profile Samsung TV / player (C/D-series)
2012-04-03 15:11:06,969 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://93.114.44.21:1936/live/ swfUrl=http://veohcast.tv/veohcast.tv.swf pageurl=http://www.veohcast.tv playpath=eventtv swfVfy=0 live=1: AVC_TS_MP_SD_AC3_ISO
2012-04-03 15:11:06,970 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,190 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2012-04-03 15:11:07,293 DEBUG [WebServer] Incoming connection from /192.168.1.251:50383
2012-04-03 15:11:07,293 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000000030001/COVER_IMAGE HTTP/1.0, headers = [HOST: 192.168.1.2:8895,ACCEPT-LANGUAGE: en-us,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,294 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:07,315 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:07,316 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030001 and type 'COVER_IMAGE' received
2012-04-03 15:11:07,316 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,317 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,320 DEBUG [CoverImageRetrievalStrategy] Retrieving Cover image with id 1000000000030001
2012-04-03 15:11:07,321 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 2582
2012-04-03 15:11:07,321 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-04-03 15:11:07,321 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: image/jpeg,Content-Length: 2582,Date: Tue, 03 Apr 2012 13:11:07 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=00D00000000000000000000000000000,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,343 DEBUG [WebServer] Incoming connection from /192.168.1.251:50384
2012-04-03 15:11:07,344 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000000030003/COVER_IMAGE HTTP/1.0, headers = [HOST: 192.168.1.2:8895,ACCEPT-LANGUAGE: en-us,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,344 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:07,356 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:07,356 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030003 and type 'COVER_IMAGE' received
2012-04-03 15:11:07,357 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,358 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,361 DEBUG [CoverImageRetrievalStrategy] Retrieving Cover image with id 1000000000030003
2012-04-03 15:11:07,361 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 1950
2012-04-03 15:11:07,362 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-04-03 15:11:07,362 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: image/jpeg,Content-Length: 1950,Date: Tue, 03 Apr 2012 13:11:07 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=00D00000000000000000000000000000,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,375 DEBUG [WebServer] Incoming connection from /192.168.1.251:50385
2012-04-03 15:11:07,376 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000000030005/COVER_IMAGE HTTP/1.0, headers = [HOST: 192.168.1.2:8895,ACCEPT-LANGUAGE: en-us,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,376 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:07,378 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:07,378 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030005 and type 'COVER_IMAGE' received
2012-04-03 15:11:07,379 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,380 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,383 DEBUG [CoverImageRetrievalStrategy] Retrieving Cover image with id 1000000000030005
2012-04-03 15:11:07,384 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 2043
2012-04-03 15:11:07,384 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-04-03 15:11:07,385 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: image/jpeg,Content-Length: 2043,Date: Tue, 03 Apr 2012 13:11:07 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=00D00000000000000000000000000000,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,404 DEBUG [WebServer] Incoming connection from /192.168.1.251:50386
2012-04-03 15:11:07,404 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000000030008/COVER_IMAGE HTTP/1.0, headers = [HOST: 192.168.1.2:8895,ACCEPT-LANGUAGE: en-us,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,405 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:07,417 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:07,417 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030008 and type 'COVER_IMAGE' received
2012-04-03 15:11:07,417 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,418 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,422 DEBUG [CoverImageRetrievalStrategy] Retrieving Cover image with id 1000000000030008
2012-04-03 15:11:07,422 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 2088
2012-04-03 15:11:07,422 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-04-03 15:11:07,423 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: image/jpeg,Content-Length: 2088,Date: Tue, 03 Apr 2012 13:11:07 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=00D00000000000000000000000000000,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,436 DEBUG [WebServer] Incoming connection from /192.168.1.251:50387
2012-04-03 15:11:07,436 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000000030009/COVER_IMAGE HTTP/1.0, headers = [HOST: 192.168.1.2:8895,ACCEPT-LANGUAGE: en-us,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,437 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:07,438 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:07,438 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030009 and type 'COVER_IMAGE' received
2012-04-03 15:11:07,439 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,440 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,443 DEBUG [CoverImageRetrievalStrategy] Retrieving Cover image with id 1000000000030009
2012-04-03 15:11:07,443 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 5602
2012-04-03 15:11:07,444 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-04-03 15:11:07,444 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: image/jpeg,Content-Length: 5602,Date: Tue, 03 Apr 2012 13:11:07 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=00D00000000000000000000000000000,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,476 DEBUG [WebServer] Incoming connection from /192.168.1.251:50388
2012-04-03 15:11:07,477 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000000030010/COVER_IMAGE HTTP/1.0, headers = [HOST: 192.168.1.2:8895,ACCEPT-LANGUAGE: en-us,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,478 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:07,479 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:07,479 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030010 and type 'COVER_IMAGE' received
2012-04-03 15:11:07,480 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,481 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,484 DEBUG [CoverImageRetrievalStrategy] Retrieving Cover image with id 1000000000030010
2012-04-03 15:11:07,484 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 2004
2012-04-03 15:11:07,485 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-04-03 15:11:07,495 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: image/jpeg,Content-Length: 2004,Date: Tue, 03 Apr 2012 13:11:07 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=00D00000000000000000000000000000,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,505 DEBUG [WebServer] Incoming connection from /192.168.1.251:50389
2012-04-03 15:11:07,506 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000000030011/COVER_IMAGE HTTP/1.0, headers = [HOST: 192.168.1.2:8895,ACCEPT-LANGUAGE: en-us,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,506 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:07,508 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:07,508 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030011 and type 'COVER_IMAGE' received
2012-04-03 15:11:07,508 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,509 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,513 DEBUG [CoverImageRetrievalStrategy] Retrieving Cover image with id 1000000000030011
2012-04-03 15:11:07,513 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 2583
2012-04-03 15:11:07,514 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-04-03 15:11:07,514 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: image/jpeg,Content-Length: 2583,Date: Tue, 03 Apr 2012 13:11:07 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=00D00000000000000000000000000000,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,525 DEBUG [WebServer] Incoming connection from /192.168.1.251:50390
2012-04-03 15:11:07,526 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000000030012/COVER_IMAGE HTTP/1.0, headers = [HOST: 192.168.1.2:8895,ACCEPT-LANGUAGE: en-us,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,526 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:07,528 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:07,528 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030012 and type 'COVER_IMAGE' received
2012-04-03 15:11:07,529 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,530 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,533 DEBUG [CoverImageRetrievalStrategy] Retrieving Cover image with id 1000000000030012
2012-04-03 15:11:07,533 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 1775
2012-04-03 15:11:07,533 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-04-03 15:11:07,534 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: image/jpeg,Content-Length: 1775,Date: Tue, 03 Apr 2012 13:11:07 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=00D00000000000000000000000000000,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,546 DEBUG [WebServer] Incoming connection from /192.168.1.251:50391
2012-04-03 15:11:07,546 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000000030014/COVER_IMAGE HTTP/1.0, headers = [HOST: 192.168.1.2:8895,ACCEPT-LANGUAGE: en-us,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:07,547 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:07,548 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:07,548 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030014 and type 'COVER_IMAGE' received
2012-04-03 15:11:07,549 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,550 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:07,553 DEBUG [CoverImageRetrievalStrategy] Retrieving Cover image with id 1000000000030014
2012-04-03 15:11:07,553 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 4195
2012-04-03 15:11:07,554 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-04-03 15:11:07,554 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: image/jpeg,Content-Length: 4195,Date: Tue, 03 Apr 2012 13:11:07 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=00D00000000000000000000000000000,transferMode.dlna.org: Interactive]]
2012-04-03 15:11:10,630 DEBUG [WebServer] Incoming connection from /192.168.1.251:47202
2012-04-03 15:11:10,631 DEBUG [ResourceTransportRequestHandler] HEAD /resource/1000000000030003/MEDIA_ITEM/AVC_TS_MP_HD_AC3_ISO*0 HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,Host: 192.168.1.2:8895]]
2012-04-03 15:11:10,631 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:10,632 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:10,633 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030003 and type 'MEDIA_ITEM' received
2012-04-03 15:11:10,633 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000000030003 (online)
2012-04-03 15:11:10,634 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:10,635 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:10,646 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000030003, format AVC_TS_MP_HD_AC3_ISO and profile Samsung TV / player (C/D-series)
2012-04-03 15:11:10,646 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file rtmp://s6.webport.tv/live/z020503.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1
2012-04-03 15:11:10,647 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s6.webport.tv/live/z020503.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1: AVC_TS_MP_HD_AC3_ISO
2012-04-03 15:11:10,647 DEBUG [ResourceTransportRequestHandler] Sending HEAD response back
2012-04-03 15:11:10,647 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Content-Length: 50000000000,Date: Tue, 03 Apr 2012 13:11:10 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_TS_MP_HD_AC3_ISO;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=8D500000000000000000000000000000,transferMode.dlna.org: Streaming]]
2012-04-03 15:11:10,666 DEBUG [WebServer] Incoming connection from /192.168.1.251:45177
2012-04-03 15:11:10,666 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000000030003/MEDIA_ITEM/AVC_TS_MP_HD_AC3_ISO*0 HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Streaming,getMediaInfo.sec: 1,Host: 192.168.1.2:8895]]
2012-04-03 15:11:10,667 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:10,668 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:10,675 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030003 and type 'MEDIA_ITEM' received
2012-04-03 15:11:10,676 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000000030003 (online)
2012-04-03 15:11:10,676 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:10,677 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:10,678 DEBUG [VideoDeliveryEngine] Delivering item '1000000000030003' for client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:10,679 DEBUG [VideoDeliveryEngine] Delivering file 'rtmp://s6.webport.tv/live/z020503.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1' using transcoding
2012-04-03 15:11:10,679 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:10,679 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: rtmp://s6.webport.tv/live/z020503.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1
2012-04-03 15:11:10,690 DEBUG [ProcessExecutor] Starting /root/.serviio/opt/bin/ffmpeg -i rtmp://s6.webport.tv/live/z020503.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1 -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe:
2012-04-03 15:11:23,393 WARN  [ProcessExecutor] Process /root/.serviio/opt/bin/ffmpeg has a return code of 1! This is a possible error.
2012-04-03 15:11:23,393 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2012-04-03 15:11:37,705 DEBUG [StreamBasedTranscodingDeliveryStrategy] Transcoded stream is empty, connection may have been lost
2012-04-03 15:11:37,705 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s6.webport.tv/live/z020503.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1: AVC_TS_MP_HD_AC3_ISO
2012-04-03 15:11:37,706 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 50000000000
2012-04-03 15:11:37,707 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-04-03 15:11:37,707 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Content-Length: 50000000000,Date: Tue, 03 Apr 2012 13:11:37 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_TS_MP_HD_AC3_ISO;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=8D500000000000000000000000000000,transferMode.dlna.org: Streaming,MediaInfo.sec: SEC_Duration=18000000;]]
2012-04-03 15:11:40,076 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth0 (eth0) and address 192.168.1.2, timeout = 0
2012-04-03 15:11:40,078 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device 83403509-60a4-3ac0-bae1-94340baf2344
2012-04-03 15:11:41,957 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target uuid:83403509-60a4-3ac0-bae1-94340baf2344 from address /192.168.1.251:1025
2012-04-03 15:11:41,958 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.251:1025
2012-04-03 15:11:42,055 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:01:19
2012-04-03 15:11:42,260 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target uuid:83403509-60a4-3ac0-bae1-94340baf2344 from address /192.168.1.251:1025
2012-04-03 15:11:42,261 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.251:1025
2012-04-03 15:11:42,295 DEBUG [FeedUpdaterThread] Checking for new and expired online resources
2012-04-03 15:11:42,295 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2012-04-03 15:11:42,298 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 1)
2012-04-03 15:11:42,317 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 2)
2012-04-03 15:11:42,373 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:42,421 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 4)
2012-04-03 15:11:42,464 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 5)
2012-04-03 15:11:42,563 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target uuid:83403509-60a4-3ac0-bae1-94340baf2344 from address /192.168.1.251:1025
2012-04-03 15:11:42,564 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.251:1025
2012-04-03 15:11:45,065 DEBUG [WebServer] Incoming connection from /192.168.1.251:54104
2012-04-03 15:11:45,066 DEBUG [ResourceTransportRequestHandler] HEAD /resource/1000000000030005/MEDIA_ITEM/AVC_TS_MP_HD_AC3_ISO*0 HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,Host: 192.168.1.2:8895]]
2012-04-03 15:11:45,067 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:45,068 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:45,069 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030005 and type 'MEDIA_ITEM' received
2012-04-03 15:11:45,069 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000000030005 (online)
2012-04-03 15:11:45,069 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:45,070 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:45,072 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000000030005, format AVC_TS_MP_HD_AC3_ISO and profile Samsung TV / player (C/D-series)
2012-04-03 15:11:45,072 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file rtmp://s7.webport.tv/live/z020101.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1
2012-04-03 15:11:45,072 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://s7.webport.tv/live/z020101.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1: AVC_TS_MP_HD_AC3_ISO
2012-04-03 15:11:45,073 DEBUG [ResourceTransportRequestHandler] Sending HEAD response back
2012-04-03 15:11:45,073 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Content-Length: 50000000000,Date: Tue, 03 Apr 2012 13:11:45 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_TS_MP_HD_AC3_ISO;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=8D500000000000000000000000000000,transferMode.dlna.org: Streaming]]
2012-04-03 15:11:45,096 DEBUG [WebServer] Incoming connection from /192.168.1.251:46659
2012-04-03 15:11:45,096 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000000030005/MEDIA_ITEM/AVC_TS_MP_HD_AC3_ISO*0 HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Streaming,getMediaInfo.sec: 1,Host: 192.168.1.2:8895]]
2012-04-03 15:11:45,097 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.251
2012-04-03 15:11:45,098 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:45,099 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000030005 and type 'MEDIA_ITEM' received
2012-04-03 15:11:45,099 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000000030005 (online)
2012-04-03 15:11:45,099 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:45,100 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 3)
2012-04-03 15:11:45,102 DEBUG [VideoDeliveryEngine] Delivering item '1000000000030005' for client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:45,102 DEBUG [VideoDeliveryEngine] Delivering file 'rtmp://s7.webport.tv/live/z020101.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1' using transcoding
2012-04-03 15:11:45,102 DEBUG [AbstractTranscodingDeliveryEngine] Stopping previous transcoding job of file 'transcoding-temp-1000000000030003-MPEG2TS.stf'
2012-04-03 15:11:45,103 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.1.251, Profile=Samsung TV / player (C/D-series)'
2012-04-03 15:11:45,103 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: rtmp://s7.webport.tv/live/z020101.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1
2012-04-03 15:11:45,104 DEBUG [ProcessExecutor] Starting /root/.serviio/opt/bin/ffmpeg -i rtmp://s7.webport.tv/live/z020101.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1 -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe:
<<

csholmq

DLNA master

Posts: 139

Joined: Sun Mar 25, 2012 11:41 pm

Post Tue Apr 03, 2012 8:35 pm

Re: Fixed-point compiled ffmpeg

Ok, I seem to have found the issue. On my Mac, I have ffmpeg 0.7.11 and thus I can't debug properly as I can't get it to play nicely with rtmp streams. On my NAS, it only works if I enclose the stream parameters with quotes " ". E.g:
  Code:
/root/.serviio/opt/bin/ffmpeg -i "rtmp://s6.webport.tv/live/z020503.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1" -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe:


Why isn't this done by default? Can I force it somehow? Feels like a workaround if I start messing with sed to do it.

EDIT: Here's my fix.
  Code:
#!/bin/bash

# Replace default ac3 codec with fixed-point one and enclose rtmp:// streams
ARGS=$(echo $@ | sed -E -e s,\(-acodec\ ac3\),\\1_fixed, -e s,\(rtmp.*live=1\),\"\\1\",)

# Call ffmpeg from wrapper script
echo /root/.serviio/opt/bin/ffmpeg $ARGS
/root/.serviio/opt/bin/ffmpeg $ARGS

# Return ffmpeg status
exit $?


There's one issue though. Calling on ffmpeg through the terminal totally works. Calling on it via the script only yields
  Code:
# /share/MD0_DATA/.qpkg/Serviio/ffmpeg.sh -i rtmp://s7.webport.tv/live/z010001.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1 -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe:

/root/.serviio/opt/bin/ffmpeg -i "rtmp://s7.webport.tv/live/z010001.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1" -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3_fixed -ab 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe:
ffmpeg version 0.9-Serviio_Qnap, Copyright (c) 2000-2011 the FFmpeg developers
  built on Feb 25 2012 08:20:00 with gcc 4.2.3
  configuration: --arch=arm --enable-armv5te --prefix=/root/.serviio/opt --extra-cflags=-I/opt/include --extra-ldflags=-L/tmp/lib --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-pthreads --enable-libmp3lame --enable-librtmp --extra-version=Serviio_Qnap
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 0 / 53. 42. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
"rtmp://s7.webport.tv/live/z010001.stream: No such file or directory


Calling ffmpeg directly (with parsed output) works.
  Code:
# /root/.serviio/opt/bin/ffmpeg -i "rtmp://s7.webport.tv/live/z010001.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1" -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3_fixed -ab 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe:


EDIT 2: Ok, fixed it. It was all in the script. A simple 'eval' prevented it from inserting ' ' around my parsed " ".
  Code:
#!/bin/bash

# Replace default ac3 codec with fixed-point one and enclose rtmp:// streams
ARGS=$(echo $@ | sed -E -e s,\(-acodec\ ac3\),\\1_fixed, -e s,\(rtmp.*live=1\),\"\\1\",)

# Call ffmpeg from wrapper script
echo /root/.serviio/opt/bin/ffmpeg $ARGS
eval /root/.serviio/opt/bin/ffmpeg $ARGS

# Return ffmpeg status
exit $?


ac3_fixed definately improves performance. I'm down from 30 % to a mere 15 % decoding HD streams.
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Thu Apr 05, 2012 7:26 am

Re: Fixed-point compiled ffmpeg

Sorry I missed your post, you seam to have got it working on your own. As for the "" around the -i param, they aren't present in the log, but do get based to ffmpeg by serviio, so if you run your script with the "" in the correct place, you shouldn't need to add them. It might be worth having a little more of a play with the script, because some urls won't end in live=1, so if you are dependent on adding the " back in, it will break in those cases. Anyway, you got it working, and nice to see it has a performance improvement.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

csholmq

DLNA master

Posts: 139

Joined: Sun Mar 25, 2012 11:41 pm

Post Sat Apr 07, 2012 9:05 am

Re: Fixed-point compiled ffmpeg

No worries. I have been refactoring my script to be more generic.

  Code:
#!/bin/bash
PRE_ARGS=""
NO=1

for arg; do
  # Find input argument
  if [ "$arg" = "-i" ]; then
    break
  fi

  # Save prefix arguments
  PRE_ARGS="$PRE_ARGS $arg"

  # Count prefix arguments
  let "NO+=1"
done

# Move past prefix
shift $NO
URL=$1
shift 1

# Substitute ac3 with ac3_fixed
ARGS=$(echo $@|sed -E s,'-acodec ac3','-acodec ac3_fixed',)

# Call ffmpeg from wrapper script
echo /root/.serviio/opt/bin/ffmpeg $PRE_ARGS -i \'$URL\' $ARGS >> ffmpeg.log
/root/.serviio/opt/bin/ffmpeg $PRE_ARGS -i "$URL" $ARGS

# Return ffmpeg status
exit $?


By extracting argument by argument, I can extract the URL in one piece. The complexity of the script is from accounting for arguments before -i. E.g "-ss 120" which sometimes happen to come before -i 'URL'.

The ac3_fixed definitely lowers CPU usage. I'm suffering from stream lag on and off though. Don't believe it's from my script, but something else.
<<

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 11:58 am

Re: Fixed-point compiled ffmpeg

<<

csholmq

DLNA master

Posts: 139

Joined: Sun Mar 25, 2012 11:41 pm

Post Tue Apr 10, 2012 10:08 pm

Re: Fixed-point compiled ffmpeg

I saw this before I began working on my script. In the meantime, my script works as a workaround.

Fixed the faulty HD streams too. Apparently <Matches container="flv" vCodec="h264" /> was missing under online transcoding. Not sure if I saw any real difference in the ffmpeg calls though. Shouldn't they differ?

Anyways, my Serviio package (.qpkg for Qnap NAS) came with an outdated profile.xml it seems. I downloaded the Linux gzip from the website and copied the proper profile.xml and it did the trick. No fuzz no nothing. Just works :)
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Thu Apr 12, 2012 12:18 am

Re: Fixed-point compiled ffmpeg

Good find. This will be useful for the Synology NAS Serviio package for ARM systems.

Some info about the encoder (apparently there is a quality trade-off):
http://libav.org/ffmpeg.html#ac3-and-ac3_005ffixed

From what I remember reading on some page explaining about ARM compilers, a decent soft-float implementation at compile time isn't actually as bad as you might expect - though I guess it's mainly provided to allow compatibility for software that expects an FPU. Hmm, according to this:
http://www.avrfreaks.net/index.php?name ... 98&start=0
not many of these codecs even technically need to use floating-point maths.

For completeness - here's a link to an earlier thread about this topic, with some more info:
viewtopic.php?f=7&t=5596
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Mon May 07, 2012 7:00 pm

Re: Fixed-point compiled ffmpeg

I have updated the Serviio package for Synology NAS with ARM CPU to use this ac3_fixed encoder.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Sun Jun 03, 2012 9:10 am

Re: Fixed-point compiled ffmpeg

I found that the script won't work properly unless the filename is surrounded by escaped double quotes. Using single quotes (as in cshomq's example script) will cause the wrapper script to fail when the file or folder name contains a single quote (apostrophe).
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Jun 03, 2012 11:07 am

Re: Fixed-point compiled ffmpeg

added the switch for 1.0
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Sun Jun 03, 2012 11:23 am

Re: Fixed-point compiled ffmpeg

Awesome, thanks for that. Are there any other fixed-point encoders in FFmpeg apart from the ac3 one at the moment?

I see there's also a system property for defining the plugins folder. This will be useful on Synology NAS since the normal appstore folders are not browsable unless by SSH session, which makes adding plugins tricky for non power users.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

csholmq

DLNA master

Posts: 139

Joined: Sun Mar 25, 2012 11:41 pm

Post Thu Nov 15, 2012 5:25 pm

Re: Fixed-point compiled ffmpeg

Tested out the -Dserviio.fixedPointEncoders and it's working like a charm!

  Code:
2012-11-15 17:37:23,441 DEBUG [ProcessExecutor] Starting /root/.serviio/opt/bin/ffmpeg -fflags +genpts -i rtmp://188.122.86.234:1935/live playpath=hnkfnjasndk pageUrl=http://www.yycast.com/embed.php?fileid=hnkfnjasndk swfUrl=http://cdn.yycast.com/player/player.swf live=1 -y -copyts -c:v copy -vbsf h264_mp4toannexb -c:a ac3_fixed -b:a 48k -ar 48000 -ac 1 -map 0:0 -map 0:1 -sn -f mpegts pipe:


As you can see, the audio decoder is set to ac3_fixed. For most of my internet resources, the CPU load went down from 100% to around 15%. A dramatic effect!
<<

csholmq

DLNA master

Posts: 139

Joined: Sun Mar 25, 2012 11:41 pm

Post Thu Nov 15, 2012 5:55 pm

Re: Fixed-point compiled ffmpeg

patters wrote:Awesome, thanks for that. Are there any other fixed-point encoders in FFmpeg apart from the ac3 one at the moment?

I see there's also a system property for defining the plugins folder. This will be useful on Synology NAS since the normal appstore folders are not browsable unless by SSH session, which makes adding plugins tricky for non power users.

To answer your question, I have found:
Next

Return to Serviio Support & Help

Who is online

Users browsing this forum: Majestic-12 [Bot] and 22 guests

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