AVI to MP4 Audio Sync Issues

Moderator: Ken Berry

Post Reply
Iceblade
Posts: 11
Joined: Wed Aug 18, 2021 12:07 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel Core i7-8700K CPU 3700 MHz
ram: 16 GB
Hard_Drive_Capacity: 4 TB
Corel programs: Video Editor Ultimate 2021

AVI to MP4 Audio Sync Issues

Post by Iceblade »

I am working on a new pipeline for generating videos to avoid (what should be) unnecessary compression/rendering/encoding steps.

New Process and Issues
I'm starting with DVCPro Sony AVI files (Analog hi8 -> Digital AVI) already transcribed. I have imported multiple AVIs into a VS 2021 project and am creating a single MP4 file as output.

In the project, the video and audio play without any issue (ignoring the sporadic segments of degradation of the original tape footage). The audio seems in-sync with the video.

After exporting as a single mp4 video file, the audio is seconds ahead of the video. My initial thought: in the original video, the microphone cut out for multiple segments of video, so I figured that compression to shortened the audio track as a result. A second project, however, also had this sync issue even though microphone recorded without issue for all segments in the video.

Of course, VS21 wants to produce variable data rate files, so the output mp4 file is both out of audio sync and hard to play continuous. But even after using Handbrake to a re-encode to a constant data rate, the audio is still out of sync.

Old Method which worked without issue
When working on a previous project, I used video files that were already converted to MP4 (constant data rate) by Handbrake from the original AVIs. I then rendered them to a single (variable data rate) MP4 with VS and re-encoded back to constant frame rate. (And used Drax to add chapters in the metadata of the mp4 files).

As you can see, that is way too many steps plus a significant quantity of time and space is required with such a process.

Questions
Is there a way to force VS to produce constant data rate MP4s?

Do you have any solutions for avoiding audio sync problems with the AVI->MP4 compression?

MediaInfo with New Pipeline
Original AVI

Code: Select all

Format                                   : AVI
Format/Info                              : Audio Video Interleave
Commercial name                          : DVCPRO
Format profile                           : OpenDML
File size                                : 20.8 GiB
Duration                                 : 1 h 40 min
Overall bit rate mode                    : Constant
Overall bit rate                         : 29.8 Mb/s

Video
ID                                       : 0
Format                                   : DV
Commercial name                          : DVCPRO
Codec ID                                 : dvsd
Codec ID/Hint                            : Sony
Duration                                 : 1 h 40 min
Bit rate mode                            : Constant
Bit rate                                 : 24.4 Mb/s
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Constant
Frame rate                               : 29.970 (30000/1001) FPS
Original frame rate                      : 29.970 (29970/1000) FPS
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:1:1
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Bottom Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 2.357
Stream size                              : 20.1 GiB (97%)

