Welcome to Media Center Master!
A powerful solution for mastering your digital media library.
Supporting Emby, Kodi/XBMC/OSMC, Plex, Windows Media Center, and more!

Home Download Gallery Wiki Issue Tracker Licensing Forums

   FAQ  •  Search •  Login •  Register     
It is currently September 17th, 2019, 2:42 am

All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 39 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Re: Lots of ffprobe processes running at 100%
PostPosted: August 19th, 2019, 3:54 pm 
Offline
Flash Video
User avatar

Joined: April 14th, 2018, 12:52 pm
Posts: 14
Pete wrote:
Here's what MCM (via VidInfo) is trying to do:

Code:
ffprobe.exe -hide_banner -v warning -analyzeduration 900000000 -probesize 900000000 -print_format compact -show_format -show_streams -show_entries format=duration -find_stream_info -i "VIDEOFILE"


Would you run that and see what happens? Use the version in %AppData%\Peter Souza IV\Media Center Master\bin and substitute VIDEOFILE for your problem video file.



here ya go

AppData\Roaming\Peter Souza IV\Media Center Master\bin>ffprobe.exe -hide_banner -v warning -analyzeduration 900000000 -probesize 900000000 -print_format compact -show_format -show_streams -show_entries format=duration -find_stream_info -i 1.mkv
stream|index=0|codec_name=h264|codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10|profile=High|codec_type=video|codec_time_base=1001/48000|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|width=1908|height=794|coded_width=1920|coded_height=800|has_b_frames=1|sample_aspect_ratio=1:1|display_aspect_ratio=954:397|pix_fmt=yuv420p|level=40|color_range=tv|color_space=bt709|color_transfer=bt709|color_primaries=bt709|chroma_location=topleft|field_order=progressive|timecode=N/A|refs=1|is_avc=true|nal_length_size=4|id=N/A|r_frame_rate=24000/1001|avg_frame_rate=24000/1001|time_base=1/1000|start_pts=0|start_time=0.000000|duration_ts=N/A|duration=N/A|bit_rate=N/A|max_bit_rate=N/A|bits_per_raw_sample=8|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=N/A|disposition:default=1|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|tag:language=eng|tag:BPS=4537137|tag:BPS-eng=4537137|tag:DURATION=02:00:47.115000000|tag:DURATION-eng=02:00:47.115000000|tag:NUMBER_OF_FRAMES=173757|tag:NUMBER_OF_FRAMES-eng=173757|tag:NUMBER_OF_BYTES=4110144572|tag:NUMBER_OF_BYTES-eng=4110144572|tag:_STATISTICS_WRITING_APP=mkvmerge v11.0.0 ('Alive') 64bit|tag:_STATISTICS_WRITING_APP-eng=mkvmerge v11.0.0 ('Alive') 64bit|tag:_STATISTICS_WRITING_DATE_UTC=2019-07-08 18:25:04|tag:_STATISTICS_WRITING_DATE_UTC-eng=2019-07-08 18:25:04|tag:_STATISTICS_TAGS=BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES|tag:_STATISTICS_TAGS-eng=BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
stream|index=1|codec_name=ac3|codec_long_name=ATSC A/52A (AC-3)|profile=unknown|codec_type=audio|codec_time_base=1/48000|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=fltp|sample_rate=48000|channels=2|channel_layout=stereo|bits_per_sample=0|dmix_mode=-1|ltrt_cmixlev=-1.000000|ltrt_surmixlev=-1.000000|loro_cmixlev=-1.000000|loro_surmixlev=-1.000000|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/1000|start_pts=5200|start_time=5.200000|duration_ts=N/A|duration=N/A|bit_rate=384000|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=N/A|disposition:default=1|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|disposition:timed_thumbnails=0|tag:language=eng|tag:BPS=384000|tag:BPS-eng=384000|tag:DURATION=02:00:40.064000000|tag:DURATION-eng=02:00:40.064000000|tag:NUMBER_OF_FRAMES=226252|tag:NUMBER_OF_FRAMES-eng=226252|tag:NUMBER_OF_BYTES=347523072|tag:NUMBER_OF_BYTES-eng=347523072|tag:_STATISTICS_WRITING_APP=mkvmerge v11.0.0 ('Alive') 64bit|tag:_STATISTICS_WRITING_APP-eng=mkvmerge v11.0.0 ('Alive') 64bit|tag:_STATISTICS_WRITING_DATE_UTC=2019-07-08 18:25:04|tag:_STATISTICS_WRITING_DATE_UTC-eng=2019-07-08 18:25:04|tag:_STATISTICS_TAGS=BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES|tag:_STATISTICS_TAGS-eng=BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
format|duration=7247.115000|tag:title=CMRG|tag:encoder=libebml v1.3.4 + libmatroska v1.4.5|tag:creation_time=2019-07-08T18:25:04.000000Z


 Profile  
 Post subject: Re: Lots of ffprobe processes running at 100%
