Solveig Multimedia Forum - Get help for video editing software

SolveigMM End-User Products => Video Splitter => Topic started by: freshbits on January 16, 2009, 04:39:27 AM

Title: Slow!
Post by: freshbits on January 16, 2009, 04:39:27 AM
Can anyone explain why it should take 45 minutes for Video Splitter to split out and save 7 minutes of MPEG-2 without re-encoding? This is a 3GHz dual core CPU. This is distressing and disappointing. I have used the free AVI splitter and I don't remember it taking so long.

It would take much less time to re-encode the video, but I want to avoid that.
Title: Re: Slow!
Post by: Dmitry Vergeles on January 16, 2009, 05:42:47 AM
Hi freshbits,
Thank you for the feedback. We only have the explanation you deal with some BUG.

Please let us know if you try to edit MPEG-2 transport or Program stream nad what is file size of original file.
Title: Re: Slow!
Post by: freshbits on January 16, 2009, 05:28:30 PM
(G-Spot says:) DVD-ready (720x480) MPEG-2 Program Stream 29.95 fps, system bitrate 6075 kb/s VBR, audio MP3 384 kb/s CBR. Generated by Hauppage TV tuner card.

Example 1. One input file was 4,983,696 KB (1 hour, 35 minutes). I tried several times, asking for 5 cuts to eliminate all except approximately 42 minutes. Splitter was unable to create more than 14 minutes (724 KB) of output before freezing. It took three hours to do this.

Example 2. Input file was 1,640,808 KB (1 hour 1 minute). I asked for an 8-minute (8:02) clip output. After 22 minutes, Splitter stopped at 99%. After waiting a few more minutes I shut the program down. Output file seems okay except for last frame or two.

Example 3. Input file was 1,641,192 KB (1 hour 1 minute). I asked for a 1-minute 35 second (1:35) clip output. After 11 minutes, Splitter stopped at 99%. After waiting a few more minutes I shut the program down. Output file seems okay except for last frame or two.

I am continuing to investigate.
Title: Re: Slow!
Post by: Dmitry Vergeles on January 16, 2009, 06:47:57 PM
Hi freshbits,

Thank you for so detailed data, we will try to replicate the problem
Title: Re: Slow!
Post by: freshbits on January 16, 2009, 07:31:00 PM
More info (according to G-Spot):

Example 1 was recorded with a video bitrate of 6400 kb/s
Examples 2 and 3 were recorded with a video bitrate of 3000 kb/s
Title: Re: Slow!
Post by: freshbits on January 16, 2009, 11:03:54 PM
I tried the scenario in Example 1 again, but using a different input video that was recorded at a high bitrate of 6400 kbps.

50 minutes later, Video Splitter was frozen at 29% and had produced only 5 minutes of output video.

Therefore, I wonder if it has trouble with the high (6400) bitrate. Also, I wonder if it has trouble with US-standard NTSC interlaced video, even though it was originally encoded as a DVD program stream (720x480). These are just suggestions to think about.

My Hauppage card can only produce DVD, VCD, or SVCD, and all of it is 59.95 fields/sec interlaced video. I don't have to use 6400 kbps, but even with 3000 kbps input video this is slow.

I have to move on to other tasks now, but I will watch this forum to see if you come up with any ideas.
Title: Re: Slow!
Post by: JMorelo on January 20, 2009, 04:58:25 AM
I am also having a problem with slowness. I tried to split out 5 minutes of an MPEG video and it’s still running after an hour and appears to be hung with very little CPU or Disk usage. When I started the split the progress bar moved quickly but slowed down towards the end and appears to be stuck at 99% now. The SMMVSplitter.exe process has a VM Size of 1,910,320k! My system has 3Gbytes of memory and a 3.2Ghz processor. Input video: Duration: 34:14:66, Byte size: 4 484 425 728, Video MPEG2, Audio MPEG1, Version 2.1.901.19

Please let me know if there is a fix for this.
Title: Re: Slow!
Post by: Dmitry Vergeles on January 20, 2009, 03:07:29 PM
Hello JMorelo and freshbits,

Could you please test if new version of the component sole the issue.

Download, unzip and put the empegmux.ax file to the Splitter installed dir. by default it is "C:\Program Files\Solveig Multimedia\SolveigMM Video Splitter"
It should replace the old version of this file.

http://solveigmm.com/files/utils/empegmux.zip

Please let us know the results
Title: Re: Slow!
Post by: Dmitry Vergeles on January 20, 2009, 03:08:54 PM
1
Title: Re: Slow!
Post by: JMorelo on January 21, 2009, 01:27:13 AM
I copied the empegmux.ax file into the SolveigMM Video Splitter installation directory and tried to save another segment and got the following error messages:

