Hi I have been using Megui to create my avs scripts but everytime i create a script using megui it doesnt work and the .avi comes out not in sync with video audio. The audio starts out in sync then slowly comes out of sync. I got some help from a friend and we created this script which still did not work :/
ps. I am using Staxrip to encode (latest version)
Code:LoadPlugin("C:\Program Files\AVISynth 2.5\plugins\DGDecode.dll") LoadPlugin("C:\Program Files\AVISynth 2.5\plugins\TIVTC.dll") LoadPlugin("C:\Program Files\AVISynth 2.5\plugins\FDecimate.dll") MPEG2Source("Location of d2v file") #Telecide(guide=1).Decimate() FDecimate(rate=23.976,threshold=0.8) Lanczos4Resize(1280,720)
+ Reply to Thread
Results 1 to 22 of 22
-
-
what is your source video? dvd? captured mpeg video? ts?
-
Originally Posted by Baldrick
-
.ts can be variable frame rate (ie, the frame rate can change during the video). That could be part of the problem.
The audio is often skewed relative to the video. If that's the case you have to set the audio delay/advance in your encoder. This isn't the problem in your case since the audio starts out in sync and gradually drifts off. -
Originally Posted by jagabo
-
If the source is a MPEG2 .ts recorded off the air, they often have discontinuities and errors when broadcast. These errors will prevent you from syncing it up nicely, unless you process it in pieces (very time consuming)
Sometimes you can fill in the gaps and/or repair it by running it through projectx, pvastrumento, or tsmuxer -
Originally Posted by poisondeathray
-
Again, what is your original source? "firewire" is not a source, it is an interface.
What software are you using to facilitate the transfer?
You said ".ts converted to mpeg2"? How did you do the conversion? Were there sync issues before the conversion?
Can you post the information from mediainfo here on the .ts (view=>text)
Can you see gaps or errors during playback?
Please be more thorough on describing your process... -
Originally Posted by poisondeathray
The software i am using to facilitate the transfer is VLC player (CapDVHS doesnt work for me)
I use Video Redo Plus to get the .ts to .mpeg2 and there were no audio sync issues before the conversion to .mpeg2 and the .mpeg2 plays without any audio issues either. Its only when i convert to .avi i get audio issues
During the playback of the .ts there are some issues because of the box like this usually happens every 5min. There are also some audio skips during the video but the .mpeg2 never goes out of sync. - http://img75.imageshack.us/img75/7664/snapshot20081109203757ru7.jpg
Here is the information of the raw .ts capture from MediaInfo
Code:General ID : 1394 Complete name : C:\Users\alex\Desktop\New Folder\TrueJackson.ts Format : MPEG-TS File size : 2.55 GiB Duration : 30mn 4s Overall bit rate : 12.1 Mbps Video ID : 3905 (0xF41) Menu ID : 1 (0x1) Format : MPEG Video Format version : Version 2 Format profile : Main@High Format settings, Matrix : Default Duration : 30mn 4s Bit rate mode : Constant Bit rate : 11.3 Mbps Nominal bit rate : 20.0 Mbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16/9 Frame rate : 29.970 fps Colorimetry : 4:2:0 Scan type : Interlaced Scan order : Top Field First Bits/(Pixel*Frame) : 0.322 Audio ID : 3906 (0xF42) Menu ID : 1 (0x1) Format : AC-3 Format/Info : Audio Coding 3 Bit rate mode : Constant Bit rate : 384 Kbps Channel(s) : 2 channels Channel positions : L R Sampling rate : 48.0 KHz Video delay : -514ms
-
1) Is that program indeed film as opposed to video?
2) Also, try Tivtc instead of Fdecimate.
http://bengal.missouri.edu/~kes25c/TIVTCv105.zip
Syntax is
Mpeg2source("x.d2v")
Tfm()
Tdecimate()
Lanczos4Resize(1280,720) -
Originally Posted by superdud1400
DirectShowSource("C:\your_captured_movie.ts")
open up notepad, copy that line, choose save as all file types and give it a name that ends in .avs and open that with whatever encoding application you wish to use and allow the application to handle the resizing.
even better, forget about avisynth and use an application, such as tmpgenc express 4 or avidemux or virtual dub that can natively handle .ts files and simply resize from within the application.
or even better, keep the file just as you captured it for maximum quality, i would personally never go through the gymnastics you are going through, it's absolutely unnecessary and as you have noticed you usually end up with subpar results. -
During the playback of the .ts there are some issues because of the box like this usually happens every 5min. There are also some audio skips during the video but the .mpeg2 never goes out of sync. - http://img75.imageshack.us/img75/7664/snapshot20081109203757ru7.jpg
Unfortunately you've tried the best "fixer" for this which is projectx. It will fill in the gaps and resynch the timing information for mpeg2 .ts
If projectx, pvastrumento, tsmuxer, videoredo failed in "fixing" the stream, it is highly unlikely that you will get an syncrhonized result unless you process it in segments (i.e. cut out the bad parts)
I'd be very surprised if DGIndex, avidemux, TMPGENC or any other application will work
Last ditch effort would be to use vdub and the directshow input driver - I've tried this on several error full .ts and it seems to "record" the errors as it transcodes, instead of dropping audio and/or audio frames as the default behavior of most encoding software. You have to "activate" the plugin by using the dropdown menu when opening the file in vdub. The limitations are you cannot use an avisynth script (you are limited to internal filters) -
Originally Posted by poisondeathray
Also if i just load the .ts and all that how exactly would i cut out the commercials? -
I wouldn't worry about cutting commercials until you get an error free stream. Projectx should automatically enter timing infomation and fix the stream when you save it. There are some advanced features you might want to play with, and pvastrumento has some too (e.g. "drop GOP on on video errors")
The 2nd guide tells you how to mark in/mark out to cut
http://www.doom9.org/index.html?/DigiTV/projectx-fullguide.htm
http://www.juergen-ulbts.de/content/projects/video_mpeg/projectx_cut.en.html
Normally I would fix the .ts then use another application to cut & encode to final format (e.g. avidemux, vdub)
Look at the log files from projectx, tsmuxer and pvastrumento when you re-mux the streams and look for errors and if there is any more information -
Ok it feels like ive tried everything and nothing works
The method Videoredo-Projectx works just fine with non-HD stuff recorded off an HD channel but it doesnt work with HD stuff :/ Im kinda stuck here and i dont know what do to
-
Originally Posted by jagabo
Similar Threads
-
Encoding 30fps from 60fps source, keep maximum smoothness?
By squall0833 in forum Video ConversionReplies: 22Last Post: 12th Apr 2012, 23:57 -
New Canon slr to shoot 1080p @30fps
By aedipuss in forum Latest Video NewsReplies: 29Last Post: 25th Oct 2010, 10:40 -
AVS scripts for MeGUI - why do they resize the video
By Bully9 in forum Video ConversionReplies: 0Last Post: 17th Mar 2010, 16:16 -
.avs scripts in TMPGE Xpress?
By ecc in forum Video ConversionReplies: 0Last Post: 12th Aug 2008, 07:39 -
Adobe Premiere project using AVISynth AVS scripts crashes when rendering!
By Mark001 in forum EditingReplies: 2Last Post: 10th Jun 2007, 23:25