wierd audio after cutting/joining in VDub

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • benderman
    Digital Video Specialist
    Digital Video Specialist
    • Nov 2001
    • 770

    wierd audio after cutting/joining in VDub

    I use VirtualDUB to join 2 videofiles (DivX with PCM-WAV) and sort the scenes in a different order.

    After loading the first file and appendinmg the second, I load the following script

    VirtualDub.audio.SetSource(1);
    VirtualDub.audio.SetMode(0);
    VirtualDub.audio.SetInterleave(1,500,1,0,0);
    VirtualDub.audio.SetClipMode(1,1);
    VirtualDub.audio.SetConversion(0,0,0,0,0);
    VirtualDub.audio.SetVolume();
    VirtualDub.audio.SetCompression();
    VirtualDub.audio.EnableFilterGraph(0);
    VirtualDub.video.SetDepth(24,24);
    VirtualDub.video.SetMode(3);
    VirtualDub.video.SetFrameRate(0,1);
    VirtualDub.video.SetIVTC(0,0,-1,0);
    VirtualDub.video.SetRange(0,0);
    VirtualDub.video.SetCompression();
    VirtualDub.video.filters.Clear();
    VirtualDub.audio.filters.Clear();
    VirtualDub.subset.Clear();
    VirtualDub.subset.AddRange(0,2303);
    VirtualDub.subset.AddRange(40704,1424);
    VirtualDub.subset.AddRange(3727,1953);
    VirtualDub.subset.AddRange(42795,1842);
    VirtualDub.subset.AddRange(7522,642);
    VirtualDub.subset.AddRange(44889,3440);
    VirtualDub.subset.AddRange(48332,2613);
    VirtualDub.subset.AddRange(50981,9128);
    VirtualDub.subset.AddRange(23345,140);
    VirtualDub.subset.AddRange(60109,3129);
    VirtualDub.subset.AddRange(26614,1828);
    VirtualDub.subset.AddRange(64234,7026);

    (file 1: 35468 frames, file 2: 37040 frames, total 72508 frames)

    After saving the new video the audio dosen't match with the video. Most of the audio seems to come from the second video, even if the video is from the first file. I tried various codecs with all combinations of full processing /direct stream copy and always got the same result. I also used newest versions of nandub VDub and VDubMod.
    don't trust in guides
  • Enchanter
    Old member
    • Feb 2002
    • 5417

    #2
    Have you tried extracting out the audio from the two video files, joining them using an audio editor and using the "joint" audio as input for the two appended video files? The original audio streams (from the individual video files) will hence not be used.

    Regards.

    Comment

    • benderman
      Digital Video Specialist
      Digital Video Specialist
      • Nov 2001
      • 770

      #3
      Yes, I also joined the two videos and saved as one file and made the same procedure with one (instead of 2) videofiles. After trying all differnt ways, it looks like VirtualDUB dosn't handle that kind of script file.
      don't trust in guides

      Comment

      • Enchanter
        Old member
        • Feb 2002
        • 5417

        #4
        What I actually meant is to extract the audio from each of the original video files (prior to joining in VD), join the two audio files into one using an audio editor and use the newly-joined audio stream as input for VD. You would then open the first video file in VD, append the second one, discard the audio streams for both the video files and use instead the newly-created audio file as input. From there, it is about direct streaming the input files so that we get the new video file.

        I hope I am not misunderstanding anything here. Cheers.

        Comment

        • benderman
          Digital Video Specialist
          Digital Video Specialist
          • Nov 2001
          • 770

          #5
          Thanx, I will try that. Maybe most misunderstandings depend on my limited english vocabulary .
          don't trust in guides

          Comment

          • benderman
            Digital Video Specialist
            Digital Video Specialist
            • Nov 2001
            • 770

            #6
            Sorry, didn't work ...
            don't trust in guides

            Comment

            Working...