VideoHelp Forum




+ Reply to Thread
Results 1 to 22 of 22
  1. Member
    Join Date
    Jan 2008
    Location
    United States
    Search Comp PM
    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)
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    what is your source video? dvd? captured mpeg video? ts?
    Quote Quote  
  3. Member
    Join Date
    Jan 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Baldrick
    what is your source video? dvd? captured mpeg video? ts?
    I captured it with firewire so my source is .ts converted to mpeg
    Quote Quote  
  4. .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.
    Quote Quote  
  5. Member
    Join Date
    Jan 2008
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo
    .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.
    Yeah i tried re-syncing it then it was just sync at another part and the other part was out of sync
    Quote Quote  
  6. 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
    Quote Quote  
  7. Member
    Join Date
    Jan 2008
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray
    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
    Thanks ill try those softwares out but its not recorded off the air its from firewire
    Quote Quote  
  8. Member
    Join Date
    Jan 2008
    Location
    United States
    Search Comp PM
    Well all three did not work
    Quote Quote  
  9. 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...
    Quote Quote  
  10. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Run it through Quickstream fix in VideoRedo before processing it.
    Quote Quote  
  11. Member
    Join Date
    Jan 2008
    Location
    United States
    Search Comp PM
    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...
    My source is Cable TV through a Scientific Atlanta 8300HD DVR

    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
    Quote Quote  
  12. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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)
    Quote Quote  
  13. Member
    Join Date
    Jan 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Soopafresh
    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)
    Im not sure if its Film ive never really heard of anyone else using VLC to capture i learned how to do it myself
    Quote Quote  
  14. Originally Posted by superdud1400
    My source is Cable TV through a Scientific Atlanta 8300HD DVR

    The software i am using to facilitate the transfer is VLC player (CapDVHS doesnt work for me)
    Can you explain how you use VLC to do capture? CapDVHS only works for SD sources for me. It crashes after a few seconds with HD sources. I can watch both SD and HD with VLC but I can't seem to get it to capture either.
    Quote Quote  
  15. Banned
    Join Date
    Nov 2005
    Location
    United States
    Search Comp PM
    Originally Posted by superdud1400
    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)
    can i make a silly suggestion? don't bother converting the .ts to mpeg-2, the video portion inside the transport stream (ts) is already in mpeg-2 format and don't use megui to create your avisynth script, instead try something simple like this:

    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.
    Quote Quote  
  16. Or use DgIndex on your TS file. Then open with MPEG2Source().
    Quote Quote  
  17. 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
    That's exactly what I was referring to. Those points cause desynchronisation in transport streams. They may play ok and seem fine, but once you re-encode them they will desynch. Each error point makes the synch worse. The reason they play ok in most software players will skip the errors or read the timing info in the .ts to correct itself after each error point.

    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)
    Quote Quote  
  18. Member
    Join Date
    Jan 2008
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray
    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
    I might have been using that software wrong. How exactly do you "Fix" it with that software?

    Also if i just load the .ts and all that how exactly would i cut out the commercials?
    Quote Quote  
  19. 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
    Quote Quote  
  20. Member
    Join Date
    Jan 2008
    Location
    United States
    Search Comp PM
    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
    Quote Quote  
  21. I have no problems capturing SD with DVHSCap but it crashes within a few seconds when capturing HD. Can you explain how you capture the firewire stream with VLC? I haven't been able to get it to work with SD of HD.
    Quote Quote  
  22. Member
    Join Date
    Jan 2008
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo
    I have no problems capturing SD with DVHSCap but it crashes within a few seconds when capturing HD. Can you explain how you capture the firewire stream with VLC? I haven't been able to get it to work with SD of HD.
    Ill make a tutorial after i figure how to encode it.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!