---------------------------
SolveigMM Video Editing Engine error
---------------------------
Cannot play back the file.  The format is not supported. HRESULT: 0x80040265
(Unspecified error

 hr = 0x80004005)

---------------------------
OK   
---------------------------

---------------------------
SolveigMM Video Editing Engine error
---------------------------
CDSPlayer::PlayerThreadProc() Unexpected error.
(Unspecified error

 hr = 0x80004005)

---------------------------
OK   
---------------------------
Title: Re: Slow!
Post by: Dmitry Vergeles on January 21, 2009, 11:32:39 AM
ok,
thanks, got it.
Is audio stream LPCM?
Title: Re: Slow!
Post by: Dmitry Vergeles on January 21, 2009, 04:28:16 PM
I copied the empegmux.ax file into the SolveigMM Video Splitter installation directory and tried to save another segment and got the following error messages:

---------------------------
SolveigMM Video Editing Engine error
---------------------------
Cannot play back the file.  The format is not supported. HRESULT: 0x80040265
(Unspecified error

 hr = 0x80004005)

---------------------------
OK   
---------------------------

---------------------------
SolveigMM Video Editing Engine error
---------------------------
CDSPlayer::PlayerThreadProc() Unexpected error.
(Unspecified error

 hr = 0x80004005)

---------------------------
OK   
---------------------------

Here is the update to fix that issue
http://solveigmm.com/files/SolveigMM_Video_Splitter_2_1.zip
Title: Re: Slow!
Post by: JMorelo on January 23, 2009, 04:00:16 AM
I installed version 2.1.901.22 and although I no longer get the error dialog boxes I still cannot "Save Fragment As" successfully for large video files. I can save fragments from small video files (~250Mb) but not larger ones (>1Gb) even though the fragment is a fraction of the overall video size.

I noticed that this application uses a lot of memory when using this feature and doesn't free it up until the application is closed. To test this I opened a 250Mb video file and saved a small fragment from it several times noting the memory usage between each save. The memory usage grew each time and would not go down even after closing the video file and opening another. And when the SMMVSplitter.exe process reached the 2Gb memory limit of Windows XP the "Now splitting the sequence..." progress bar would stop and give the appearance of being slow although I doubt it would ever complete. I don't remember having this issue when using an older version of this software under a trial license.

Please fix.
Title: Re: Slow!
Post by: Dmitry Vergeles on January 23, 2009, 05:37:06 AM
Hello JMorelo and freshbits,

Thanks for feedback, we have managed to replicale and even to localize the problem.
It does not happen if reject index using.

So we estimate the bug to be fixed shortly.
Title: Re: Slow!
Post by: Dmitry Vergeles on January 23, 2009, 06:56:07 PM
the bug has been fixed

please try  ver. 2.1.901.23, 2009 Jan 23
http://www.solveigmm.com/?Downloads#VideoSplitter

JMorelo and freshbits, please let me know if you are owners of the Splitter. if not we will give you significant discount
Title: Re: Slow!
Post by: Dmitry Vergeles on January 24, 2009, 07:54:36 AM
JMorelo and freshbits, please let me know if you are owners of the Splitter. if not we will give you significant discount

We found you are :) Thank you very much for your help. Don't hesitate to post any problem you enounter usign the Splitter.
Title: Re: Slow!
Post by: freshbits on February 08, 2009, 04:45:23 PM
Sorry, but I have been off the forum for a few weeks, and I hadn't noticed the update until today.

In the meantime, I have been splitting avi/MPEG4 files. MM Video Splitter is much slicker and easier than AVI Trimmer. It takes only 5-10 minutes to go through, mark and remove the commercials from an hour or two of TV recording, especially when the splitter program is enlarged to full screen. AVI Trimmer can do the job, but Splitrter is so much more of a pleasure to use.

I will install the update later and try again with some MPG files.

-freshbits
Title: Re: Slow!
Post by: Dmitry Vergeles on February 08, 2009, 05:35:21 PM
Hi freshbits,

Thanks for your opinion, really we more aply our effort to the Splitter, but the freeware AVI trimmer is also developing, but not so fast.
So pleas let us know if the MPG problem is settled on your side, it defenetely has to be.
Title: Re: Slow!
Post by: freshbits on February 09, 2009, 02:08:32 AM
Good news: The bug(s) where Splitter would fail to complete the tasks, or would freeze, appear to be fixed (one test). But it is still very slow.

I record copies of certain American (NTSC) TV shows and send them to a friend who is on a long trip to Uruguay. I record them in MPEG-2 PS with a Hauppage tuner. But I want them smaller, with commercials removed. I have been converting them to MPEG-4 AVI first, then using Splitter to remove the commercials.

