Page 1 of 1
ffmpeg process does not stop...?

Posted:
Fri Nov 04, 2011 6:55 pm
by el-lobo
After getting my new Win 7 Home Premium 64bit Notebook I installed Serviio 0.6.0.1.
Everything works well and I was happy to watch all my Movies on the B750 TV and the BD5500 player.
But after I stopped the Movie I have noticed a strange thing: I was wondering, why my Notebook is getting hotter.
So I took a look on the ResourceMonitor in Win 7 and found out the the ffmpeg.exe still is running in the background!
The Movie is still running in the background!
Why that?
And another strange thing: when I start a new Movie, another process of ffmpeg will start.
Now there are two Movies running in ffmpeg - even if I switch of the Mediaplayer on the TV/BDP..
Why does the FFMPEG Service not stop if I stop the Movie?
I always have to stop ffmpeg manually..
What could be wrong with my installation?
Sorry for my english. Just very basic..
I hope to get some help!
Thanks in advance!
Re: ffmpeg process does not stop...?

Posted:
Fri Nov 04, 2011 11:50 pm
by zip
FFmpeg process will run until the end of the file. It should stop once you start a new transcode so you should never see 2 FFmpeg transcoding processes - if you do it might be a bug. You could post
detailed log of when this happens (second FFmpeg started)
Re: ffmpeg process does not stop...?

Posted:
Sat Nov 05, 2011 8:12 am
by Cerberus
zip wrote:FFmpeg process will run until the end of the file. It should stop once you start a new transcode so you should never see 2 FFmpeg transcoding processes - if you do it might be a bug. You could post
detailed log of when this happens (second FFmpeg started)
could teh 2 processes not be that your playing a transcoded file and library is refreshing at same time ?
Re: ffmpeg process does not stop...?

Posted:
Sat Nov 05, 2011 6:41 pm
by zip
they could, that's why I said 2 transcoding FFmpeg processes

Re: ffmpeg process does not stop...?

Posted:
Sun Nov 06, 2011 7:50 am
by Cerberus
ok cool just checking

Re: ffmpeg process does not stop...?

Posted:
Mon Nov 14, 2011 11:52 pm
by CraigD
If you have 2 renderers connected you should see 2?
Re: ffmpeg process does not stop...?

Posted:
Thu Dec 22, 2011 7:54 pm
by jOkEr
i have the same thing - I've added new path to the serviio and have started to play film
so I see 2 processes
PID PPID USER STAT VSZ %MEM %CPU COMMAND
29786 1078 serviio R 63632 12.4 49.7 ffmpeg -i /volume1/video/Петя и волк.mkv -y -threads 1 -vcodec mpeg2video -sameq -r 24000/1001 -g 15 -copyts -acodec copy -map
29892 1078 serviio R 27492 5.3 49.7 ffmpeg -ss 120 -i /volume1/video/_BD/volume2/sci/BBC 1.4 - Space/Kosmos BBC - CD 2.avi -an -vframes 1 -f image2 pipe:
but still do not understand why not kill the process if I stop the movie...
I have disabled the transcoding and hope never see the same situation. But I wonder can this "disable" influence the library update - for example will serviio include in the library all files or only those my TV able to play?
Re: ffmpeg process does not stop...?

Posted:
Thu Dec 22, 2011 8:56 pm
by will
ffmpeg is not killed when you stop playing a video so that you can stop (on purpose or by accident) and then resume the video without having to transcode the video again.
Wait until you press the wrong button on your remote. When you press play and it instantly resumes where it left off, you will be happy that It keeps transcoding

If you dissable transcoding then serviio will include them, they just might not work on your device. There isn't really a reason why you would need to turn off transcoding.
Re: ffmpeg process does not stop...?

Posted:
Fri Dec 23, 2011 7:15 am
by jOkEr
thank you for your reply.
Due to the high equal CPU utilization for both ffmpeg processes I've though that ffmpeg is playing the film I've stop till the end and than finish.
But if it's not the case I wonder why the CPU utilization so high for the process of ffmpeg if I stop playing a video?
Re: ffmpeg process does not stop...?

Posted:
Tue Jun 23, 2015 2:01 am
by CaBrA
Is there a way to stop transcoding (using ffmpeg) when I stop a video? Cause ffmpeg use 90% CPU usage and if I stop a video and try to normal use my notebook it run slow because of transcoding at 90% when I had stoped a movie 20 minutes ago...
So, can ffmpeg be killed after... I don´t know, 5 minutes TCP inactivity?
Thank you!
Re: ffmpeg process does not stop...?

Posted:
Tue Jun 23, 2015 1:03 pm
by jhb50
You can use the ffmpeg kill documented in the wiki. But why bother it only takes me about 3 minutes to transcode a 2 hour movie. Probably faster than I can kill it. Online streams need to be killed when you have finished watching the last one because they never end.
Re: ffmpeg process does not stop...?

Posted:
Tue Jun 23, 2015 1:26 pm
by CaBrA
jhb50 wrote:You can use the ffmpeg kill documented in the wiki. But why bother it only takes me about 3 minutes to transcode a 2 hour movie. Probably faster than I can kill it. Online streams need to be killed when you have finished watching the last one because they never end.
Question about online streams: Is the "online sources" tab, no?

Re: ffmpeg process does not stop...?

Posted:
Tue Jun 23, 2015 9:17 pm
by jhb50
Yes, and they transcode to a buffer not to a file so that they do not fill up a disk.