Fix gap between 2 clips of same movie

Dan H wrote on 11/14/2010, 5:33 PM
I made a video for a friend using my sony hdr-sr11. Aparently the camera breaks videos up into 15 minute clips. When I add them together (using sony vegas movie studio hd platinum 10) i get a quick gap between them. Is there any way to fix this. It was acutally a video of their wedding and the gap is right in the middle of their vows, is there a way to make it un noticable ??? Thanks.

Comments

drw wrote on 11/14/2010, 6:16 PM
Some camera formats create clips of a duration that isn't an integer number of frames, so when you look at it in the timeline you'll see a small gap because the timeline wants everything to be aligned to a frame boundary. The next clip in the sequence is aligned to the next frame boundary, thus the short gap. I'm guessing this is what you mean by 'quick' gap.

I've always caught this before rendering, so I was able to shorten the odd length clip back to the nearest frame boundary, and then the next clip transitions without any gap.

If you've already rendered you'll have to bring it back into the timeline and slice it so you can extract the gap portion and realign the remaining two clips. You may still see a little stutter in the video though depending on the motion in the scene.
Dan H wrote on 11/14/2010, 6:49 PM
Sorry I am very new to this video editing stuff. I have the video that isn't rendered yet. My problem is i dragged the first clip onto the timline, then put the next clip. Even though I did not create a pause in the video when recordeing it, it seems like the video on the computer "skips" or cuts out for a second between those two clips and you lose a word of 2 of what is being said. Is there a way to merge these clips that would eliminate that, or is it just how the camera made them and there is nothing i can do about it.
TOG62 wrote on 11/15/2010, 12:13 AM
This is a problem inherent in cameras that record to a hard drive or sd card. The video is split during recording because all these systems use FAT32 format on media and FAT32 has a 4GB file size limit. Unfortunately, at least in my experience, you do get a slight discontinuity, especially in sound, between clips.

I quite often record stage plays where there are long, continuous scenes. The best work-around I have found is to lower the bitrate on the camera to give about 40 mins of continuous recording and stop the camera wherever there is a break in the action, e.g. scene break.

It's a very annoying shortcoming but one, I suspect, that affects only a small proportion of users. If only there would use NTFS the problem would go away. I expect there is a copyright problem in doing so.
dalemccl wrote on 11/15/2010, 9:59 AM
Using the Sony Picture Motion Browser software that came with the SR-11 to copy the video clips from the SR-11 to your hard drive will eliminate the gaps. The software automatically combines any clips that were broken up because of the file size limit.

I don't recall whether the software will let you open and combine clips that are already on your hard drive, but if you no longer have the clips on the SR-11, it might be worth trying.
jetdv wrote on 11/15/2010, 10:51 AM
This will work - go to a DOS prompt, move to that folder, and then do the following:

copy /b segment1.ext + segment2.ext + segment3.ext completevideo.ext

This will combine all the segments into a single file and eliminate the small gap Vegas sees when you go between segments.
TOG62 wrote on 11/16/2010, 12:58 AM
Ah, the old DOS days - long forgotten (at least by me). Looked a great tip, so well worth giving it a try. Unfortunately, in my case (JVC Everio HD camcorder) it did not produce the desired result. The files were joined OK but the second segment had a lip synch problem. I was able to get a better result by slightly overlapping the clips on the timeline.

Perhaps the technique works better on files from other camcorders.
richard-amirault wrote on 11/16/2010, 5:35 AM
Why would anyone think that joining the files would work?

The OP said that there were words missing. LIkely from the time needed to finish writing the file and start a new file. Joining the files will not restore the missing parts.
jetdv wrote on 11/16/2010, 8:38 AM
Brighterside, I have clips from a panasonic camera that are multiple m2t files from a single run. When I drop those individual files on the timeline, there is a slight gap in the audio (the video plays fine) between the clips. After combining them like I described, everything plays straight through with NO drops in the audio.