This morning, it took about 10 minutes to find and mark the 14 commercial breaks in the AVI conversion of a 90-minute TV program (3.5 GB). Then it took only 1 MINUTE to save the trimmed AVI file.

As an experiment I used the new Splitter mark the same commercials in the original MPG file. It took 133 minutes to save the trimmed file. Splitter completed the job, but took a very long time to save. I don't know if this is necessary because it is MPG. I worry that some kind of transcoding is going on. I hope not.

I will continue to convert to MPEG-4 AVI first, then trim, for my friend's regular TV shows. I only need to split the orginal MPG files in cases where I want to archive the material without conversion. Splitter works, and I suppose I can live with the slowness if I only do this occasionally. But I hope some day you will find out why it takes so long.

Thank you for the update. I will be happy to take advantage of the new features.
Title: Re: Slow!
Post by: Dmitry Vergeles on February 09, 2009, 05:10:35 AM
Hi freshbits ,
Well the slowness is quite queer.
Could you upload us one of your original file to replicate the issue?

Ftp details in PM.
Title: Re: Slow!
Post by: freshbits on February 09, 2009, 11:47:01 PM
Another test:

I started with a two-hour MPG capture of the Grammy Wards last night. It took about 40 minutes to convert to MPEG-4/AVI, 10 minutes to slice-and-dice the AVI, and about 1 minute to save the commecial-free hour.

But when I split it up in the origfinal MPG form, it took 3 hours and 20 minutes to save 61 minutes of video. On a 3GHZ dual core AMD. Strange!

The original file was 4.5 GB. The output file was 2.2 GB. I have Async-DSL and it would lie up my connection (350Kb/s upload) for at least a day to FTP it to you.

If you wish, I can send you a SAMPLE of the MPG that my Hauppage WinTV-HRV 1800 is producing, before editing or touching in any way. Maybe that would be useful to you to look at. How many minutes to you need? (5 minutes = 200 MB).
Title: Re: Slow!
Post by: Dmitry Vergeles on February 10, 2009, 04:16:41 AM
Hi Freshbits ,
I suppose 100MB would be quite enought.
Title: Re: Slow!
Post by: freshbits on February 11, 2009, 05:53:49 AM
I am now uploading a 2-minute clip (80,412,672 bytes). I made the file tonight. It is typical output from the Hauppage and has not been modified in any way. It will take at least another 2 hours for the upload to complete.
Title: Re: Slow!
Post by: Dmitry Vergeles on February 11, 2009, 06:24:46 AM
ok, thanks a lot.
We will let you know the results as soon as they arise.
Title: Re: Slow!
Post by: Dmitry Vergeles on February 11, 2009, 02:12:49 PM
well the problem is not replicated as well so far.

e.g I just try to save a fragment  from 00:00:25:93 to   00:01:38:35 keep.
It is trimmed fairy fast. Could you try to trim same fragment from file freshbits-sample-2-min.mpg and let me know if it will process slow.

Also please enumerate your CP configuration. Where your files are located, may me it is a removable HDD or something like that?
Title: Re: Slow!
Post by: freshbits on February 11, 2009, 02:42:56 PM
It did not take long for me either.

I think the problem is when editing large files - one or two hours - with large indexes.

My editing folder is c:\MyVideos

The computer is an AMD Athlon 64 X2 Dual Core Processor 6000+ 3.01 GHz, 3.0 GB RAM

OS Name   Microsoft Windows XP Professional
Version   5.1.2600 Service Pack 3 Build 2600
OS Manufacturer   Microsoft Corporation
System Name   BLACKBEAR
System Manufacturer   HP-Pavilion
System Model   GN551AA-ABA m8200n
System Type   X86-based PC
Processor   x86 Family 15 Model 67 Stepping 3 AuthenticAMD ~3013 Mhz
BIOS Version/Date   Phoenix Technologies, LTD 5.16, 8/14/2007
SMBIOS Version   2.4
Windows Directory   C:\WINDOWS
System Directory   C:\WINDOWS\system32
Boot Device   \Device\HarddiskVolume1
Locale   United States
Hardware Abstraction Layer   Version = "5.1.2600.5512 (xpsp.080413-2111)"
User Name   BLACKBEAR\Michael
Time Zone   Central Standard Time
Total Physical Memory   3,072.00 MB
Available Physical Memory   2.21 GB
Total Virtual Memory   2.00 GB
Available Virtual Memory   1.96 GB
Page File Space   4.84 GB
Page File   C:\pagefile.sys

Title: Re: Slow!
Post by: Dmitry Vergeles on February 11, 2009, 06:19:48 PM
that is quier as the file length should no influence to the trimming process speed.
Anyway we we walked half of a way :)

