#1  
09-16-2022, 08:45 PM
ThumperStrauss ThumperStrauss is offline
Premium Member
 
Join Date: May 2021
Location: Canada
Posts: 82
Thanked 6 Times in 5 Posts
I captured a VHS tape using my ATI 9600XT. The resulting AVI is in sync even after 2 hours, when I view it in my Windows 10 in MPC.

However, when I converted to mp4 (x264) with Selur Hybrid—as I've done many times before with other tapes—the resulting video gets further out of sync as it goes. The audio sampling rate of the raw capture and the mp4 are both 48000. I'm a bit stumped. What could be causing this? What setting should I zero in on?
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
09-17-2022, 06:24 AM
dpalomaki dpalomaki is offline
Free Member
 
Join Date: Feb 2014
Location: VA
Posts: 1,467
Thanked 331 Times in 289 Posts
Is it a uniform drift rate?
How much drift; e.g., frames per hour?

Does it drift if you use other players or platforms?
Reply With Quote
  #3  
09-17-2022, 10:11 AM
Selur Selur is offline
Free Member
 
Join Date: Feb 2022
Posts: 23
Thanked 8 Times in 6 Posts
Does it make a difference if you enable "Config->Automation->On Load->Always extract timecodes from input" and disable the 'only some' suboption?
Reply With Quote
  #4  
09-18-2022, 09:59 AM
traal traal is offline
Free Member
 
Join Date: Jan 2016
Posts: 274
Thanked 58 Times in 52 Posts
Is the video stream constant frame rate (CFR) or variable frame rate (VFR)? MediaInfo will tell you.
Reply With Quote
  #5  
09-18-2022, 10:03 AM
Selur Selur is offline
Free Member
 
Join Date: Feb 2022
Posts: 23
Thanked 8 Times in 6 Posts
MediaInfo looks at a few time codes at the beginning of the file not the whole file.
So if the first xy hundred frames have a constant frame rate MediaInfo will report CFR and if a single frame has a wrong time stamp it will report VFR.
Especially with captures MediaInfo can be easilty wrong.
Reply With Quote
  #6  
09-18-2022, 11:18 AM
hodgey hodgey is offline
Free Member
 
Join Date: Dec 2017
Location: Norway
Posts: 1,427
Thanked 390 Times in 330 Posts
It could also be drop frames marked in the avi file - I've encountered something similar with using avisynth directly rather than hybrid (while VLC and similar seem to be able to sync up on it's own). Don't think I managed to find a way around it when loading directly in avisynth. (The main issue is something with the capture card (Avermedia U3) driver causing frame drops/inserts at the start of a recording with virtualdub. It doesn't occur with amarectv but amarec has issues getting all the possible output formats.)

Don't think AVI can even be VFR, at least not if using huffyuv, lagarith et. al. More modern formats like mp4 and mkv feature timestamps for the individual frames but AVI can only mark frame drops and possibly inserts afaik.

My Video gear overview/test/repair/stuff yt channel http://youtu.be/cEyfegqQ9TU
Reply With Quote
  #7  
09-18-2022, 11:23 AM
Selur Selur is offline
Free Member
 
Join Date: Feb 2022
Posts: 23
Thanked 8 Times in 6 Posts
Quote:
Don't think I managed to find a way around it when loading directly in avisynth.
Using ffms2 or lwlibavsource and specifying a frame rate should work. This will cause the source filter to decoder to a specific frame rate, but if the frame rate it too low, you might lose frames.
(.avi also has time stamps, with the settings above Hybrid uses ffmpeg to extract those and then check if the input is vfr or cfr)
Reply With Quote
  #8  
09-18-2022, 05:19 PM
lollo2 lollo2 is offline
Free Member
 
Join Date: Mar 2013
Location: Italy
Posts: 546
Thanked 159 Times in 138 Posts
Quote:
AVI can only mark frame drops and possibly inserts
Are you sure about that? In all of my captures I can detect a duplicated frame, but never a dropped frame inside the avi file without having the capture log file.

- dropped frame: the data is simply missing, and in the avi file there is no a (simple) way to recognize it. I can only discover a dropped frame looking to the capture software report (for example the log file in AmarecTV) and comparing two captures of the same segment, where one presents a dropped frame. AFAIK a dropped frame can be written as a 0-byte length frame, but I ignore if the capture software we use do that, and eventually how to extract that info from the avi file with a piece of custom software and recognize a "dropped frame".

- inserted frame: this is easy, because an inserted frame is just a repetition of the previous frame. The capture software does not re-write the full frame, but just a few byte instruction, saying to repeat the previous frame. This is easily detectable, for exampe with VirtualDub, opening the avi file and using "Video -> Go -> Prev drop frame" or "Video -> Go -> Next drop frame". In VirtualDub the name "drop" is used, but it actually refers to "inserted" frames.

Just for curiosity, how do you manage the dropped frames in vhs-decode?
Reply With Quote
  #9  
09-22-2022, 11:05 AM
ThumperStrauss ThumperStrauss is offline
Premium Member
 
Join Date: May 2021
Location: Canada
Posts: 82
Thanked 6 Times in 5 Posts
I tried but this didn't help.
Reply With Quote
  #10  
09-22-2022, 11:08 AM
ThumperStrauss ThumperStrauss is offline
Premium Member
 
Join Date: May 2021
Location: Canada
Posts: 82
Thanked 6 Times in 5 Posts
According to MediaInfo, my captured AVI has constant audio. But my mp4 output is variable.

CAPTURED RAW FILE

Audio
ID : 1
Format : PCM
Format settings : Little / Signed
Codec ID : 1
Duration : 21 min 29 s
Bit rate mode : Constant
Bit rate : 1 536 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Bit depth : 16 bits
Stream size : 236 MiB (2%)
Alignment : Aligned on interleaves
Interleave, duration : 33 ms (1.00 video frame)
Interleave, preload duration : 500 ms


AFTER MP4 CONVERSION
Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 21 min 29 s
Bit rate mode : Variable
Bit rate : 129 kb/s
Maximum bit rate : 135 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 19.8 MiB (3%)
Encoded date : UTC 2022-09-20 02:02:15
Tagged date : UTC 2022-09-20 02:02:16
Reply With Quote
  #11  
09-23-2022, 11:00 AM
Selur Selur is offline
Free Member
 
Join Date: Feb 2022
Posts: 23
Thanked 8 Times in 6 Posts
aac is variable bit rate, but that the audio uses variable bit rate has nothing to do with sync issues.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
VHS Capture Audio Falling Out Of Sync In VirtualDub? Deadsy Capture, Record, Transfer 0 07-29-2022 01:32 PM
BrightEye 25 capture dropout despite TBC/frame sync? dowath Capture, Record, Transfer 7 11-12-2020 03:31 PM
Audio drifts out of sync with VirtualDub capture? ridzoman Capture, Record, Transfer 11 04-04-2019 11:09 PM
ATI 600 USB and VirtualDub, capture slowly goes out of sync? beefyboygod Capture, Record, Transfer 3 08-15-2016 11:47 AM
Cannot get audio/video to sync in VirtualDub capture? Johncan Capture, Record, Transfer 4 03-22-2016 04:24 PM

Thread Tools



 
All times are GMT -5. The time now is 02:54 AM