The same thing happens to me when importing a DVD using File - Import - DVD Camcorder Disc. When there's multiple files, I get a slight gap in the audio. After combining them as described, there is no gap in the audio.

So, it has worked fine in my situations to restore the "missing" audio.
Chienworks wrote on 11/16/2010, 12:37 PM
I just tried the experiment with my JVC Everio HD. I recorded about 50 minutes of constant audio and a timecode display. This resulted in two 4GB files and one 1GB file. Dumping them on the timeline as-is the first two clips ended in about half a second of silence. There was also one frame's worth of time completely missing at the end of the files. I then combined the files with the copy /b command and tried the combined clip, lining it up with the individual clips. The combined clip was perfect, no gap, no silence, no lost frames.

So, copy /b sure seems to work with this Everio's files.

I think the success of this method depends on how the camcorder switches to the new file. If it merely stops writing one file and begins writing the second then appending them together should work. If on the other hand the camcorder closes a file, then starts up a new recording with new headers in the next file, then there will be a glitch when they are stitched.
TOG62 wrote on 11/16/2010, 2:19 PM
Hi Kelly.

As a matter of interest, does your Everio record in either MPEG or AVCHD and which did you use for the experiment? I'm wondering if MPEG works better with this method, as I used AVCHD.

Mike
Chienworks wrote on 11/16/2010, 2:23 PM
Mike, as far as i know, only AVCHD. If there's a way to switch it, it must be buried in some menu i've never seen yet.
TOG62 wrote on 11/16/2010, 2:27 PM
OK, thanks. Mine is a JVC Everio GZ-HD30 and can record in either mode. It was a particular reason that I bought it, as some (all?) software finds MPEG much easier to handle, but AVCHD gives a better file size to quality ratio.
Chienworks wrote on 11/16/2010, 6:09 PM
Mine's the GZ-HM300BU.

It's most outstanding feature is that it survived being dunked in a lake with no ill effects.
Loren wrote on 11/17/2010, 8:35 PM
Have you tried the Auto Ripple: place your curser over the Menu until you arrive at Auto Ripple.

Windows Live Movie Maker can also join, but only encodes WMV videos.

I use AnyVideoConvertor to convert to mpegII and edit with VMS10
DrDale wrote on 11/21/2010, 11:45 AM
I have had this problem for a long time. In Studio9 "quantize to frames" seemed to fix it but nothing seemed to work in Studio10.
I have fixed the problem by fading the clips. Find the fade preferences and set the fade to 0.03 seconds which is one frame then it will fade that partial frame and you never see the dark flash. The only other way is to zoom in on every clip and cut that last partial frame from each clip then they will snap together and not have those little blips between clips.
Dale
jkeith wrote on 3/25/2011, 7:52 AM
I also havd the hdr-sr11, and discovered the same issue (I record concerts). However, when let the Sony supplied-with camera PMB utiltiy extract my video, it patches it together correctly. I just extracted a continuous 1.5 hour clip, and PMB wrote one large file with no gaps or skips.
stevecrye wrote on 3/18/2013, 4:18 PM
@jetdv;

The copy /b technique just worked perfectly with two clips (1st 4GB, 2nd 2GB) from my Panasonic GH3!

I am sooo happy about this. Even though the audio was not critical - I was using the GH3 as a second cam in a symphony shoot, with the production audio recorded on my trusty Sony HDR-CX550V, I had been fretting about the "gap" problem. When I dragged the separate clips into the timeline, there was no video gap, but there was about a 1/4 sec audio dropout - HUGE when dealing with classical music! The copy-joined clip is perfect, no dropout.

(BTW, I use Sony Vegas 9, 10, 11 and now 12)

I have been spoiled by the Sony PMB utility that imports the recordings directly from Sony cams, and seamlessly joins the multiple segments. Sony PMB is a real value-add for Sony camera, great little utility, can also get super-high res frame grabs and do lossless trimming.

Thanks again, jetdv! You saved my bacon.

Steve

