Editing MPEG, audio out of sync

Moderator: Ken Berry

Post Reply
TAMc
Posts: 44
Joined: Mon Apr 07, 2008 3:45 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: HP2B47[U3E1]
processor: Intel core i5 6400
ram: 8GB
Video Card: NVIDIA GeoForce GT730 [MSI]
Hard_Drive_Capacity: 5000GB
Monitor/Display Make & Model: Asus VE247H 24"
Corel programs: VideoStudio X9 Ultimate
Location: Worcester, UK

Editing MPEG, audio out of sync

Post by TAMc »

I've been wading through the 3042 search results from the above key words :), and hoping there might be a solution. I normally work in AVI but have an old family MPEG file which I'd like to reduce in length but it loses audio sync when imported into VideoStudio X9 Ult Pro. The problem doesn't arise with short clips. Interestingly, the video tutorial on importing in Corel's website demonstrates an MP4 file being imported & edited in the software so I'm guessing the problem here is about progressive loss through the extended time? I've tried rendering the file into AVI but that doesn't change the problem.
User avatar
Ron P.
Advisor
Posts: 12002
Joined: Tue May 10, 2005 12:45 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Hewlett-Packard 2AF3 1.0
processor: 3.40 gigahertz Intel Core i7-4770
ram: 16GB
Video Card: NVIDIA GeForce GTX 645
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 4TB
Monitor/Display Make & Model: 1-HP 27" IPS, 1-Sanyo 21" TV/Monitor
Corel programs: VS5,8.9,10-X5,PSP9-X8,CDGS-9,X4,Painter
Location: Kansas, USA

Re: Editing MPEG, audio out of sync

Post by Ron P. »

I haven't read about this OOS problem in quite some time, years in fact. I did do a search using the term "out of sync", and me being the author, which provided 94 results. Out of Sync. This was a problem when editing MPEG 2 video way back in the VS10,11, 12 era. It seems that those versions had a problem editing compressed video files. The current version should not have this problem, since it is designed to handle much more compressed video than MPEG-2. Whoa, ok I just re-read your post. You didn't specify what version of MPEG. So let's start at the beginning.

What are the properties of your video file? Right-click on it, copy and paste them to the forum.
What are your Project Properties ?
Since you're located in a PAL area, is this MPEG video file PAL or NTSC? They don't play well together. PAL video standard is 25fps, while NTSC is 29.97fps.

Back when this was a common issue, there were some third-party utilities we would recommend as a work around. I'm not sure if they currently exist though.
Ron Petersen, Web Board Administrator
TAMc
Posts: 44
Joined: Mon Apr 07, 2008 3:45 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: HP2B47[U3E1]
processor: Intel core i5 6400
ram: 8GB
Video Card: NVIDIA GeoForce GT730 [MSI]
Hard_Drive_Capacity: 5000GB
Monitor/Display Make & Model: Asus VE247H 24"
Corel programs: VideoStudio X9 Ultimate
Location: Worcester, UK

Re: Editing MPEG, audio out of sync

Post by TAMc »

Thanks so much, Ron, & good to hear from you. The system won't allow me to copy/paste the file's properties dialogue box but the general tab shows it as a 23.2GB MP4 video. On importing it into X9 the properties shown are:
Microsoft AVI files
24 bits, 720 x 576, 16:9, 25 fps
Lower Field First
DV Video Encoder -- type 1
DV Audio -- PAL, 32.000 kHz, 12 Bit, Stereo

I tried changing these to HDV/MPEG but the problem remains.
From the 2008 posts I followed a couple of links to other software but the pages are no longer available.

The MP4 file was created a few days ago, after re-linking an old .VSP edit to the nearest thing I have to original material, a series of MPEG clips made by my son from his original Digital 8 material which he's over-recorded!
User avatar
Ken Berry
Site Admin
Posts: 22481
Joined: Fri Dec 10, 2004 9:36 pm
operating_system: Windows 11
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Gigabyte B550M DS3H AC
processor: AMD Ryzen 9 5900X
ram: 32 GB DDR4
Video Card: AMD RX 6600 XT
Hard_Drive_Capacity: 1 TB SSD + 2 TB HDD
Monitor/Display Make & Model: Kogan 32" 4K 3840 x 2160
Corel programs: VS2022; PSP2023; DRAW2021; Painter 2022
Location: Levin, New Zealand

Re: Editing MPEG, audio out of sync

Post by Ken Berry »

