FAQ  •  Register  •  Login

[SOLVED] ffmpeg keeps running for online streams

<<

xs2inattar

DLNA master

Posts: 143

Joined: Sun Jun 24, 2012 5:49 pm

Post Tue Aug 07, 2012 9:49 pm

[SOLVED] ffmpeg keeps running for online streams

For live streams, ffmpeg keeps running, even when i have shutdown the client.

It keeps running until i manually kill the ffmpeg process which is becoming very frustrating.

It does not stop when i pause or stop or even shutdown the device. It does not stop even when i start a new live stream from the same device, so now multiple ffmpeg are running for the same client.

Once I run a live stream, ffmpeg keeps on running and running for it, which is eating up my bandwidth and killing the ffmpeg process manually everytime is becoming frustrating.

Any ideas what can be done about this.
Last edited by xs2inattar on Fri Aug 10, 2012 1:58 am, edited 1 time in total.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Aug 07, 2012 9:58 pm

Re: ffmpeg keeps running for online streams

Can you post detailed log of playing a online stream, then stopping it and 1 minute after that?
<<

npuser

DLNA master

Posts: 172

Joined: Mon Feb 06, 2012 3:44 am

Location: Michigan

Post Wed Aug 08, 2012 12:29 am

Re: ffmpeg keeps running for online streams

I had this issue once before but I can't remember how i solved it.

Could it be that your streams are missing "live=1"? I believe "live=True causes online transcoding to be serviced from a memory buffer and tear down the stream in less than 1 minute after the stream is stopped.

Thanks
NPuser
<<

xs2inattar

DLNA master

Posts: 143

Joined: Sun Jun 24, 2012 5:49 pm

Post Wed Aug 08, 2012 12:46 am

Re: ffmpeg keeps running for online streams

The log when I started to play the file.
  Code:
2012-08-07 20:23:49,184 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.1.3, Profile=Generic DLNA profile'
2012-08-07 20:23:49,184 DEBUG [VideoDeliveryEngine] Extracting new URL for the expired feed item
2012-08-07 20:23:49,185 DEBUG [FeedItemUrlExtractor] myiplayer.com: Starting extraction of url for item: cmc
2012-08-07 20:23:51,494 DEBUG [FeedItemUrlExtractor] myiplayer.com: -URL-http://www.myiplayer.com/channel_cmc.php -URL-http://www.myiplayer.com/player_cmc.html -STREAM-rtmp://cmctv.flash.internapcdn.net/cmctv_vitalstream_com/live_adaptive_1/ playpath=CMC-TV_adaptive1 pageUrl=http://www.myiplayer.com/player_cmc.html swfUrl=http://http.vitalstreamcdn.com/flashskins/V2Player.swf live=1
2012-08-07 20:23:51,506 DEBUG [FeedItemUrlExtractor] myiplayer.com: Finished extraction of url: ContentURLContainer [fileType=VIDEO, contentUrl=rtmp://cmctv.flash.internapcdn.net/cmctv_vitalstream_com/live_adaptive_1/ playpath=CMC-TV_adaptive1 pageUrl=http://www.myiplayer.com/player_cmc.html swfUrl=http://http.vitalstreamcdn.com/flashskins/V2Player.swf live=1, thumbnailUrl=http://www.myiplayer.com/icon/cmc.jpg, expiresImmediately=true, cacheKey=MyiPlayer_MUSIC_cmc, live=false, ]
2012-08-07 20:23:51,506 DEBUG [VideoDeliveryEngine] Successfully set new URL for the feed item
2012-08-07 20:23:51,508 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: rtmp://cmctv.flash.internapcdn.net/cmctv_vitalstream_com/live_adaptive_1/ playpath=CMC-TV_adaptive1 pageUrl=http://www.myiplayer.com/player_cmc.html swfUrl=http://http.vitalstreamcdn.com/flashskins/V2Player.swf live=1 buffer=100000000
2012-08-07 20:23:51,508 DEBUG [ProcessExecutor] Starting /volume1/@appstore/Serviio/bin/ffmpeg-wrapper.sh -fflags +genpts -i rtmp://cmctv.flash.internapcdn.net/cmctv_vitalstream_com/live_adaptive_1/ playpath=CMC-TV_adaptive1 pageUrl=http://www.myiplayer.com/player_cmc.html swfUrl=http://http.vitalstreamcdn.com/flashskins/V2Player.swf live=1 buffer=100000000 -y -copyts -c:v copy -vbsf h264_mp4toannexb -c:a ac3_fixed -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /.tmp/Serviio/transcoding-temp-1000000001350003-1-ORIGINAL.stf
2012-08-07 20:23:53,647 DEBUG [PlaylistDAOImpl] Reading all Playlists
2012-08-07 20:23:54,057 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2012-08-07 20:23:54,059 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://cmctv.flash.internapcdn.net/cmctv_vitalstream_com/live_adaptive_1/ playpath=CMC-TV_adaptive1 pageUrl=http://www.myiplayer.com/player_cmc.html swfUrl=http://http.vitalstreamcdn.com/flashskins/V2Player.swf live=1: AVC_TS_MP_SD_AC3_ISO
2012-08-07 20:23:54,059 DEBUG [ResourceDeliveryProcessor] Stream entity has length: 50000000000
2012-08-07 20:23:54,060 DEBUG [ResourceDeliveryProcessor] Sending file back
2012-08-07 20:23:54,060 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2012-08-07 20:23:54,060 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Date: Wed, 08 Aug 2012 00:23:54 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.0,Cache-control: no-cache,transferMode.dlna.org: Streaming]]
2012-08-07 20:23:57,517 DEBUG [WebServer] Incoming connection from /192.168.1.3:7230
2012-08-07 20:23:57,518 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:23:57,534 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.1.3:
2012-08-07 20:23:57,535 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:23:57,557 DEBUG [ContentDirectory] Browse() called for renderer Windows Media Player (profile 1) with parameters: objectID = V_OF^FOL_FD135, browseFlag = BrowseDirectChildren, filter = *, startIndex = 0, count = 30, sortCriteria =
2012-08-07 20:23:57,558 DEBUG [AccessGroupDAOImpl] Reading a AccessGroup (id = 1)
2012-08-07 20:23:57,560 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 135)
2012-08-07 20:23:57,563 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000001350001 and profile Generic DLNA profile
2012-08-07 20:23:57,564 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://flash.cdn.deluxemusic.tv/deluxemusic.tv-live/ playpath=web_850.stream pageUrl=http://deluxemusic.tv.staging.ipercast.net/content/getJWVodXml/player_version/4/use_thumbnail/0/content_id/349/count/0/mediafile_id/361 swfUrl=http://static.staging.deluxemusic.tv.dl1.ipercast.net/theme/deluxemusic.tv/flash/player.swf live=1: AVC_TS_MP_SD_AC3_ISO
2012-08-07 20:23:57,566 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000001350002 and profile Generic DLNA profile
2012-08-07 20:23:57,567 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://46.105.115.183/edge playpath=crpgh12rnxv8cq3 pageUrl=http://www.ilive.to/view/36450 swfUrl=http://cdn.static.ilive.to/jwplayer/player.swf live=1: AVC_TS_MP_SD_AC3_ISO
2012-08-07 20:23:57,569 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000001350003 and profile Generic DLNA profile
2012-08-07 20:23:57,570 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://cmctv.flash.internapcdn.net/cmctv_vitalstream_com/live_adaptive_1/ playpath=CMC-TV_adaptive1 pageUrl=http://www.myiplayer.com/player_cmc.html swfUrl=http://http.vitalstreamcdn.com/flashskins/V2Player.swf live=1: AVC_TS_MP_SD_AC3_ISO
2012-08-07 20:23:57,571 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 135)
2012-08-07 20:23:57,615 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2012-08-07 20:23:58,318 DEBUG [WebServer] I/O error: Connection reset
2012-08-07 20:23:58,438 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth0 (eth0) and address 192.168.1.11, timeout = 0
2012-08-07 20:23:58,440 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device 61cd396e-1894-3da9-91a2-e8090bcf4e54
2012-08-07 20:24:00,417 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:00:46
2012-08-07 20:24:13,167 DEBUG [WebServer] Incoming connection from /192.168.1.3:7237
2012-08-07 20:24:13,168 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:24:13,170 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000001350003/MEDIA_ITEM/AVC_TS_MP_SD_AC3_ISO-0/ORIGINAL HTTP/1.1, headers = [User-Agent: XBMC/11.0 Git:20120321-14feb09 (Windows NT 6.1; http://www.xbmc.org),Host: 192.168.1.11:8895,Accept: */*,Connection: keep-alive]]
2012-08-07 20:24:13,171 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:24:13,173 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'IPAddress=/192.168.1.3, Profile=Generic DLNA profile'
2012-08-07 20:24:13,174 DEBUG [ResourceDeliveryProcessor] Request for resource 1000000001350003 and type 'MEDIA_ITEM' received
2012-08-07 20:24:13,174 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000001350003 (online)
2012-08-07 20:24:13,175 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 135)
2012-08-07 20:24:13,177 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 135)
2012-08-07 20:24:13,180 DEBUG [VideoDeliveryEngine] Delivering item '1000000001350003' for client 'IPAddress=/192.168.1.3, Profile=Generic DLNA profile'
2012-08-07 20:24:13,180 DEBUG [VideoDeliveryEngine] Delivering file 'rtmp://cmctv.flash.internapcdn.net/cmctv_vitalstream_com/live_adaptive_1/ playpath=CMC-TV_adaptive1 pageUrl=http://www.myiplayer.com/player_cmc.html swfUrl=http://http.vitalstreamcdn.com/flashskins/V2Player.swf live=1' using transcoding
2012-08-07 20:24:13,181 DEBUG [AbstractTranscodingDeliveryEngine] A suitable transcoding job already exists, re-use it for client 'IPAddress=/192.168.1.3, Profile=Generic DLNA profile'
2012-08-07 20:24:13,181 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2012-08-07 20:24:13,182 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://cmctv.flash.internapcdn.net/cmctv_vitalstream_com/live_adaptive_1/ playpath=CMC-TV_adaptive1 pageUrl=http://www.myiplayer.com/player_cmc.html swfUrl=http://http.vitalstreamcdn.com/flashskins/V2Player.swf live=1: AVC_TS_MP_SD_AC3_ISO
2012-08-07 20:24:13,183 DEBUG [ResourceDeliveryProcessor] Stream entity has length: 50000000000
2012-08-07 20:24:13,183 DEBUG [ResourceDeliveryProcessor] Sending file back
2012-08-07 20:24:13,183 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2012-08-07 20:24:13,183 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Date: Wed, 08 Aug 2012 00:24:13 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.0,Cache-control: no-cache,transferMode.dlna.org: Streaming]]
2012-08-07 20:24:16,523 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.3:6087
2012-08-07 20:24:16,523 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:24:16,526 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.3:6087
2012-08-07 20:24:16,526 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:24:16,528 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.3:6087
2012-08-07 20:24:16,533 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.3:6087
2012-08-07 20:24:38,941 DEBUG [WebServer] Incoming connection from /192.168.1.3:7252
2012-08-07 20:24:38,950 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:24:38,952 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.1.3:
2012-08-07 20:24:38,952 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:24:38,977 DEBUG [ContentDirectory] Browse() called for renderer Windows Media Player (profile 1) with parameters: objectID = V_OF^FOL_FD135, browseFlag = BrowseDirectChildren, filter = *, startIndex = 0, count = 30, sortCriteria =
2012-08-07 20:24:38,978 DEBUG [AccessGroupDAOImpl] Reading a AccessGroup (id = 1)
2012-08-07 20:24:38,980 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 135)
2012-08-07 20:24:38,983 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000001350001 and profile Generic DLNA profile
2012-08-07 20:24:38,984 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://flash.cdn.deluxemusic.tv/deluxemusic.tv-live/ playpath=web_850.stream pageUrl=http://deluxemusic.tv.staging.ipercast.net/content/getJWVodXml/player_version/4/use_thumbnail/0/content_id/349/count/0/mediafile_id/361 swfUrl=http://static.staging.deluxemusic.tv.dl1.ipercast.net/theme/deluxemusic.tv/flash/player.swf live=1: AVC_TS_MP_SD_AC3_ISO
2012-08-07 20:24:38,988 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000001350002 and profile Generic DLNA profile
2012-08-07 20:24:38,989 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://46.105.115.183/edge playpath=crpgh12rnxv8cq3 pageUrl=http://www.ilive.to/view/36450 swfUrl=http://cdn.static.ilive.to/jwplayer/player.swf live=1: AVC_TS_MP_SD_AC3_ISO
2012-08-07 20:24:38,999 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000001350003 and profile Generic DLNA profile
2012-08-07 20:24:39,000 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtmp://cmctv.flash.internapcdn.net/cmctv_vitalstream_com/live_adaptive_1/ playpath=CMC-TV_adaptive1 pageUrl=http://www.myiplayer.com/player_cmc.html swfUrl=http://http.vitalstreamcdn.com/flashskins/V2Player.swf live=1: AVC_TS_MP_SD_AC3_ISO
2012-08-07 20:24:39,001 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 135)
2012-08-07 20:24:39,073 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2012-08-07 20:24:39,778 DEBUG [WebServer] I/O error: Connection reset