V20 build 411 Windows 11 22H3 on ASUS ProArt Z790 Creator WiFi, i9-14900O with 64 GB G.Skill DDR5 XMP. On board graphics is Intel UHD 770, discrete graphics ASUS AMD Dual Radeon RX 7600 XT OC 16GB.  Boot drive Seagate IronWolf 110 980GB, Vegas Project drive Samsung 870 EVO 4TB, Vegas Temp drive Seagate FireCuda 2TB Solid State Hybrid Drive Performance SSHD .
Cameras: Various GoPro, Panasonic GH6 with an assortment of Panasonic Leica lenses.

jetdv wrote on 3/19/2013, 2:13 PM
Glad I could help.
Baronet wrote on 11/23/2013, 5:39 PM
Jetdv,

Thank you for your solution, it worked perfectly! Split .MTS files from an HDR-SR11 were merged very effectively and it got rid of the gaps. Here is what my cmd prompt command looked like:

c:\Temp>copy /b 00280.mts + 00281.mts + 00282.mts + 00283.mts + 00284.mts mergedfile01.mts

For those who might feel nothing is happening after you press "Enter", it needs to process the footage and it take a little while.

Regards,

Chienworks wrote on 11/23/2013, 7:10 PM
Technically it's not processing. It's just copying. But they're huge files, so it should be expected that the copy takes a while. Think how long it took to copy the files from the camcorder's memory card over to the hard drive; this is pretty much the same amount of time.
Dave-Roberts wrote on 11/28/2022, 10:51 AM

A long time ago Jetdv gave us this a solution: copy /b segment1.ext + segment2.ext + segment3.ext completevideo.ext

12 years later I came across this issue when using Panasonic camera, and been puzzling me for months but the above works like a treat!! Lifesaver, thank you if you ever read this.

jetdv wrote on 11/28/2022, 1:45 PM

@Dave-Roberts, and we still use this technique every week at church.

3POINT wrote on 11/28/2022, 1:59 PM

A long time ago Jetdv gave us this a solution: copy /b segment1.ext + segment2.ext + segment3.ext completevideo.ext

12 years later I came across this issue when using Panasonic camera, and been puzzling me for months but the above works like a treat!! Lifesaver, thank you if you ever read this.

Nowadays you could also use a tool like Shutter-encoder, which can merge lossless lots of video-formats without typing codes, just drag and drop the files into Shutter-encoder, select "merge" and click start function.

Ecquillii wrote on 11/30/2022, 9:29 AM

I just tried the DOS Prompt instructions, in Windows 10, on multiple video clips in MP4 format (not MTS), from a friend's Panasonic HC-V785, and it generated a resulting file of the correct size (the size of all the segments added together) but it only plays the first clip.

Does anyone one have a fix for this?

I am able to join all the files in VideoReDo and play the resulting file back correctly, so I have a workaround, but I would like to give my friend the simple DOS instructions if they can work for MP4 files. (Or if not, I'll tell him about 3POINT's Shutter-encoder solution.)

Desktop:ASUS M32CD

Version of Vegas: VEGAS Pro Version 20.0 (Build 370)
Windows Version: Windows 10 Home (x64) Version 21H2 (build 19044.2846)
Cameras: Canon T2i (MOV), Sony HDR-CX405 (MP4), Lumia 950XL, Samsung A8, Panasonic HC-V785 (MP4)
Delivery Destination: YouTube, USB Drive, DVD/BD

Processor: 3.40 gigahertz Intel Core i7-6700
RAM: 16 Gigabytes
Graphics Card 1: AMD Radeon R9 370; Driver Version: 15.200.1065.0
Graphics Card 2: Intel HD Graphics 530; Driver Version: 31.0.101.2111
GPU acceleration of video processing: Optimal - AMD Radeon R9 370
Enable Hardware Decoding for supported formats: 'Enable legacy AVC' is off; 'Enable legacy HEVC' is on
Hardware Decoder to Use: Auto (Off)