Audio
ID                                       : 1
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : 1
Duration                                 : 1 h 40 min
Bit rate mode                            : Constant
Bit rate                                 : 1 024 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 32.0 kHz
Bit depth                                : 16 bits
Stream size                              : 733 MiB (3%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 33  ms (1.00 video frame)
VS Produced MP4

Code: Select all

Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (mp41/mp42)
File size                                : 6.50 GiB
Duration                                 : 3 h 52 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 995 kb/s
Encoded date                             : UTC 2021-08-20 03:57:15
Tagged date                              : UTC 2021-08-20 03:57:15

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L3
Format settings                          : 2 Ref Frames
Format settings, CABAC                   : No
Format settings, Reference frames        : 2 frames
Format settings, GOP                     : M=1, N=15
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 3 h 52 min
Source duration                          : 3 h 52 min
Bit rate mode                            : Variable
Bit rate                                 : 3 740 kb/s
Maximum bit rate                         : 4 000 kb/s
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 30.000 FPS
Minimum frame rate                       : 29.762 FPS
Maximum frame rate                       : 30.242 FPS
Original frame rate                      : 29.970 (30000/1001) FPS
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.361
Stream size                              : 6.08 GiB (94%)
Source stream size                       : 6.08 GiB (94%)
Language                                 : English
Encoded date                             : UTC 2021-08-20 03:57:15
Tagged date                              : UTC 2021-08-20 03:57:15
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 3 h 52 min
Bit rate mode                            : Constant
Bit rate                                 : 256 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Frame rate                               : 43.066 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 427 MiB (6%)
Language                                 : English
Encoded date                             : UTC 2021-08-20 03:57:15
Tagged date                              : UTC 2021-08-20 03:57:15
After Handbrake/Drax

Code: Select all

Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/iso2/avc1/mp41)
File size                                : 3.55 GiB
Duration                                 : 3 h 52 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 2 182 kb/s
Encoded date                             : UTC 2021-08-20 05:25:25
Tagged date                              : UTC 2021-08-20 22:24:17
Writing application                      : HandBrake 1.4.1 2021081500

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.1
Format settings                          : CABAC / 5 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 5 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 3 h 52 min
Bit rate                                 : 1 921 kb/s
Width                                    : 534 pixels
Height                                   : 478 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Constant
Frame rate                               : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.251
Stream size                              : 3.12 GiB (88%)
Writing library                          : x264 core 163 r3059 b684ebe0
Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=15 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=30 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=14000 / vbv_bufsize=14000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : UTC 2021-08-20 05:25:25
Tagged date                              : UTC 2021-08-20 05:25:25
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Menus                                    : 3
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 3 h 52 min
Source duration                          : 3 h 52 min
Bit rate mode                            : Variable
Bit rate                                 : 255 kb/s
Maximum bit rate                         : 376 kb/s / 255 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Frame rate                               : 43.066 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 424 MiB (12%)
Source stream size                       : 424 MiB (12%)
Title                                    : Stereo
Language                                 : English
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 2021-08-20 05:25:25
Tagged date                              : UTC 2021-08-20 05:25:25
mdhd_Duration                            : 13970495

Menu
ID                                       : 3
Codec ID                                 : text
Duration                                 : 3 h 52 min
Encoded date                             : UTC 2021-08-20 22:24:17
Tagged date                              : UTC 2021-08-20 22:24:17
Menu For                                 : 1
00:00:00.000                             : Jan-Feb 1992
00:10:38.000                             : Baseball Games
01:19:47.000                             : Easter 1992
01:29:22.000                             : Chris 12th Birthday
01:37:27.000                             : Summer 1992
01:53:01.000                             : Blue Angels 1992
02:18:05.000                             : Nov 1992
02:58:22.000                             : Thanksgiving 1992
03:06:13.000                             : Christmas 1992
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: AVI to MP4 Audio Sync Issues

Post by Ken Berry »

The problem seems to me NOT to be variable data (or bit) rate, but the variable frame rate used by the mp4. I am surprised, in fact, that VS produced that as VS usually has problems accepting video with a variable frame rate. I would have thought that in Share, you would be setting Properties with a fixed frame rate of 29.97 (or 30) frames per second. That should produce an mp4 with constant frame rate. And it is the frame rate which controls the audio sync, not the data rate.

But at least you are avoiding the other problem usually encountered with DV/AVI, namely that it uses Lower Frame First, where most modern formats use either Upper Frame First or Progressive (also called Frame Based). Setting your mp4 to use Progressive avoids that complication.
Ken Berry
Iceblade
Posts: 11
Joined: Wed Aug 18, 2021 12:07 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel Core i7-8700K CPU 3700 MHz
ram: 16 GB
Hard_Drive_Capacity: 4 TB
Corel programs: Video Editor Ultimate 2021

Re: AVI to MP4 Audio Sync Issues

Post by Iceblade »

Do you have any suggestions regarding the video type setting? Maybe that will have an effect on the frame rate.

M4V-SP
M4V-ASP
H.264-Baseline
H.264-Main
H.264-High

Or maybe I should use the project settings:

Code: Select all

MPEG Transport-Stream Files
24 bits, 720 x 480, 29.97 fps
Frame-based
(HDMV-NTSC),  16:9
H.264 Video
Video data rate: Variable (Max.  4000 kbps) 
Audio data rate: 256 kbps
Dolby Digital Audio, 48 KHz, 2/0(L,R)
For Reference: 1991 Project which worked
Output from VS (with Drax Chapters added)

