FAQ  •  Register  •  Login

ffmpeg stuck on with 1.4.1.2

<<

kkomara

Serviio newbie

Posts: 14

Joined: Wed Oct 08, 2014 10:41 am

Post Wed Oct 08, 2014 5:37 pm

ffmpeg stuck on with 1.4.1.2

When I start to watch a movie using the Web interface on my laptop at home - the ffmpeg.exe transcoder starts on the headless XP Pro computer that I have Serviio 1.4.1.2 installed. All works fine - don't even mind the high cpu usage on my server since my server is headless. The issue is that if I stop the movie on my laptop (close the web browser session that I am viewing Serviio, or stop the movie) and go back to other functions in Serviio - the browser interface works fine - but I noticed that the ffmpeg.exe is still running on my server - even though I am not watching a movie. I can even be loged out of the Mediabrowser web interface - ffmep.exe still running - using tons of CPU. Seems to run for a VERY long time - but I think it eventually stops - probably at the end of processing of the movie file i had been watching. In older versions of Serviio (tested this with 1.3) - if you stop the movie and browse to say audio or photos - the ffmpe.exe stops immediately

Creates a bunch of files (SEGMENTnnnn.) in c:\windows\temp - keeps creating the files even when I have stopped watching the movie.

I did notice that if I stop the Serviio service the ffmpeg.exe stops along with it. If I re-start the service - ffmpeg.exe does not restart until i am watching a movie again.

is this normal ???? Hope not.

Thanks !!!
<<

kkomara

Serviio newbie

Posts: 14

Joined: Wed Oct 08, 2014 10:41 am

Post Wed Oct 08, 2014 5:40 pm

Re: ffmpeg stuck on with 1.4.1.2

Another question - will the ffmpeg.exe program keep creating new files forever - and not deleting them ???? Who/how are these files managed/cleaned up ????
<<

kkomara

Serviio newbie

Posts: 14

Joined: Wed Oct 08, 2014 10:41 am

Post Wed Oct 08, 2014 6:07 pm

Re: ffmpeg stuck on with 1.4.1.2

Correction - things work differently when I access Serviio with the web browser on my laptop and if I access it via web browser (safari) on my iphone.

When I access Serviio with Web Browser from my Widows 7 Laptop
Only one file is created (transcoding-temp-3-flv_player-ORIGINAL) - and it appears to be re-used (i.e. file size starts back at 0 when I view a different movie).
if I select pictures the ffmpeg.exe continues - BUT - if I select an audio file and play it - the ffmpeg.exe stops.

When I access Serviio with web browser from by iphone 5s (ios 8.02)
ffmpeg.exe creates a folder (transcoding-temp-10-ios-ORIGINAL.stf)
and starts creating file after file (segment0000n)
if I select pictures or play an audio the ffmpeg.exe continues - nothing i seem to do from the web browser cause it to stop - keeps creating files......
<<

kkomara

Serviio newbie

Posts: 14

Joined: Wed Oct 08, 2014 10:41 am

Post Wed Oct 08, 2014 6:45 pm

Re: ffmpeg stuck on with 1.4.1.2

No clients connected to serviio. ffmpeg.exe still running and creating temp files. 570 files - 3.12 GB of disk space used.....
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Wed Oct 08, 2014 9:31 pm

Re: ffmpeg stuck on with 1.4.1.2

As I understand it, the browsers ask Serviio to send them the movies as transcoded by ffmpeg per the profile to either a file or hls segments in the case of apple. When playback on the browsers is stopped, there is no indication sent back to Serviio, hence the ffmpeg transcoding via fffmeg continues as if the browser is still displaying it. You can kill the ffmpeg process on the server but unless you write a plugin to do so there is no way to kill it from the client.
<<

kkomara

Serviio newbie

Posts: 14

Joined: Wed Oct 08, 2014 10:41 am

Post Thu Oct 09, 2014 10:05 am

Re: ffmpeg stuck on with 1.4.1.2

OK - I can see that being an issue. Should ffmpeg.exe stop when the Web client is a Windows Browser (i.e. IE, Chrome, Firefox) ?? I will retest this - but I believe that ffmpeg keeps running after the movie is exited from those browsers too.

I have been trying other apps like Serviio (PLEX, etc.) and some of them use ffmpeg.exe too. Serviio is the only one that seems to have an issue finding a way to stop ffmpeg.exe when it is no longer needed. Also seems to have worked properly in older versions of Serviio.

Have to say that the WEB interface to Serviio is the BEST of ANY of the these types of apps. I also connect quite often to my home network over Internet/VPNP - so I rely on HTTP acccess to my home media. Messed around for quite a while with DLNA - even got it working over internet using OpenVPN in TAP mode - but HTTP is more consistent and you cannot do OpenVPN TAP mode on IOS (Stupid Apple). That is why I am sticking with it for the long run (i.e. using it to stream to ALL of my devices - Windows (7/8/8.1), IOS (7.06/8.02), Android (2.3/4.1), Linux (Ubuntu 14.04) on my local Network and over VPN. Also planning to decommission my XP Pro server computer since MS has ceased support and move to Linux Ubuntu 14.04 for my server running Serviio on Linux.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Thu Oct 09, 2014 3:52 pm

Re: ffmpeg stuck on with 1.4.1.2

kkomara wrote:OK - I can see that being an issue. Should ffmpeg.exe stop when the Web client is a Windows Browser (i.e. IE, Chrome, Firefox) ?? I will retest this - but I believe that ffmpeg keeps running after the movie is exited from those browsers too.

Yes as I said applies to all clients/browsers including Serviio Media browser.

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 35 guests

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