The log couple of minutes after stopping the file.
  Code:
2012-08-07 20:26:03,980 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.3:6087
2012-08-07 20:26:03,981 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:26:03,983 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.3:6087
2012-08-07 20:26:03,984 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:26:03,986 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.3:6087
2012-08-07 20:26:03,987 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.3:6087
2012-08-07 20:26:41,808 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth0 (eth0) and address 192.168.1.11, timeout = 0
2012-08-07 20:26:41,810 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device 61cd396e-1894-3da9-91a2-e8090bcf4e54
2012-08-07 20:26:43,787 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:00:47
2012-08-07 20:26:45,217 DEBUG [FeedUpdaterThread] Checking for new and expired online resources
2012-08-07 20:26:45,217 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2012-08-07 20:26:45,224 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 98)
2012-08-07 20:26:45,233 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 134)
2012-08-07 20:26:45,243 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 135)
2012-08-07 20:26:45,251 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 138)
2012-08-07 20:26:58,379 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.3:6087
2012-08-07 20:26:58,379 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:26:58,381 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.3:6087
2012-08-07 20:26:58,382 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:26:58,384 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.3:6087
2012-08-07 20:26:58,385 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.3:6087
2012-08-07 20:27:31,138 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth0 (eth0) and address 192.168.1.11, timeout = 0
2012-08-07 20:27:31,140 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device 61cd396e-1894-3da9-91a2-e8090bcf4e54
2012-08-07 20:27:33,117 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:00:46
2012-08-07 20:27:45,257 DEBUG [FeedUpdaterThread] Checking for new and expired online resources
2012-08-07 20:27:45,257 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2012-08-07 20:27:45,264 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 98)
2012-08-07 20:27:45,272 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 134)
2012-08-07 20:27:45,283 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 135)
2012-08-07 20:27:45,293 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 138)
2012-08-07 20:27:53,163 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.3:6087
2012-08-07 20:27:53,163 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:27:53,166 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.3:6087
2012-08-07 20:27:53,166 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:27:53,168 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.3:6087
2012-08-07 20:27:53,170 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.3:6087
2012-08-07 20:28:19,978 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth0 (eth0) and address 192.168.1.11, timeout = 0
2012-08-07 20:28:19,980 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device 61cd396e-1894-3da9-91a2-e8090bcf4e54
2012-08-07 20:28:21,957 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:00:43
2012-08-07 20:28:45,317 DEBUG [FeedUpdaterThread] Checking for new and expired online resources
2012-08-07 20:28:45,317 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2012-08-07 20:28:45,324 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 98)
2012-08-07 20:28:45,332 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 134)
2012-08-07 20:28:45,348 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 135)
2012-08-07 20:28:45,357 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 138)
2012-08-07 20:28:47,005 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.3:6087
2012-08-07 20:28:47,005 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:28:47,008 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.3:6087
2012-08-07 20:28:47,009 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.3:6087
2012-08-07 20:28:47,009 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:28:47,012 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.3:6087
2012-08-07 20:28:53,657 DEBUG [PlaylistDAOImpl] Reading all Playlists
2012-08-07 20:29:05,118 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth0 (eth0) and address 192.168.1.11, timeout = 0
2012-08-07 20:29:05,120 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device 61cd396e-1894-3da9-91a2-e8090bcf4e54
2012-08-07 20:29:07,097 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:00:42
2012-08-07 20:29:08,665 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.3:64162
2012-08-07 20:29:08,665 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:29:11,666 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.3:64162
2012-08-07 20:29:11,666 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:29:14,665 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.3:64162
2012-08-07 20:29:14,666 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:29:17,736 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.3:64162
2012-08-07 20:29:17,736 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:29:20,746 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.3:64162
2012-08-07 20:29:20,747 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:29:23,741 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:InternetGatewayDevice:1 from address /192.168.1.3:64162
2012-08-07 20:29:23,742 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:29:40,012 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.3:6087
2012-08-07 20:29:40,013 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:29:40,015 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.3:6087
2012-08-07 20:29:40,016 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.3
2012-08-07 20:29:40,018 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.3:6087
2012-08-07 20:29:40,028 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.3:6087



