AudioDub

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (added category)
(add link to avs+ documentation)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
{{Template:Func2Def|AudioDub(video_clip, audio_clip)|AudioDubEx(video_clip, audio_clip)}}
+
<div style="max-width:62em" >
  
AudioDub takes the video stream from the first argument and the audio stream from the second argument and combines them into a single clip. If either track isn't available, it tries it the other way around, and if that doesn't work it returns an error. Example:  
+
<div {{BlueBox2|40|0|3px solid purple}} >
 +
{{AvsPlusFullname}}<br>
 +
Up-to-date documentation: [https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/audiodub.html https://avisynthplus.readthedocs.io]
 +
</div>
  
<code>
+
 
 +
{{Func2Def
 +
|AudioDub(video_clip, audio_clip)
 +
|AudioDubEx(video_clip, audio_clip)
 +
}}
 +
 
 +
'''AudioDub''' takes the video stream from the first argument and the audio stream from the second argument and combines them into a single clip. If either track isn't available, it tries it the other way around, and if that doesn't work it returns an error. Example:
 +
<div {{BoxWidthIndent|48|1}} >
 
  # Load capture segments from patched AVICAP32 which puts
 
  # Load capture segments from patched AVICAP32 which puts
 
  # video in multiple AVI segments and audio in a WAV file
 
  # video in multiple AVI segments and audio in a WAV file
Line 10: Line 20:
 
  # combine them into a single clip
 
  # combine them into a single clip
 
  AudioDub(video, audio)
 
  AudioDub(video, audio)
</code>
+
</div>
  
AudioDubEx (added in v2.56) takes the video stream from the first argument if present, the audio stream from the second argument if present and combines them into a single clip. Thus if you feed it with two video clips, and the second one has no audio, the resulting clip will have the video of the first clip and no audio. If you feed it with two audio clips, the resulting clip will have the audio of the second clip and no video.
+
'''AudioDubEx''' takes the video stream from the first argument if present, the audio stream from the second argument if present and combines them into a single clip. Thus if you feed it with two video clips, and the second one has no audio, the resulting clip will have the video of the first clip and no audio. If you feed it with two audio clips, the resulting clip will have the audio of the second clip and no video.
 +
</div>
  
 
[[Category:Internal filters]]
 
[[Category:Internal filters]]
 
[[Category:Audio_filters]]
 
[[Category:Audio_filters]]

Latest revision as of 04:22, 18 September 2022

AviSynth+
Up-to-date documentation: https://avisynthplus.readthedocs.io


AudioDub(video_clip, audio_clip)
AudioDubEx(video_clip, audio_clip)

AudioDub takes the video stream from the first argument and the audio stream from the second argument and combines them into a single clip. If either track isn't available, it tries it the other way around, and if that doesn't work it returns an error. Example:

# Load capture segments from patched AVICAP32 which puts
# video in multiple AVI segments and audio in a WAV file
video = AVISource("capture1.avi") + AVISource("capture2.avi")
audio = WavSource("capture.wav")
# combine them into a single clip
AudioDub(video, audio)

AudioDubEx takes the video stream from the first argument if present, the audio stream from the second argument if present and combines them into a single clip. Thus if you feed it with two video clips, and the second one has no audio, the resulting clip will have the video of the first clip and no audio. If you feed it with two audio clips, the resulting clip will have the audio of the second clip and no video.

Personal tools