PostPosted: August 19th, 2019, 4:25 pm 
Offline
Developer/Owner
User avatar

Joined: May 1st, 2009, 10:12 am
Posts: 11610
Location: Meridian, ID, USA
It finishes and returns to a command prompt?

VidInfo is waiting for the process to finish and I figured it... well, wasn't.

_________________
Peter Souza IV
stable version 2.19.23119.1014 / August 19th, 2019
Media Center Master on Facebook!


 Profile  
 Post subject: Re: Lots of ffprobe processes running at 100%
PostPosted: August 19th, 2019, 4:29 pm 
Offline
Flash Video
User avatar

Joined: April 14th, 2018, 12:52 pm
Posts: 14
Yep I did complete with a command prompt everything I pasted was what was returned before it went back to prompt, I also sent you a PM as well.


 Profile  
 Post subject: Re: Lots of ffprobe processes running at 100%
PostPosted: August 19th, 2019, 5:02 pm 
Offline
Developer/Owner
User avatar

Joined: May 1st, 2009, 10:12 am
Posts: 11610
Location: Meridian, ID, USA
Please update to version 2.19 build 23119.1014 using auto-update.

I've updated VidInfo to give up on sub-processes if Windows fails to release them after 30 seconds, killing the process first before moving on.

Let me know if that resolves your issue?

_________________
Peter Souza IV
stable version 2.19.23119.1014 / August 19th, 2019
Media Center Master on Facebook!


 Profile  
 Post subject: Re: Lots of ffprobe processes running at 100%
PostPosted: August 19th, 2019, 5:16 pm 
Offline
Flash Video
User avatar

Joined: April 14th, 2018, 12:52 pm
Posts: 14
I ran it and still had the same issues, let it sit for 3 minutes after it completed the trailer download and the ffbrobe.exe stayed active, I closed the app normally no forced shutdown or anything like that and then looked in task manager, waited another 3 minutes before manually killing the ffprobe.exe task. I left with the same orphaned trailer.mp4 files that had not been renamed.


 Profile  
 Post subject: Re: Lots of ffprobe processes running at 100%
PostPosted: August 19th, 2019, 5:23 pm 
Offline
Developer/Owner
User avatar

Joined: May 1st, 2009, 10:12 am
Posts: 11610
Location: Meridian, ID, USA
This is the C# code/logic for what it's doing:

Code:
    static class ProgramLauncher
    {
        public static string AllOutput = string.Empty;
        public static Exception Error = null;

        public static string LaunchProgram(string bin, string args)
        {
            ProgramLauncher.AllOutput = string.Empty;

            try
            {
                DateTime dtStarted = DateTime.Now;

                using (Process p = new Process())
                {
                    ProcessStartInfo psi = new ProcessStartInfo();
                    psi.UseShellExecute = false;
                    psi.WindowStyle = ProcessWindowStyle.Hidden;
                    psi.Arguments = args;

                    psi.RedirectStandardInput = true;
                    psi.RedirectStandardOutput = true;
                    psi.RedirectStandardError = true;
                    psi.StandardOutputEncoding = Encoding.UTF8;

                    psi.FileName = bin;
                    psi.CreateNoWindow = true;
                    psi.WorkingDirectory = Directory.GetCurrentDirectory();

                    p.StartInfo = psi;
                    p.EnableRaisingEvents = true;
                    p.OutputDataReceived += p_OutputDataReceived;
                    p.ErrorDataReceived += p_ErrorDataReceived;

                    p.Start();
                    p.BeginOutputReadLine();
                    p.BeginErrorReadLine();

                    try { p.PriorityClass = ProcessPriorityClass.BelowNormal; } catch { }

                    while (!p.HasExited)
                    {
                        Thread.Sleep(10);

                        if ((DateTime.Now - dtStarted).TotalSeconds >= 30.0)
                            break;
                    }

                    try { p.Kill(); } catch { }
                }
            }
            catch { }

            return ProgramLauncher.AllOutput;
        }

        private static void ProcessProgramOutput(DataReceivedEventArgs e)
        {
            ProgramLauncher.AllOutput += e.Data + System.Environment.NewLine;
        }

        private static void p_ErrorDataReceived(object sender, DataReceivedEventArgs e)
        {
            ProgramLauncher.ProcessProgramOutput(e);
        }

        private static void p_OutputDataReceived(object sender, DataReceivedEventArgs e)
        {
            ProgramLauncher.ProcessProgramOutput(e);
        }
    }