Code: Select all

Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (mp41/mp42)
File size                                : 13.4 GiB
Duration                                 : 8 h 8 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 918 kb/s
Encoded date                             : UTC 2021-08-19 00:13:27
Tagged date                              : UTC 2021-08-19 02:04:17

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3
Format settings                          : CABAC / 2 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 2 frames
Format settings, GOP                     : M=3, N=15
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 8 h 8 min
Bit rate mode                            : Variable
Bit rate                                 : 3 654 kb/s
Maximum bit rate                         : 4 000 kb/s
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 29.762 FPS
Minimum frame rate                       : 29.297 FPS
Maximum frame rate                       : 30.242 FPS
Original frame rate                      : 29.970 (30000/1001) FPS
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.355
Stream size                              : 12.5 GiB (93%)
Language                                 : English
Encoded date                             : UTC 2021-08-19 00:13:27
Tagged date                              : UTC 2021-08-19 00:13:27
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Menus                                    : 3
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 8 h 5 min
Bit rate mode                            : Variable
Bit rate                                 : 256 kb/s
Maximum bit rate                         : 261 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Frame rate                               : 43.066 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 889 MiB (6%)
Language                                 : English
Encoded date                             : UTC 2021-08-19 00:13:27
Tagged date                              : UTC 2021-08-19 00:13:27

Menu
ID                                       : 3
Codec ID                                 : text
Duration                                 : 8 h 8 min
Encoded date                             : UTC 2021-08-19 02:04:17
Tagged date                              : UTC 2021-08-19 02:04:17
Menu For                                 : 1
00:00:00.000                             : Disney Day 8-26
01:33:01.012                             : Disney Day 8-27
02:47:05.004                             : Kennedy 8-28
03:45:16.029                             : Disney Day 8-29
05:15:03.014                             : Disney Day 8-30
06:10:28.026                             : October 1991
06:11:17.022                             : Christmas 1991
06:36:09.027                             : January 1992
06:37:39.001                             : Family, USA Baseball 1992
Final MP4

Code: Select all

Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/iso2/avc1/mp41)
File size                                : 8.41 GiB
Duration                                 : 8 h 5 min
Overall bit rate                         : 2 483 kb/s
Encoded date                             : UTC 2021-08-19 02:28:11
Tagged date                              : UTC 2021-08-19 02:28:11
Writing application                      : HandBrake 1.4.1 2021081500

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 8 h 5 min
Bit rate                                 : 2 221 kb/s
Width                                    : 602 pixels
Height                                   : 478 pixels
Display aspect ratio                     : 3:2
Frame rate mode                          : Constant
Frame rate                               : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.258
Stream size                              : 7.53 GiB (89%)
Writing library                          : x264 core 163 r3059 b684ebe0
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=15 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=30 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=14000 / vbv_bufsize=14000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : UTC 2021-08-19 02:28:11
Tagged date                              : UTC 2021-08-19 02:28:11
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Menus                                    : 3
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 8 h 5 min
Source duration                          : 8 h 5 min
Bit rate mode                            : Constant
Bit rate                                 : 256 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Frame rate                               : 43.066 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 889 MiB (10%)
Source stream size                       : 889 MiB (10%)
Title                                    : Stereo
Language                                 : English
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 2021-08-19 02:28:11
Tagged date                              : UTC 2021-08-19 02:28:11
Menus                                    : 3
mdhd_Duration                            : 29103056

Menu
ID                                       : 3
Codec ID                                 : text
Duration                                 : 8 h 5 min
Language                                 : English
Encoded date                             : UTC 2021-08-19 02:28:11
Tagged date                              : UTC 2021-08-19 02:28:11
Menu For                                 : 1,2
00:00:00.000                             : Disney Day 8-26
01:33:01.076                             : Disney Day 8-27
02:47:05.048                             : Kennedy 8-28
03:45:16.136                             : Disney Day 8-29
05:15:03.118                             : Disney Day 8-30
06:10:28.139                             : October 1991
06:11:17.088                             : Christmas 1991
06:36:09.079                             : January 1992
06:37:39.069                             : Family, USA Baseball 1992
Iceblade
Posts: 11
Joined: Wed Aug 18, 2021 12:07 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel Core i7-8700K CPU 3700 MHz
ram: 16 GB
Hard_Drive_Capacity: 4 TB
Corel programs: Video Editor Ultimate 2021