Nothing seems to be goign on according to the log.

But the ffmpeg process is still running....
Last edited by xs2inattar on Wed Aug 08, 2012 1:29 am, edited 1 time in total.
<<

xs2inattar

DLNA master

Posts: 143

Joined: Sun Jun 24, 2012 5:49 pm

Post Wed Aug 08, 2012 1:25 am

Re: ffmpeg keeps running for online streams

npuser wrote:I had this issue once before but I can't remember how i solved it.

Could it be that your streams are missing "live=1"? I believe "live=True causes online transcoding to be serviced from a memory buffer and tear down the stream in less than 1 minute after the stream is stopped.

Thanks
NPuser



Following is what is extracted as content:
[fileType=VIDEO, contentUrl=rtmp://cmctv.flash.internapcdn.net/cmctv_vitalstream_com/live_adaptive_1/ playpath=CMC-TV_adaptive1 pageUrl=http://www.myiplayer.com/player_cmc.html swfUrl=http://http.vitalstreamcdn.com/flashskins/V2Player.swf live=1, thumbnailUrl=http://www.myiplayer.com/icon/cmc.jpg, expiresImmediately=true, cacheKey=MyiPlayer_MUSIC_cmc, live=false, ]

There is live=1 which is part of the stream content url and then there is another live=false which is part of the content information. Should live parameter in the content also be set to true? Zip can you please clarify this?
<<

npuser

DLNA master

Posts: 172

Joined: Mon Feb 06, 2012 3:44 am

Location: Michigan

Post Wed Aug 08, 2012 9:29 pm

Re: ffmpeg keeps running for online streams

i quickly scan through your myiplayer plugin. I am by no means an expert in plugin or groovy language for that matter. But i would imagine it would be easier define live =true in new ContenetURLContainer globally instead of individual playpath which can be easily overlooked and missed.


  Code:
....return_val = return_val + ' pageUrl=' + pageUrl
            return_val = return_val + ' swfUrl=' + swfUrl
            return_val = return_val + ' live=1'


and

  Code:
return new ContentURLContainer(contentUrl: rtmp_url, thumbnailUrl: item.additionalInfo.thumbnailURL, expiresImmediately: true, cacheKey : item.additionalInfo.cacheKey)



change it to
  Code:
return_val = return_val + ' pageUrl=' + pageUrl
            return_val = return_val + ' swfUrl=' + swfUrl

and

  Code:
return new ContentURLContainer(contentUrl: rtmp_url, thumbnailUrl: item.additionalInfo.thumbnailURL, expiresImmediately: true, cacheKey : item.additionalInfo.cacheKey, Live: true)


Just a suggestion.

thanks
NPuser
<<

xs2inattar

DLNA master

Posts: 143

Joined: Sun Jun 24, 2012 5:49 pm

Post Thu Aug 09, 2012 3:06 am

Re: ffmpeg keeps running for online streams

Petr what do you recommend???
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Aug 09, 2012 12:37 pm

Re: ffmpeg keeps running for online streams

it is a bug in the plugin:

  Code:
[FeedItemUrlExtractor] myiplayer.com: Finished extraction of url: ContentURLContainer [fileType=VIDEO, contentUrl=rtmp://cmctv.flash.internapcdn.net/cmctv_vitalstream_com/live_adaptive_1/ playpath=CMC-TV_adaptive1 pageUrl=http://www.myiplayer.com/player_cmc.html swfUrl=http://http.vitalstreamcdn.com/flashskins/V2Player.swf live=1, thumbnailUrl=http://www.myiplayer.com/icon/cmc.jpg, expiresImmediately=true, cacheKey=MyiPlayer_MUSIC_cmc, live=false, ]


live=1 in the URl means nothing to Serviio (it's an internal librtmp parameter, which I'm not even sure FFmpeg uses). The value that tells Serviio the URL is not a live stream is "live=false" in the container url object - it'll treat is as VOD content and keep downloading until the whole file is finished.
<<

xs2inattar

DLNA master

Posts: 143

Joined: Sun Jun 24, 2012 5:49 pm

Post Fri Aug 10, 2012 1:57 am

Re: ffmpeg keeps running for online streams

Updated the plugins with live=true.

Everything is working fine now.

Also uploaded the updated plugins.

Thanks.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 57 guests

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