You can try avidemux, but it's not frame accurate, cutting only on key frames which may have an interval
of a second or more. There are frame accurate tools such as videoredo but it is $$
you might be able to build an avisynth script using trim to remove the frames you don't want and perhaps use the
output from the script as input to AVStoDVD once you get the trims right
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 31 to 41 of 41
Thread
-
-
Yes, AviSynth's Trim , DeleteFrame and even Loop commands can easily remove frames before reencoding.
If the total length of the frames removed equals the audio delay, you might not have to edit the audio. -
Here's a sample script you can test with. Modify the trims' frame numbers to reflect your video glitch location.
Drag and drop the script onto Virtualdub and play the file to check the sync.
Once you get it right it should be trivial to add the relevant bits to the AVStoDVD script.
This script removes frames 22130 - 22159 (about a second) pushes the two video sections together and
merges with the original audio.
vid=dss2("c:\path\file.mkv")
aud=directshowsource("c:\path\file.mkv",video=no)
a=vid.trim(0,22129)
b=vid.trim(22160,0)
vid=a+b
audiodub(vid,aud) -
Sorry. But are you not working with a capture that is in sync to start with ?
Have you actually tried the method I suggested with that capture ?
Or am I just wasting my time on here ? -
I have tried this method but it didn't work. What I don't get is why is there a 36ms delay in the audio of the source file when it is added in AVStoDVD, does AVStoDVD think that this delay is in the source file or does it add the delay because it thinks the audio is out of sync with the video?
[Attachment 44047 - Click to enlarge] -
_MrC_ is the best person to answer this but you could never detect that length of a delay by just watching the video and you already stated that it is in sync when watching.
-
Ok I solved my issue. I encoded the TS file to mp4 with Handbrake and once I loaded it into AVStoDVD there was no delay. I created the dvd structure and played it with VLC and now it plays fine. Now to burn onto a DVD do I just burn these 2 folders somehow or I set the output to DVD video in AVStoDVD and let it create the disc?
I also noticed that the mp4 is 1.5gb in size where the TS file is 7.8GB in size, would converting to MP4 reduce quality or MP4 is much more compressed than the TS format?
Here is the log file from the latest project:
<12/17/2017 8:11:46 PM>
START PROCESS
<>
<12/17/2017 8:11:46 PM>
PROJECT SETTINGS
DVD Video Standard: NTSC
DVD Titles number: 1
DVD Size: 4450/4450 MB (100%)
DVD Output Setup: DVD Folder
DVD Label: DVD
DVD Menu: No Menu
Output Folder: C:\Users\localuser\Videos
Delete Temp Assets Files: Yes
Delete Temp Working Files: Yes
Edit Command Parameters: No
Post Process Task: Show Progress Status window
PREFERENCES
MultiThread: 1
AVS Video Source Filter: A2DSource
AVS Audio Source Filter: A2DSource
AVS UpSize/DownSize Filter: Lanczos4Resize/Spline16Resize
Frame Adjust Strategy: 0
FPS Hard Conversion: 0
PAL SpeedUp: 0
NTSC SlowDown: 0
Video Resolution: 0
Video Encoder: 0
Video BitRate Min: 2500
Video BitRate Max: 8500
Keep DVD Compliant Video: 1
AC3 Audio Encoder: 0
Force FFmpeg for Long Audio: 1
DVD Audio Format: 0
DVD Audio BitRate: 192
Keep DVD Compliant Audio: 0
Normalize Audio: 0
Auto Delay Audio: 0
DVD Audio Language (Primary): EN - English
DVD Audio Language (Secondary): EN - English
DVD Subs Language (Primary): EN - English
DVD Subs Language (Secondary): EN - English
DVD Subs Font: Tahoma 16pt (255,255,255)
Chapters Interval: 5
Use Source Chapters: 1
DVD Burning Drive:
DVD Burning Speed: 4x
Auto Erase DVD RW: 1
Execute with Elevated Privileges: 0
Unload ActiveMovie Library: 1
Adjust DirectShow Filters at runtime: 1
Save General Settings: 0
SYSTEM INFO
Processor Name: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
Operating System: Windows 10 (10.0.15063) 64 bit
User has Admin Rights: YES
Running with Elevated Privileges: NO (3)
Available Output Disc Space: 572 GB
AviSynth is installed: YES (release 2.6.0)
LAV Filters is installed: YES (release 0.69.0)
ffdshow is installed: NO
CODECS REPORT
H.264/AVC: LAV Video Decoder {EE30215D-164F-4A92-A4EB-9D4C13390F9F}
Xvid: LAV Video Decoder {EE30215D-164F-4A92-A4EB-9D4C13390F9F}
DivX 4/5/6: LAV Video Decoder {EE30215D-164F-4A92-A4EB-9D4C13390F9F}
Other MPG4: LAV Video Decoder {EE30215D-164F-4A92-A4EB-9D4C13390F9F}
DV: LAV Video Decoder {EE30215D-164F-4A92-A4EB-9D4C13390F9F}
MPEG1: LAV Video Decoder {EE30215D-164F-4A92-A4EB-9D4C13390F9F}
MPEG2: LAV Video Decoder {EE30215D-164F-4A92-A4EB-9D4C13390F9F}
MP2: LAV Audio Decoder {E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}
MP3: LAV Audio Decoder {E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}
AAC: LAV Audio Decoder {E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}
AC3: LAV Audio Decoder {E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}
<>
<12/17/2017 8:11:46 PM>
TITLE 1 SOURCE FILES
Video: C:\DVD authoring\capture\dvd output\christmas.mp4
Info: AVC - 1969 kbps - 720x474 - DAR 1.381 - 29.97 fps (VFR) - Progressive - 1:32:25 hours - 166096 frames
Audio 1: C:\DVD authoring\capture\dvd output\christmas.mp4
Info: AAC LC - 160 kbps - VBR - 2 ch - 48000 Hz - 1:32:25 hours (0 ms delay)
[MediaInfoLib - v0.7.77]
<>
<12/17/2017 8:11:46 PM>
AVISYNTH SCRIPT
Import("C:\Program Files (x86)\AVStoDVD\Lib\A2DSource.avsi")
Video = A2DVideoSource("C:\DVD authoring\capture\dvd output\christmas.mp4", CacheFolder="C:\Users\LOCALU~1\AppData\Local\Temp" , VFR=true, FrameRateNum=2997, FrameRateDen=100, FrameRate=29.97)
Audio = A2DAudioSource("C:\DVD authoring\capture\dvd output\christmas.mp4", CacheFolder="C:\Users\LOCALU~1\AppData\Local\Temp" )
Video = Video.ConvertToYV12()
Video = Video.AddBorders(0,8,0,10)
Video = Video.Lanczos4Resize(720,480)
AudioDub(Video, Audio)
<>
<12/17/2017 8:11:46 PM>
DIRECTSHOW AUDIO MIXER OPERATIONS:
No LAV Filters mixer ON/OFF adjustment required at runtime
<>
<12/17/2017 8:11:46 PM>
START VIDEO ENCODING OPERATIONS
Video Encoding Profile: HCenc VBR 1-pass
Target Video FileSize: 4225.2 MB
Encoding Parameters: -ini "C:\Users\LOCALU~1\AppData\Local\Temp\DVD_christma s.HCenc.ini"
HCenc ini file:
*INFILE C:\Users\LOCALU~1\AppData\Local\Temp\DVD_christmas _1.avs
*AVSRELOAD
*OUTFILE C:\Users\localuser\Videos\DVD_christmas.m2v
*LOGFILE C:\Users\LOCALU~1\AppData\Local\Temp\DVD_christmas .HCenc.log
*MAXBITRATE 9000
*1PASS
*BITRATE 6392
*PROFILE BEST
*ASPECT 4:3
*PROGRESSIVE
*TFF
*BIAS 60
*DC_PREC 10
*MATRIX MPEG
*AQ 1
*LUMGAIN 1
*SMP
*PRIORITY IDLE
*DBPATH C:\Users\LOCALU~1\AppData\Local\Temp
*WAIT 2
<>
<12/17/2017 8:41:54 PM>
END VIDEO ENCODING OPERATIONS
Video Source Filter: A2DSource (DirectShowSource)
Created File: C:\Users\localuser\Videos\DVD_christmas.m2v (4255.1 MB)
OUTPUT VIDEO INFO: MPEG-2 Video - 6436 kbps - 720x480 - DAR 4:3 - 29.97 fps - Progressive (TFF) - 1:32:25 hours - 166191 frames
<>
<12/17/2017 8:41:54 PM>
START AUDIO ENCODING OPERATIONS (Track 1)
Wavi+Aften Parameters: "C:\Users\LOCALU~1\AppData\Local\Temp\DVD_christma s_1.avs" - | "C:\Program Files (x86)\AVStoDVD\Aften\aften.exe" -b 192 -pad 0 -dynrng 5 -bwfilter 0 - "C:\Users\localuser\Videos\DVD_christmas_1.ac3 "
<>
<12/17/2017 8:42:15 PM>
END AUDIO ENCODING OPERATIONS (Track 1)
Audio Source Filter: A2DSource (DirectShowSource)
Created File: C:\Users\localuser\Videos\DVD_christmas_1.ac3 (126.9 MB)
OUTPUT AUDIO INFO: AC3 - 192 kbps - CBR - 2 ch - 48000 Hz - 1:32:25 hours (0 ms delay)
<>
<12/17/2017 8:42:15 PM>
DVD CHAPTERS CREATION OPERATIONS
Title 1 Input Chapters List: 8991 17982 26973 35964 44955 53946 62937 71928 80919 89910 98901 107892 116883 125874 134865 143856 152847 161838
Title 1 Output Chapters List: 8991 17982 26973 35964 44955 53946 62937 71928 80919 89910 98901 107892 116883 125874 134865 143856 152847 161838
Created File: C:\Users\localuser\Videos\DVD_christmas_Chapters.t xt (134 Byte)
<>
<12/17/2017 8:42:15 PM>
START DVD AUTHORING OPERATIONS
BatchMux Parameters: -arglist "C:\Users\LOCALU~1\AppData\Local\Temp\DVD_BatchMux .ini"
BatchMux ini file:
-bmlog "C:\Users\LOCALU~1\AppData\Local\Temp\DVD_BatchMux .log"
-d "C:\Users\localuser\Videos\DVD\VIDEO_TS"
-mxp "C:\Users\LOCALU~1\AppData\Local\Temp\DVD_MuxMan.m xp"
-l "C:\Users\LOCALU~1\AppData\Local\Temp\DVD_MuxMan.l og"
-muxman "C:\Program Files (x86)\AVStoDVD\MuxMan"
-prio LOW
-palette "C:\Users\LOCALU~1\AppData\Local\Temp\DVD_Palette. txt"
-v "C:\Users\localuser\Videos\DVD_christmas.m2v"
-vidmode 4:3
-a1 "C:\Users\localuser\Videos\DVD_christmas_1.ac3 "
-a1lang en
-cellfr "C:\Users\localuser\Videos\DVD_christmas_Chapters. txt"
-progfr "C:\Users\localuser\Videos\DVD_christmas_Chapters. txt"
-chapfr "C:\Users\localuser\Videos\DVD_christmas_Chapters. txt"
<>
<12/17/2017 8:45:24 PM>
END DVD AUTHORING OPERATIONS
Created Folder: C:\Users\localuser\Videos\DVD (4465.7 MB)
CHECK DVD SIZE
DVD Folder (actual) Size: 4465.7 MB
vs Assets Size: 4382 MB -> OK
vs Estimated Size: 4450 MB -> 0.4% oversize
<>
<12/17/2017 8:45:25 PM>
AVStoDVD Project ended successfully.
<>
<12/17/2017 8:45:25 PM>
Log file created by AVStoDVD Release 2.8.6
<>
Last edited by johnnyh55; 17th Dec 2017 at 20:04.
-
Ok I knew there was the option to burn the folders to a disc in IMGBURN but I was wodering how it would know to burn the folders as DVD video and not data.
I guess according to these instructions, the software will detect automatically that it's dvd video?
https://www.dvd-guides.com/guides/linux/70-guides/-sp-639/258-how-to-burn-dvd-video-using-imgburn -
Sure. That first screen is the 'quick-pick' mode. You can skip that by selecting 'Build' from the 'Mode' menu. The easiest way to access the folders is just to drag 'n drop them from Explorer in to the file window. But do not drag the individual files in the folder since then you do get a data disk and not a dvd-video disk.
Similar Threads
-
Sync of video from one source to audio from another source (same content)
By tbbttbbt in forum AudioReplies: 2Last Post: 5th May 2016, 15:10 -
Trying to sync audio from a 29.97fps video to 24fps video file.
By DrMovieandtvfan in forum CapturingReplies: 3Last Post: 25th Feb 2015, 18:38 -
Proper Tools and Method to Sync Audio from Different Video Source
By danswano in forum EditingReplies: 16Last Post: 12th May 2014, 16:54 -
iTunes audio out of sync (Video File: Handbrake Mp4 -- PAL 50 FPS)
By Toonman in forum Video ConversionReplies: 3Last Post: 8th Oct 2013, 05:55 -
MPEG4 audio out of sync (longer audio file than video file)
By djorkaef in forum Newbie / General discussionsReplies: 0Last Post: 11th Aug 2013, 14:01