FAQ  •  Register  •  Login

ffmpeg process does not stop...?

<<

el-lobo

Serviio newbie

Posts: 12

Joined: Thu Feb 17, 2011 8:54 pm

Post Fri Nov 04, 2011 6:55 pm

ffmpeg process does not stop...?

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!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Nov 04, 2011 11:50 pm

Re: ffmpeg process does not stop...?

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)
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sat Nov 05, 2011 8:12 am

Re: ffmpeg process does not stop...?

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 ?
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Nov 05, 2011 6:41 pm

Re: ffmpeg process does not stop...?

they could, that's why I said 2 transcoding FFmpeg processes ;-)
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sun Nov 06, 2011 7:50 am

Re: ffmpeg process does not stop...?

ok cool just checking :)
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

CraigD

Serviio lover

Posts: 61

Joined: Tue Nov 08, 2011 2:05 pm

Post Mon Nov 14, 2011 11:52 pm

Re: ffmpeg process does not stop...?

If you have 2 renderers connected you should see 2?
<<

jOkEr

Serviio newbie

Posts: 7

Joined: Thu Dec 22, 2011 12:02 pm

Post Thu Dec 22, 2011 7:54 pm

Re: ffmpeg process does not stop...?

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?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Thu Dec 22, 2011 8:56 pm

Re: ffmpeg process does not stop...?

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.
Will

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

jOkEr

Serviio newbie

Posts: 7

Joined: Thu Dec 22, 2011 12:02 pm

Post Fri Dec 23, 2011 7:15 am

Re: ffmpeg process does not stop...?

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?
<<

CaBrA

User avatar

Serviio newbie

Posts: 5

Joined: Tue Jun 23, 2015 1:54 am

Post Tue Jun 23, 2015 2:01 am

Re: ffmpeg process does not stop...?

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!
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Tue Jun 23, 2015 1:03 pm

Re: ffmpeg process does not stop...?

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.
<<

CaBrA

User avatar

Serviio newbie

Posts: 5

Joined: Tue Jun 23, 2015 1:54 am

Post Tue Jun 23, 2015 1:26 pm

Re: ffmpeg process does not stop...?

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? :oops:
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Tue Jun 23, 2015 9:17 pm

Re: ffmpeg process does not stop...?

Yes, and they transcode to a buffer not to a file so that they do not fill up a disk.

Return to Samsung

Who is online

Users browsing this forum: No registered users and 13 guests

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