Page 1 of 1

ffmprg keeps running help me solve this

PostPosted: Fri Sep 06, 2013 10:02 pm
by chrismallia
Hi I purchees serviio pro and have a big problem when I stream obver web browser the ffmpeg keeps running aldo I close the stream and turn off the PC this is a huge problem cos if a other stream starts I will have 2 running and it kills my cpu I will have to end task in task manager my self. I managed to get these logs hope they are the right ones . I am new so if I have to do any editing please explane step by step regards

2013-09-06 23:43:38,693 INFO [WebServer] WebServer starting on port 8895
2013-09-06 23:43:38,833 INFO [Device] Updated bound IP address of Device with UUID: 29e0c7b2-e2bf-3f96-91e2-08c360085651, bound address: 192.168.1.101
2013-09-06 23:43:38,943 INFO [EventDispatcher] Starting EventDispatcher
2013-09-06 23:43:38,943 INFO [EventSubscriptionExpirationChecker] Starting EventSubscriptionExpirationChecker
2013-09-06 23:43:38,943 INFO [DiscoveryAdvertisementNotifier] Starting DiscoveryAdvertisementNotifier
2013-09-06 23:43:38,943 INFO [RendererExpirationChecker] Starting RendererExpirationChecker
2013-09-06 23:43:38,974 INFO [RendererSearchSender] Searching for Renderer devices
2013-09-06 23:43:39,115 INFO [DiscoverySSDPMessageListener] Starting DiscoverySSDPMessageListener using interface eth4 (Realtek PCIe GBE Family Controller) and address 192.168.1.101, timeout = 0
2013-09-06 23:44:05,334 INFO [FeedUpdaterThread] Started looking for information about online resources
2013-09-06 23:44:05,337 INFO [LibraryAdditionsCheckerThread] Started looking for newly added files
2013-09-06 23:44:05,345 INFO [PlaylistMaintainerThread] Started looking playlist changes
2013-09-06 23:44:05,345 INFO [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2013-09-06 23:44:07,154 INFO [ContentDirectoryDefinitionParser] Parsing ContentDirectory definition
2013-09-06 23:44:08,063 INFO [BrowsingCategoriesMessages] Loaded browsing categories message bundle for locale: en
2013-09-06 23:44:11,263 WARN [LibraryManager] Skipping processing metadata for an unsupported file (snow.white.a.tale.of.terror.dvdrip. - TheDarkRose.avi). Message: Unknown video file type.
2013-09-06 23:47:05,517 WARN [ProcessExecutor] Process cmd has a return code of 1! This is a possible error. Detailed output follows.
frame=17198 fps=217 q=2.0 size= 48693kB time=00:11:27.92 bitrate= 579.9kbits/s
frame=17320 fps=217 q=2.0 size= 49081kB time=00:11:32.80 bitrate= 580.4kbits/s
frame=17388 fps=216 q=16.3 size= 49304kB time=00:11:35.52 bitrate= 580.7kbits/s
frame=17495 fps=216 q=4.0 size= 49636kB time=00:11:39.80 bitrate= 581.0kbits/s
frame=17556 fps=216 q=3.0 size= 49825kB time=00:11:42.24 bitrate= 581.2kbits/s
2013-09-06 23:49:15,710 WARN [LibraryManager] Skipping processing metadata for an unsupported file (snow.white.a.tale.of.terror.dvdrip. - TheDarkRose.avi). Message: Unknown video file type.
2013-09-06 23:54:17,038 WARN [LibraryManager] Skipping processing metadata for an unsupported file (snow.white.a.tale.of.terror.dvdrip. - TheDarkRose.avi). Message: Unknown video file type.

Re: ffmprg keeps running help me solve this

PostPosted: Fri Sep 06, 2013 10:12 pm
by will
This is by design, ffmpeg will keep running until it has finished the video, OR until the same user picks a new video, in which case the first ffmpeg process will be killed.

You will only have multiple ffmpeg processes running if there are multiple users streaming.

Re: ffmprg keeps running help me solve this

PostPosted: Fri Sep 06, 2013 11:00 pm
by chrismallia
will wrote:This is by design, ffmpeg will keep running until it has finished the video, OR until the same user picks a new video, in which case the first ffmpeg process will be killed.

You will only have multiple ffmpeg processes running if there are multiple users streaming.

Thank you for your help last question why does streaming over web browser take alot of cpu? and is there a way to keep ffmpeg from using that power? I have dual core 3.0ghz intel and 1 stream uses 35 percent. or is there a way to stream over the internet using a player for example vlc maybe it will not take that much cpu?

Re: ffmprg keeps running help me solve this

PostPosted: Sat Sep 07, 2013 12:03 pm
by chrismallia
Is there a way to stop repackaging/transcoding to play over media browser ?

Re: ffmprg keeps running help me solve this

PostPosted: Sat Sep 07, 2013 12:09 pm
by will
MediaBrowser uses flash, I belive certain video codecs can be repackaged, but others need to be transcoded. There isn't currently a way to connect it up to VLC in a way that uses a different transcoding profile (at least not without implementing your own client), although someone was working on a Windows 8 app which would presumably require less transcoding.

What quality are you using for your videos, 'Original' will require a lot more CPU for HD videos than 'Medium'.

Re: ffmprg keeps running help me solve this

PostPosted: Sat Sep 07, 2013 12:38 pm
by chrismallia
will wrote:MediaBrowser uses flash, I belive certain video codecs can be repackaged, but others need to be transcoded. There isn't currently a way to connect it up to VLC in a way that uses a different transcoding profile (at least not without implementing your own client), although someone was working on a Windows 8 app which would presumably require less transcoding.

What quality are you using for your videos, 'Original' will require a lot more CPU for HD videos than 'Medium'.

Hi I was using original now I am going to put it down to medium but I notest that about after 15min of streaming the movie the ffmpeg finished transcoding or repackeging and the cpu went back to 0 percent usage. So I do not think it will keep the cpu at 35 percent threw the whole movie right?

Re: ffmprg keeps running help me solve this

PostPosted: Sat Sep 07, 2013 12:39 pm
by will
Correct, the cpu will go back to 0 once ffmpeg has finished transcoding the video. You can also lower the quality of original in order to speed ffmpeg up a bit (if medium is too low), or increase the bitrate used by medium.

Re: ffmprg keeps running help me solve this

PostPosted: Sat Sep 07, 2013 12:47 pm
by chrismallia
will wrote:Correct, the cpu will go back to 0 once ffmpeg has finished transcoding the video. You can also lower the quality of original in order to speed ffmpeg up a bit (if medium is too low), or increase the bitrate used by medium.

Thanks for your great help, if the ffmpeg finishes that quicklly it would not be much of a problem how do I increes the bitrate for medium ?

Re: ffmprg keeps running help me solve this

PostPosted: Sat Sep 07, 2013 1:43 pm
by will
chrismallia wrote: how do I increes the bitrate for medium ?


Open up C:\Program Files\Serviio\config\application-profiles.xml

Then the first entry is for flv_player (which is the MediaBrowser Flash Player), scroll down until you see

  Code:

         <Quality type="MEDIUM">
            <Transcoding>
               <Video targetContainer="flv" targetVCodec="flv" targetACodec="mp3" forceStereo="true" aSamplerate="44100" maxVBitrate="1000" maxHeight="480">
                  <Matches container="*" />
               </Video>
            </Transcoding>
            <OnlineTranscoding keepStreamOpen="false">
               <Video targetContainer="flv" targetVCodec="flv" targetACodec="mp3" forceStereo="true" aSamplerate="44100" maxVBitrate="1000" maxHeight="480">
                  <Matches container="*" />
               </Video>
            </OnlineTranscoding>
         </Quality>


and replace the two
  Code:
maxVBitrate="1000"
with say 2000, then restart the serviio services (not just restarting the server part from the console).

You can also incrase the resolution by changing
  Code:
maxHeight="480"

Re: ffmprg keeps running help me solve this

PostPosted: Sat Sep 07, 2013 2:14 pm
by chrismallia
thank you Will you are a great help I really appreciate all your help, your a great guy