Can you make some more tests?
Please prepare 100 mb 300 mb 900 mb, 2GB files and try to trim them.
let us know which of them will be edited slow.
Thnk you for your help, we appretiate that!
Title: Re: Slow!
Post by: freshbits on February 11, 2009, 07:01:49 PM
I made different tests, based on my own guess.

First, I made a 1-hour clip (2.4 GB). (This time I made it CBR, not VBR, but I don't think that is the problem.)

I cut three commercials out, and saved the media file. It was taking "forever," so I cancelled.

I reopened the file, using the same index file. I made NO cuts, just saved the media file. It took "forever."

I reopened the file, but forced Splitter to re-index. I made NO cuts and saved the media file. Again, "forever."

I then deleted the index file and reopened the MPEG. As it started to re-index, I cancelled. The index file disappeared. THEN I saved the media file (NO cuts).

This time it only took only 3 minutes to save all 2.4 GB!

I think, therefore, that the slowness is related to the index.

Another thing: Scanning through the file (right-arrow key) takes longer and longer - slows down - as you go further along in the video. Perhaps there's a memory leak -- or possibly the algorithm for scanning starts at the beginning every time.

I think there's a problem with the index.
Title: Re: Slow!
Post by: freshbits on February 11, 2009, 07:16:40 PM
And one more test:

I cancelled so that there would be NO index. I CUT three sections. I saved the media file. Again, it only took 3 minutes.

One more interesting thing: The resulting file is LARGER (2,755,253 KB) than the original (2,343,336 KB). My video player says it is 1:14 long (instead of 1:00).
Title: Re: Slow!
Post by: Dmitry Vergeles on February 12, 2009, 07:11:25 PM
Hi freshbits,
Thank you for info. Unfurtunately we have not managed to replicate the bug so far, but will try to.
Thanks for the help!
Title: Re: Slow!
Post by: freshbits on February 14, 2009, 12:08:36 AM
As I said above, I think the slowness bug is related to use of the index file. When I decline to use an index, the "Save Media File" command works quite fast.

BUT there is a different bug when the index file is not used. Last night I started with a 30-minute MPG video. I marked about 4 sections of commercials (maybe 10 minutes) to be removed. I saved the Media file. It grew from 30 to 36 minutes. None of the commercials was removed. One six-minute section (with both keep and throw away parts) was repeated.

Title: Re: Slow!
Post by: Odyssey on July 26, 2009, 08:46:00 PM
Any update on this?  I'm currently splitting a 500Mb chunk out of a 1.5Gb MPG2 file (using 2.2.905.18), and although it seems to be working, it is very slow, and has taken over an hour so far to get to ~75%.

Following on from the guess about it being an issue with large indexes, I can upload the generated index somewhere if that would help?
Title: Re: Slow!
Post by: Dmitry Vergeles on July 28, 2009, 09:57:07 AM
Hello Odyssey,

The only way to fix the problem is to replicate it with "problem" file. If you upload us such a file it would be very helpfull. PLease let me know if you can do that and I'mm send you to PM ftp details.
Title: Re: Slow!
Post by: mikek on October 29, 2010, 05:33:31 PM
Splitting is very slow for me as well (> 1 hour, removing 10 mins at the beginning and 5 mins at the end of a 50 min recording, on a i7 920, 6GB RAM, RAID1, Windows 7 64bit).

My recordings are .ts, MPEG-2 straight from DVBViewer.
Title: Re: Slow!
Post by: Stanislav Mikhailenko on October 29, 2010, 06:54:55 PM
Splitting is very slow for me as well (> 1 hour, removing 10 mins at the beginning and 5 mins at the end of a 50 min recording, on a i7 920, 6GB RAM, RAID1, Windows 7 64bit).

My recordings are .ts, MPEG-2 straight from DVBViewer.
Have you tried recent Video Splitter 2.3 beta (http://solveigmm.com/files/SolveigMM_Video_Splitter_2_3_beta.zip). This should solve the problem.
Title: Re: Slow!
Post by: Moose on January 25, 2011, 09:12:59 AM
Splitting is very slow for me as well (> 1 hour, removing 10 mins at the beginning and 5 mins at the end of a 50 min recording, on a i7 920, 6GB RAM, RAID1, Windows 7 64bit).

My recordings are .ts, MPEG-2 straight from DVBViewer.
Have you tried recent Video Splitter 2.3 beta (http://solveigmm.com/files/SolveigMM_Video_Splitter_2_3_beta.zip). This should solve the problem.

Yes, I agree.  :) 

The new versions are very fast.  I'm editing large-ish (1+ GB) videos using a laptop (Dell Inspiron 1525, 3 GB, Vista) and this machine is nowhere near as powerful as your machine, and SolveigMM Video Splitter 2.2 and 2.3 is really fast.

Moose