You keep using the term "import" in relation to this video. What exactly are you doing. If the original video is mp4, why not just insert that from wherever it is stored into the VS timeline for editing (right click in the timeline or library window and click on "Insert Video".

It seems that by "importing" you are going something else to transform mp4 into DV/AVI.

I am also wondering about the mp4 part. If the original video came from an old Digital 8 camcorder, the video from it was much more likely to be mpeg-2 or if it were a Sony Digital 8 with Firewire, then possibly DV/AVI -- though I note you say the original Digital 8 tape has been over-recorded.

If in fact your relinking of the old VSP brought in mpeg-2 or DV/AVI files, then an added problem -- which might in itself explain the out of sync problem -- might be that these files would have been Lower Field First. If you then produced the mpeg-4 from them, I suspect you may have used default mpeg-4 properties, which use Upper Field First.

In other words, we need more information about the Properties of the relinked files *before* conversion to mpeg-4, plus the properties you used for that conversion to mp4.
Ken Berry
John-T-Smith
Posts: 52
Joined: Tue Sep 27, 2016 4:08 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Sabertooth
processor: Intel i7
ram: 32 Gig
Video Card: nVidia GTX760 2Gig
sound_card: Motherboard
Hard_Drive_Capacity: 1152 4SSD
Monitor/Display Make & Model: Samsung P2770
Corel programs: VSX9 (19.5.0.35)

Re: Editing MPEG, audio out of sync

Post by John-T-Smith »

Does your video use a constant frame rate, or a variable frame rate?

Exactly what is INSIDE the video you are editing?
Report back with the codec details of your file, use the programs below
Free programs to get file information for PC/Mac http://mediaarea.net/en/MediaInfo/Download you should VIEW IN TREE VIEW
Canon SX510 HS - MOV H.264 24bit color 1280x720 29.97 fps LPCM 48khz audio
All SSD - 256Gig Boot + 256Gig Temp + 512Gig Input + 128Gig for all Output
Grass Valley ADVC 110 via Firewire IEEE1394 cable to convert analog to digital
MrJohnny
Posts: 206
Joined: Fri Sep 30, 2016 8:48 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK COMPUTER INC. RAMPAGE V EXTREME
processor: 3.00 gigahertz Intel Core i7-5960X
ram: 32GB
Video Card: NVIDIA GeForce GTX 960
sound_card: onboard
Hard_Drive_Capacity: 8TB
Monitor/Display Make & Model: ASUS VH226
Corel programs: VS X5 Ult, VS X6 Ult, VS X9Ult,VS X10Ult

Re: Editing MPEG, audio out of sync

Post by MrJohnny »

Tam

1 What are the properties of the "old family MPEG" video file, as Ron P requested? Use the link John T gave.
2 Does the "old family MPEG" video/audio play in sync in an external program, eg Windows Media Player/VLC?
3 The short clips that play OK - are they cut from the "old family MPEG" file? If so, can you chop up the "old family MPEG" and use them in VS?
4 Can you separate the "old family MPEG" audio from the video using VS or VirtualDub (using FFMPEG plugin) or some other program. If yes - do the times given for video and audio match?

John
TAMc
Posts: 44
Joined: Mon Apr 07, 2008 3:45 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: HP2B47[U3E1]
processor: Intel core i5 6400
ram: 8GB
Video Card: NVIDIA GeoForce GT730 [MSI]
Hard_Drive_Capacity: 5000GB
Monitor/Display Make & Model: Asus VE247H 24"
Corel programs: VideoStudio X9 Ultimate
Location: Worcester, UK

Re: Editing MPEG, audio out of sync

Post by TAMc »

Really appreciate all your help with this, folks - thanks so much. Going away for a week or so and will catch up with this when back & time to explore further. Trevor M
TAMc
Posts: 44
Joined: Mon Apr 07, 2008 3:45 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: HP2B47[U3E1]
processor: Intel core i5 6400
ram: 8GB
Video Card: NVIDIA GeoForce GT730 [MSI]
Hard_Drive_Capacity: 5000GB
Monitor/Display Make & Model: Asus VE247H 24"
Corel programs: VideoStudio X9 Ultimate
Location: Worcester, UK

Re: Editing MPEG, audio out of sync

Post by TAMc »

Hi folks, & appreciate your patience. I've attached the MediaInfo report which will hopefully shed some light on this. The file plays correctly in Media Player; the problem arises when it's inserted into VS and edited. I'm now able to recreate 95%+ of the project by using the earlier several MPEG files, and these seem to be going ok, but for reasons I've not yet been able to discover there's a closing clip in the 'rogue' MP4 file not included in the earlier files which I'd really like to recover/retain. However, I realise this is a bit of a mess and might have to settle for what I can get, benefit from the learning, and move on.
I've also captured 4 screenshots of the MP4 file's Windows right-click properties which I'll endeavour to attach later if that's of any help, but these attachments aren't being accepted just now as they exceed the acceptable pixcel range.
Attachments
MediaInfoReport.txt
(3.38 KiB) Downloaded 152 times
MrJohnny
Posts: 206
Joined: Fri Sep 30, 2016 8:48 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUSTeK COMPUTER INC. RAMPAGE V EXTREME
processor: 3.00 gigahertz Intel Core i7-5960X
ram: 32GB
Video Card: NVIDIA GeForce GTX 960
sound_card: onboard
Hard_Drive_Capacity: 8TB
Monitor/Display Make & Model: ASUS VH226
Corel programs: VS X5 Ult, VS X6 Ult, VS X9Ult,VS X10Ult

Re: Editing MPEG, audio out of sync

Post by MrJohnny »

Trevor

Looks like the "old family MPEG" is a variable frame rate file (just)!
To resurrect the "rogue" file(s) try converting it to constant frame rate. The folks around here seem to recommend Handbrake, don't use it myself - I use FFMPEG/Winff, anyway looks like conversion one way or another. Good to know you have got most of the video you require.

John
TAMc
Posts: 44
Joined: Mon Apr 07, 2008 3:45 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: HP2B47[U3E1]
processor: Intel core i5 6400
ram: 8GB
Video Card: NVIDIA GeoForce GT730 [MSI]
Hard_Drive_Capacity: 5000GB
Monitor/Display Make & Model: Asus VE247H 24"
Corel programs: VideoStudio X9 Ultimate
Location: Worcester, UK

Re: Editing MPEG, audio out of sync

Post by TAMc »

Looks like you absolutely 'nailed it' John. thanks so much to you & others who helped along the way. Handbrake did the trick, allowing me to capture the final clip I needed & stitch it all together. I now have the outcome I'd hoped for but began to think not achievable.
Post Reply