It's really straight-forward code that just takes all the STDOUT and STDERR and shoves it into a string variable until the process terminates or 30 seconds elapse.

Can you try resetting the ACLs on the offending files? Perhaps there's a permission issue that's causing Windows to freeze the process when the process is launched through Media Center Master.

If that doesn't help, check and see if it's also leaving VidInfo.exe running? If VidInfo.exe ends but ffprobe.exe persists, then that'd paint a scenario where MediaCenterMaster (MCMStubLauncher.exe or MediaCenterMaster.exe proper) is giving up on VidInfo.exe and thus doesn't have a chance to terminate its sub-processes (although the ffprobe.exe sub-processes should terminate naturally regardless).

You could also help by trying to dig into what ffprobe.exe might be doing with ProcMon, FileMon, Process Hacker, etc. I'm curious what the process is doing while it's sitting there.

_________________
Peter Souza IV
stable version 2.19.23119.1014 / August 19th, 2019
Media Center Master on Facebook!


 Profile  
 Post subject: Re: Lots of ffprobe processes running at 100%
PostPosted: August 19th, 2019, 5:29 pm 
Offline
Flash Video
User avatar

Joined: April 14th, 2018, 12:52 pm
Posts: 14
just ran it for the one single file, just a right click retrieve theatrical trailer, when its all done same outcome, left in the task manager is:

ffprobe.exe(32)
MCMStubLauncher(32)
ConsoleWindowHost

no vidinfo.exe to be seen accept during the initial download, once complete it closes.

closing the app leaves everything still

also not an ACLS issue, files are on a NAS, Double checked and they are just fine, I even went as far as to have MCM even do a rename for me which it had not trouble doing.

Its just the trailer that it is not happy with.


 Profile  
 Post subject: Re: Lots of ffprobe processes running at 100%
PostPosted: August 19th, 2019, 6:26 pm 
Offline
Community Support
User avatar

Joined: September 10th, 2010, 8:36 am
Posts: 2663
Location: Washington
Jrod696 wrote:
just ran it for the one single file, just a right click retrieve theatrical trailer, when its all done same outcome, left in the task manager is:

ffprobe.exe(32)
MCMStubLauncher(32)
ConsoleWindowHost

no vidinfo.exe to be seen accept during the initial download, once complete it closes.

closing the app leaves everything still

also not an ACLS issue, files are on a NAS, Double checked and they are just fine, I even went as far as to have MCM even do a rename for me which it had not trouble doing.

Its just the trailer that it is not happy with.


Wonder by this does not affect everyone? I can't reproduce with default trailer downloading or adaptive trailer downloading.

_________________
Support Information
Help-Support Information, Click "Copy All", "Yes", "OK", "Close" and paste in forum

Debug logging
Help-Debug-Show developer-level debug messaging

stable version 2.19 (build 23119.1014) / August 19th, 2019


 Profile  
 Post subject: Re: Lots of ffprobe processes running at 100%
PostPosted: August 19th, 2019, 6:57 pm 
Offline
Flash Video
User avatar

Joined: April 14th, 2018, 12:52 pm
Posts: 14
it doesnt do it on all files, currently in a collection 50 or so there are 3 that cause the issue.

It does appear to be all trailer.mp4 files that make it get stuck.


 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 39 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group



Copyright © 2009-2019, Media Center Master, Inc. All rights reserved.