Audio Speed / Time-lapse seems buggy

Moderator: Ken Berry

Post Reply
Sarosh
Posts: 5
Joined: Wed Aug 29, 2012 10:32 am
operating_system: Windows 7 Ultimate
System_Drive: C
32bit or 64bit: 64 Bit
processor: i7-2670QM
ram: 12GB
Hard_Drive_Capacity: 690 GB

Audio Speed / Time-lapse seems buggy

Post by Sarosh »

Hello folks,

So here is my situation: I have a video recording of an event with not so good audio, but also a separate high quality audio recording. The problem is that the audio recordign speed is not the perfect match to the video recording, and when I put them in overlap, audio runs about 2-3 seconds quicker than the video by the end; seems real bad.

the obvious solution is to adjust the speed of the audio to match the length of the video; sounds easy.

One small problem is that the audio recording and the video recording were not perfectly synced, so the audio has some superfluous part at the end, so all in all the situation is as below:

Video track length: 1:57:16

Audio track length 2:14:20 with a lot of wasted part at the end

Current length of the Desirable Audio track: 1:55:15; this is the part which should in fact finish at 1:57:16 to match the video.

Below is what I did:

1- Clipped the audio at 1:55:15, Let us call the first part of the audio (the desirable one) Audio A, and the remaining part, Audio B
2- Deleted Audio B from the audio track
3- Pressed shift and dragged Audio to match the length of the video hoping that it will speed the audio track perfectly to cover the 2 seconds gap
4- Played the audio clip to see if it worked; Result: weird. Instead of keeping the track contents as it is and only changing the speed, it somehow resurrected some contents from the Audio B. I thought I had deleted that :? . So now it plays the same length as the video, but with added audio contents at the end, so the problem remains where it was.
5- Pressed undo, to instead try the Speed / time-lapse dialog on Audio A. Right clicked audio A, clicked on Speed / Time-lapse and entered the time for which it should play directly.
6- played the audio clip to see if it worked; Result: same as 4.
7- Pressed undo again, and tried reducing the speed this time instead of entering the exact time manually. Even 99% stretched the video way beyond the length of the video (as I expected) but strangely enough the contents from the deleted Audio B are still appended at the end.
8- This time tried to shrink the stretched audio to the length of the video by using Shift+drag. And it works perfectly for the stretched clip, but that had the audio contents from Audio B anyway. So the result is exactly the same as 4 & 6 :( .
9- Trying to delete the unwanted audio bits at the end of Audio A from Audio B, and then stretching the Audio A to the right length actually reduces the Audio A further down, deleting some part of the wanted audio too :S ... thus just turning the problem upside down ... weird really.
10- Did several other experiments. Result: lack of sleep, headache, some frustration and a long day ahead :shock:

can anyone help me please in either achieving what I want to do as explained above, or at least showing how I can ensure that the deleted part of the audio is not ghosting around like that :S

I am using Corel videoStudio X5 Pro with Service pack 1.

Thanks much in advance.

Kind regards,

Sarosh
Last edited by Sarosh on Wed Aug 29, 2012 3:16 pm, edited 2 times in total.
BrianCee
Posts: 5487
Joined: Sat Jan 21, 2012 1:04 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 8GB
Hard_Drive_Capacity: 4TB
Monitor/Display Make & Model: HP
Corel programs: VS X4,X5,X6,X7,X8, X9, X10, 2018 , 2019
Location: London England UK

Re: Audio Speed / Time-lapse seems buggy

Post by BrianCee »

In your situation the next thing I would be doing is deleting all of the extra audio track from VideoStudio - then using an external sound editor - such as the free audacity programme available from :- http://audacity.sourceforge.net/ to trim the sound file to the required length - then make a new sound file and import the new file now at the correct length into VideoStudio.
Sarosh
Posts: 5
Joined: Wed Aug 29, 2012 10:32 am
operating_system: Windows 7 Ultimate
System_Drive: C
32bit or 64bit: 64 Bit
processor: i7-2670QM
ram: 12GB
Hard_Drive_Capacity: 690 GB

Re: Audio Speed / Time-lapse seems buggy

Post by Sarosh »

BrianCee wrote:In your situation the next thing I would be doing is deleting all of the extra audio track from VideoStudio - then using an external sound editor - such as the free audacity programme available from :- http://audacity.sourceforge.net/ to trim the sound file to the required length - then make a new sound file and import the new file now at the correct length into VideoStudio.
So the reported situation is actually a sticky bug in VideoStudio? :( .... I was hoping that either I missed something or there was a workaround.
BrianCee
Posts: 5487
Joined: Sat Jan 21, 2012 1:04 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 8GB
Hard_Drive_Capacity: 4TB
Monitor/Display Make & Model: HP
Corel programs: VS X4,X5,X6,X7,X8, X9, X10, 2018 , 2019
Location: London England UK

Re: Audio Speed / Time-lapse seems buggy

Post by BrianCee »

NO - I did not say or imply that there is a bug in VideoStudio - I do not remember the error you are having ever being reported before.

And what I offered you was a workaround.
Sarosh
Posts: 5
Joined: Wed Aug 29, 2012 10:32 am
operating_system: Windows 7 Ultimate
System_Drive: C
32bit or 64bit: 64 Bit
processor: i7-2670QM
ram: 12GB
Hard_Drive_Capacity: 690 GB

Re: Audio Speed / Time-lapse seems buggy

Post by Sarosh »

BrianCee wrote:NO - I did not say or imply that there is a bug in VideoStudio - I do not remember the error you are having ever being reported before.

And what I offered you was a workaround.
Hehe ... So the workaround is to use another product :roll: ... not sure how I missed that one .... thanks much for the suggestion though; i hope Audacity will do the trick for me.

Is there a way to officially report a bug in VideoStudio?

Kind regards,

Sarosh
User avatar
lata
Site Admin
Posts: 14280
Joined: Thu Jan 19, 2012 6:21 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK COMPUTER INC A88XM-A USB 3 1 Rev X 0x
processor: 4 10 gigahertz AMD A10-7890K Radeon R7
ram: 16 gb
Video Card: on board
sound_card: Realtek High Definition Audio
Hard_Drive_Capacity: 500 SSD
Monitor/Display Make & Model: LG W2242 [Monitor]
Corel programs: CVSX, 19, 20, 22 PSP2023, PI, MS3D
Location: UK
Contact:

Re: Audio Speed / Time-lapse seems buggy

Post by lata »

Hi

I must admit I did not think modifying the playback speed would introduce the frames you had just removed, seems a little strange

Try this....
Add the audio clip to a new project, trim the ends
Share Create Sound file will create a new audio.
Add that to the video project.

Post Edited
I have just run a quick test and changing the playback speed did not re-introduce the removed frames. Maybe i am pressing different buttons?
If you switch to Sound Mixer a view the wave form will be visible.

When you cut the end of the clip, do not delete but drag to the right, you can now see both clips.
If you simply drag the yellow trim handle you will add frames. repairing the cut........
If you hold Shift and drag you will change the playback speed.

Either way you will be able to view the wave form to identify the frames being re-introduced or not?

Notice the white bar below the preview screen shows the clip segments
New forum for PSP and VS users, register if you need help

https://psp-vs-forums.freeforums.net
Sarosh
Posts: 5
Joined: Wed Aug 29, 2012 10:32 am
operating_system: Windows 7 Ultimate
System_Drive: C
32bit or 64bit: 64 Bit
processor: i7-2670QM
ram: 12GB
Hard_Drive_Capacity: 690 GB

Re: Audio Speed / Time-lapse seems buggy

Post by Sarosh »

lata wrote:Hi

I must admit I did not think modifying the playback speed would introduce the frames you had just removed, seems a little strange

Try this....
Add the audio clip to a new project, trim the ends
Share Create Sound file will create a new audio.
Add that to the video project.

Post Edited
I have just run a quick test and changing the playback speed did not re-introduce the removed frames.

<snip>

Hello lata,

I definitely do not expect this behaviour to be an intended one, nor a very stright-forward reproducible bug. I tried what you suggested, i.e. generating a new audio file with only the required audio clip, and then adding that to the video. Guess what happened when I tried to stretch the audio to match the length of the video (again by using all methods, shift-drag, speed/time-lapse etc.)? It truncated the contents of the audio clip this time :-D. Tried several things but there was just no way that it could speed the required audio contents correctly to remove the 2 seconds lag without adding or deleting something from the audio. It is as if the algorithms used are not mature enough to spread the small 2 seconds stretch across the almost 2 hours audio precisely, and ends up "rounding up or down" the content. Quite disappointing as I was expecting a much more sophisticated solution from Corel :( .

Failing to solve the issue within Corel VS, I tried Audacity as suggested by BrianCee, and it worked like a charm. It matched the audio length to the exact frame numbers as needed without changing the contents or quality whatsoever.

Thanks all for your help.

Kind regards,

Sarosh
User avatar
lata
Site Admin
Posts: 14280
Joined: Thu Jan 19, 2012 6:21 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK COMPUTER INC A88XM-A USB 3 1 Rev X 0x
processor: 4 10 gigahertz AMD A10-7890K Radeon R7
ram: 16 gb
Video Card: on board
sound_card: Realtek High Definition Audio
Hard_Drive_Capacity: 500 SSD
Monitor/Display Make & Model: LG W2242 [Monitor]
Corel programs: CVSX, 19, 20, 22 PSP2023, PI, MS3D
Location: UK
Contact:

Re: Audio Speed / Time-lapse seems buggy

Post by lata »

Hi

Very strange that I cannot replicate what you are experiencing.

Yes using another Audio Editor will create a new file, as you expect it to do.

Surprised that using VS to create a new sound file then stretching the frames did not work.
are you sure you followed the procedure below?

Add the audio clip to a new project, trim the ends
Share Create Sound file will create a new audio.
Add that to the video project.
Stretch the frames????????

I am using Windows XP
I will test this out on W7 just to see if I can replicate the problem.

By the way after using Audacity do you still have to stretch the clip to sync audio?
New forum for PSP and VS users, register if you need help

https://psp-vs-forums.freeforums.net
Sarosh
Posts: 5
Joined: Wed Aug 29, 2012 10:32 am
operating_system: Windows 7 Ultimate
System_Drive: C
32bit or 64bit: 64 Bit
processor: i7-2670QM
ram: 12GB
Hard_Drive_Capacity: 690 GB

Re: Audio Speed / Time-lapse seems buggy

Post by Sarosh »

The point is not about the new audio file Lata,

The actual problem was with the Corel VS stretching functionality no matter how I created the audio file (even generating a new clip from Audacity or any other program did the same, i.e. truncated the contents). I did not use audacity to only create a new audio file, but also to stretch the audio file, so it would be the same length as the video. In VS I simply imported the audio then and used it. Audacity's audio speed modification worked much more smoothly than Corel VS; probably they just have more sophisticated algorithms.

During your repro attempt, please try to stretch a long audio file (a couple of hours at least) by just a few seconds. My guess is, that is where the VS algorithms crumble down, failing to smoothly spread the 2 seconds over such a long track.

Kind regards,

Sarosh

PS. I did exactly the same as you described above, to generate a new independent Audio file from Corel VS. Stretching it resulted in the same issues as reported earlier.
User avatar
lata
Site Admin
Posts: 14280
Joined: Thu Jan 19, 2012 6:21 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK COMPUTER INC A88XM-A USB 3 1 Rev X 0x
processor: 4 10 gigahertz AMD A10-7890K Radeon R7
ram: 16 gb
Video Card: on board
sound_card: Realtek High Definition Audio
Hard_Drive_Capacity: 500 SSD
Monitor/Display Make & Model: LG W2242 [Monitor]
Corel programs: CVSX, 19, 20, 22 PSP2023, PI, MS3D
Location: UK
Contact:

Re: Audio Speed / Time-lapse seems buggy

Post by lata »

Hi Sarosh

Just tried using a 2 hour audio file, no problems. I cannot replicate your problem.

I cut/remove frames from the end
Time Stretch the first section, there are no new frames added as though from the deleted frames.

Have you considered applying Time Stretch to the full audio file, then there cannot be any resurrected frames magically applied to the end.
Once you have the two in sync, cut remove the unwanted frames from the end?

Does your Shift button work on the keyboard?
New forum for PSP and VS users, register if you need help

https://psp-vs-forums.freeforums.net
Post Reply