VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. well, I'm new to use MEGUI + avisynth

    this is the AVS script i use

    video=AVISource("C:\Users\Squall0833\Desktop\01.av i")++AVISource("C:\Users\Squall0833\Desktop\02.avi ")
    audio=WAVSource("C:\Users\Squall0833\Desktop\01.av i")++WAVSource("C:\Users\Squall0833\Desktop\02.avi ")
    AudioDub(video,audio)

    both of the avi 01 and 02 have audio, I'm going to join them together into 1, included audio, it seems the result I got is a joined avi video with no audio

    my MEGUI doesn't read and encode the audio from the videos and join them, because I start the job by clicking the "Enqueue" at video section only, audio section remain empty(cos It doesnt have option to join audio files)

    so, i was trying to do the audio job with avisynth, it seems it still doesn't do audio job for me , only encodes video.

    I'm new to this, don't really know if there's other way to do that.

    can anyone teach me?
    Quote Quote  
  2. WAVSource() is for demultiplexed PCM wav source (yours is embedded in the AVI stream) , that's why it's not "picking up" the audio

    AVISource already has audio=true by default (i.e. it passes through the audio embedded in the AVI file)

    vid1=AVISource("C:\Users\Squall0833\Desktop\01.avi ")
    vid2=AVISource("C:\Users\Squall0833\Desktop\02.avi ")
    vid1++vid2

    That script specifies both audio & video. So you can use the same script for both the video encoding section, and the audio encoding section

    You can preview your .avs scripts in a media player (e.g. MPCHC, or MPC) , to make sure they seem ok before encoding (if there is an error you would just waste time encoding)
    Quote Quote  
  3. Originally Posted by poisondeathray View Post
    WAVSource() is for demultiplexed PCM wav source (yours is embedded in the AVI stream) , that's why it's not "picking up" the audio

    AVISource already has audio=true by default (i.e. it passes through the audio embedded in the AVI file)

    vid1=AVISource("C:\Users\Squall0833\Desktop\01.avi ")
    vid2=AVISource("C:\Users\Squall0833\Desktop\02.avi ")
    vid1++vid2

    That script specifies both audio & video. So you can use the same script for both the video encoding section, and the audio encoding section

    You can preview your .avs scripts in a media player (e.g. MPCHC, or MPC) , to make sure they seem ok before encoding (if there is an error you would just waste time encoding)

    Your script just like a simple version of :
    AVISource("C:\Users\Squall0833\Desktop\01.av i")++AVISource("C:\Users\Squall0833\Desktop\02. avi ")

    Just tried it, result is the same, a joined video without audio stream, hm...
    Quote Quote  
  4. What type of audio in the AVI stream? use mediainfo . Do you have an ACM audio decoder for it?

    If you type info() at the end of the script , does it report that audio is being passed through?

    You could also use another source filter , like ffms2, which runs independent of system installed codecs
    Quote Quote  
  5. lame mp3

    Audio
    ID : 1
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Mode : Joint stereo
    Mode extension : MS Stereo
    Codec ID : 55
    Codec ID/Hint : MP3
    Duration : 15mn 34s
    Bit rate mode : Constant
    Bit rate : 128 Kbps
    Channel(s) : 2 channels
    Sampling rate : 44.1 KHz
    Stream size : 14.3 MiB (14%)
    Alignment : Aligned on interleaves
    Interleave, duration : 922 ms (22.11 video frames)
    Interleave, preload duration : 208 ms
    Title : AVSEQ02
    Writing library : LAME3.98r
    Encoding settings : -m j -V 4 -q 2 -lowpass 17 -b 128

    tried to play the avs on mpchc, it's fine, It's exactly what I wanted,

    the reason should be MEGUI doesn't process audio stream for me
    Quote Quote  
  6. If that .avs file previews in mpchc correctly, it should work

    Is there a log file or error message?

    What audio encoding settings did you use? Did they have matching settings (e.g. 2-ch audio, and you used a 2-ch profile?)

    If you don't want to re-encode the audio (lose quality) , and just want to join them, you could use direct stream copy in vdub to append the videos, then demux the joined audio stream . I think mp3 directcut may be able to join without re-encoding too
    Quote Quote  
  7. virtualdub doesnt support xvid?

    I'll try simple way, take out the mp3 audio from both avi and join them into a single mp3 file,

    then just mux it into the complete avi file

    thanks for the help
    Last edited by squall0833; 11th Jul 2010 at 09:34.
    Quote Quote  
  8. Originally Posted by squall0833 View Post
    virtualdub doesnt support xvid?

    I'll try simple way, take out the mp3 audio from both avi and join them into a single mp3 file,

    then just mux it into the complete avi file

    thanks for the help
    Yes , vdub supports xvid/mp3/avi

    I would use vdub for this , or avidemux to stream copy & append. This way you should keep A/V sync. If you demux the audio, there may be a +/- delay to account for
    Quote Quote  



Similar Threads

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