Re: AVI to MP4 Audio Sync Issues

Post by Iceblade »

So I tried it with the project settings as shown below:

Code: Select all

MPEG Transport-Stream Files
24 bits, 720 x 480, 29.97 fps
Frame-based
(HDMV-NTSC),  16:9
H.264 Video
Video data rate: Variable (Max.  4000 kbps) 
Audio data rate: 256 kbps
Dolby Digital Audio, 48 KHz, 2/0(L,R)
Video produced via Share on Computer is a m2t file (and a upd file). The m2t file does play correctly in VLC, which is interesting.

Code: Select all

Format                                   : BDAV
Format/Info                              : Blu-ray Video
File size                                : 6.85 GiB
Duration                                 : 3 h 52 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 4 212 kb/s
Maximum Overall bit rate                 : 5 326 kb/s
FileExtension_Invalid                    : m2ts mts ssif

Video
ID                                       : 4113 (0x1011)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.1
Format settings                          : CABAC / 2 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 2 frames
Format settings, GOP                     : M=3, N=15
Codec ID                                 : 27
Duration                                 : 3 h 52 min
Bit rate mode                            : Variable
Bit rate                                 : 3 780 kb/s
Maximum bit rate                         : 4 000 kb/s
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 29.970 (30000/1001) FPS
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.365
Stream size                              : 6.15 GiB (90%)
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : 129
Duration                                 : 3 h 52 min
Bit rate mode                            : Constant
Bit rate                                 : 256 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 426 MiB (6%)
Service kind                             : Complete Main
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: AVI to MP4 Audio Sync Issues

Post by Ken Berry »

And does the Final MP4 video still have the out of sync problem?
Ken Berry
Iceblade
Posts: 11
Joined: Wed Aug 18, 2021 12:07 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel Core i7-8700K CPU 3700 MHz
ram: 16 GB
Hard_Drive_Capacity: 4 TB
Corel programs: Video Editor Ultimate 2021

Re: AVI to MP4 Audio Sync Issues

Post by Iceblade »

Apparently not, very strange. Hopefully this method will work for me.
asik1
Posts: 3446
Joined: Thu Apr 17, 2014 6:07 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: H170M-E D3
processor: i5-6600
ram: 8gb
Video Card: GTX1050-2GB
Hard_Drive_Capacity: No hoarder
Monitor/Display Make & Model: 2K HP-27MQ
Corel programs: VS-X9.2, 2020, 2023
Location: Israel

Re: AVI to MP4 Audio Sync Issues

Post by asik1 »

Iceblade What's the point of 8 hours file vs shorter ones?
Panasonic X900m, VXF1
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: AVI to MP4 Audio Sync Issues

Post by lata »

As your original video appears to be bog standard DV.Avi when adding the first video to a new project should be prompted you to match the project settings. Yes to that.

After editing …….
1 / Share to DV.avi by using Same as First Video Clip or Same as Project settings, would retain the original quality as Dv.Avi as it is a lossless format, the audio should also be in sync.
2 / Using the video file created in 1 above Share to another format.
Mpeg2, which would have been used to burn a DVD, in days gone by, make sure the Field Order is retained as Lower Field. DV.avi and Mpeg2 go together quite well.
You could convert to Mpeg4, again making sure the frame order remains as Lower Field, you may / will have to create your own profile for that, as Ken says the program generally defaults to using Upper Field.
Also be aware that your original video is 4:3 aspect ratio
Your VS Produced MP4 details shows these being changed to 16:9

Converting to Progressive aka Frame Based is another option that may work for you.
I would expect the audio sync would be ok.

These are the details I see when using Dv.Avi, NTSC
Microsoft AVI files
24 bits, 720 x 480, 4:3, 29.97 fps
Lower Field First
DV Video Encoder -- type 1
DV Audio -- NTSC, 48.000 kHz, 16 Bit, Stereo
New forum for PSP and VS users, register if you need help

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