#1  
12-26-2024, 07:26 AM
oddmykyta oddmykyta is offline
Free Member
 
Join Date: Apr 2024
Posts: 24
Thanked 2 Times in 2 Posts
I guess its a question right away to Selur but maybe someone did deal with that.
Now with my workflow created in Hybrid the only problem that appears is bad audio sync with larger files after processing in hybrid. For example - 10-20 min video sample can work flawlessly, but when it comes to processing the whole tape - 1 hour .avi to prores with the spectre of filtering its just doesnt work well. i cant upload samples because the files are too large. I guess its due to a slight frames loss but mediadata doesnt show that. Maybe the solution would be to cut to shorter clips but i dont know how do i do this loselessly - Vdub directly? I dont wanna capture again. Thanks in advance.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
12-26-2024, 12:09 PM
Selur Selur is offline
Free Member
 
Join Date: Feb 2022
Posts: 118
Thanked 31 Times in 28 Posts
Try, whether it helps to enable:
  • Config->Input->Decoding->CFR output
  • if you have a vfw decoder for your source try AviSource (Filtering->Vapoursynth->Misc->Source->Prefer AviSource for .avi input) as source filter (also try other source filters)
  • 'Config->Internals->Automation->Always extract timecodes from input' + disable 'only some'
You could also enable 'Config->Containers->General->Keep intermediate files' this way you can check whether the extracted audio has the correct length. You might also want to check the Vapoursynth Preview to see whether everything gets decoded propers.

Cu Selur
Reply With Quote
The following users thank Selur for this useful post: lordsmurf (01-11-2025)
  #3  
12-26-2024, 12:13 PM
oddmykyta oddmykyta is offline
Free Member
 
Join Date: Apr 2024
Posts: 24
Thanked 2 Times in 2 Posts
used avisynth for everything. length is same, the preview code looks ok, will attach it later. thank u
Reply With Quote
  #4  
12-27-2024, 07:17 AM
Selur Selur is offline
Free Member
 
Join Date: Feb 2022
Posts: 118
Thanked 31 Times in 28 Posts
Quote:
used avisynth for everything
Why?
Quote:
the preview code looks ok
Does the preview too?
Quote:
will attach it later.
don't bother for me, since I will not look at the script (since it doesn't hold all the additional info a debug output holds)

Cu Selur
Reply With Quote
The following users thank Selur for this useful post: lordsmurf (01-11-2025)
  #5  
12-27-2024, 04:34 PM
oddmykyta oddmykyta is offline
Free Member
 
Join Date: Apr 2024
Posts: 24
Thanked 2 Times in 2 Posts
tried again, seems to be not that bad but there are still problems with sync. its not about the length - but frame dropping i believe. attaching the debug output now. (Im using avysynth since one part of the process cant be done with vps)


Attached Files
File Type: txt HybridDebugOutput.txt (8.78 MB, 6 downloads)
Reply With Quote
  #6  
01-05-2025, 12:50 PM
ThumperStrauss ThumperStrauss is offline
Free Member
 
Join Date: May 2021
Location: Canada
Posts: 117
Thanked 14 Times in 12 Posts
In the past, my H.264 (mp4) files have an audio skew over time. But when I switched to ProRes (mov) the problem disappeared. It was a few versions ago, so I don't think I get this issue anymore. But in general, I like outputing to ProRes as I sometimes import the video into DaVince Resolve for color work before outputing to H.264.
Reply With Quote
The following users thank ThumperStrauss for this useful post: lordsmurf (01-06-2025)
  #7  
01-09-2025, 09:43 AM
Selur Selur is offline
Free Member
 
Join Date: Feb 2022
Posts: 118
Thanked 31 Times in 28 Posts
About out of order or missing frames with avi(lagaright): try using AviSource, assuming you have a 64bit vfw decoder in your system.

About the not possible in Vapoursynth:

Your Avisynth code:
Code:
last=clp
U = UtoY() # separate U channel (should be: 360x288)
V = VtoY() # seprate V channel (should be: 360x288)

V = Crop(V,0,0,-16,-0) #remove discolore portion and black border  (should be: 344x288)
extra=FlipHorizontal(V).Crop(0,0,12,-0) # the last 12 pixels of the V channel reflected   (should be: 332x288)
V=StackHorizontal(V,extra).AddBorders(0,0,4,0,$808080) # add the extra, pad to 720 with grey (should be: 668x288)

YtoUV(U, V, last) # mix the separate U and V with the original
return last
can be straight forward ported to Vapoursynth:
Code:
# Separate U and V channels
U = core.std.ShufflePlanes(clip, planes=1, colorfamily=vs.GRAY)  # Extract U plane
V = core.std.ShufflePlanes(clip, planes=2, colorfamily=vs.GRAY)  # Extract V plane

# Process the V channel
V_cropped = core.std.CropRel(V, right=8)  # Remove discolored portion and border
extra = core.std.FlipHorizontal(V_cropped).std.CropRel(left=V_cropped.width - 6)  # Reflect last 6 pixels
V_extended = core.std.StackHorizontal([V_cropped, extra])  # Stack the reflected pixels
V_padded = core.std.AddBorders(V_extended, right=2, color=[128])  # Pad with grey to original width

# Combine U, V, and the original luma
return core.std.ShufflePlanes(clips=[clip, U, V_padded], planes=[0, 0, 0], colorfamily=vs.YUV)
in Vapoursynth.

Cu Selur
Reply With Quote
The following users thank Selur for this useful post: lordsmurf (01-11-2025)
  #8  
01-09-2025, 02:42 PM
araset araset is offline
Premium Member
 
Join Date: Jul 2023
Posts: 60
Thanked 0 Times in 0 Posts
Hi I have problem when trying do deinterlace video with bwdif audio is going out of sync. AVI file is ok. I am usung current Hybrid and ProRes format.
Reply With Quote
  #9  
01-10-2025, 07:24 AM
Selur Selur is offline
Free Member
 
Join Date: Feb 2022
Posts: 118
Thanked 31 Times in 28 Posts
Without any proper details: no clue.
Wild guess: some problem with the used source filter and the source or some vfr issues.
Reply With Quote
The following users thank Selur for this useful post: lordsmurf (01-11-2025)
  #10  
01-13-2025, 04:09 AM
araset araset is offline
Premium Member
 
Join Date: Jul 2023
Posts: 60
Thanked 0 Times in 0 Posts
What details should I provide?
Reply With Quote
  #11  
01-13-2025, 07:46 AM
Selur Selur is offline
Free Member
 
Join Date: Feb 2022
Posts: 118
Thanked 31 Times in 28 Posts
https://www.selur.de/support <- most importantly a debug output and ideally a sample file which allows reproducing the problem.

Cu Selur
Reply With Quote
Reply




Tags
audiosync, deinterlacing, ffmpeg, filtering, hybrid

Similar Threads
Thread Thread Starter Forum Replies Last Post
ATI 600 USB audio desync with frame TBC? TwistedSystem Capture, Record, Transfer 4 12-15-2024 10:59 AM
FFMPEG hanging when encoding from Avisynth script? Winsordawson Encode, Convert for streaming 1 01-06-2024 06:01 PM
How to fix audio desync, audio earlier than video? FleshWound Capture, Record, Transfer 19 10-02-2022 11:38 PM
Editing in NLE after encoding Prores 422 HQ with ffmpeg in the Window 10. jsj2251 Edit Video, Audio 2 05-04-2022 01:47 PM

Thread Tools Search this Thread
Search this Thread:

Advanced Search



 
All times are GMT -5. The time now is 12:24 AM