VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Member
    Join Date
    Oct 2005
    Location
    Montreal
    Search Comp PM
    i'm looking for a way to trim an avi, preferably an xvid/divx mpeg4, using direct stream copy with more precision than keyframes (so forget virtualdub's editor). i'm pretty new to AviSynth scripting so any help would be appreciated.

    here's what i have so far with an xvid avi:
    Code:
    # Created by AVSEdit
    video = "clip1.avi"
    AVISource( video )
    trim( 500, 1000 )
    when i open it in virtualdubmod, the trim is perfectly fine but it loads the video as yv12 and the audio as pcm. now i know i'm obviously missing code in my script cause AVISource's pixel_type's default is yv12 and the only other types are yuy2 and uncompressed rgb. as for the audio, the only method i know is WAVSource but that will obviously load the audio as pcm.

    i searched the forum for this topic but to no avail so if anyone has any suggestions i would appreciate hearing them. also if i somehow missed this topic somewhere on the forum please direct me to it.

    thanks!
    Quote Quote  
  2. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    AVISynth serves up raw video and audio. There is/was a DSynth mod, however that doesn't get you out of the fact that you can't cut on a non keyframe. You need to re-encode at least the last section before the cut, the rest you can directstream.
    Quote Quote  
  3. Member
    Join Date
    Oct 2005
    Location
    Montreal
    Search Comp PM
    heh i had a feeling it wasn't achievable the way i wanted to do it.

    oh well! i'll just have to work around it.

    thanks for your help celtic_druid!
    Quote Quote  



Similar Threads

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