AudioTrackApply

AudioTrackApply[f,video]

applies the function f to the first audio track of the Video object video.

Details and Options

Examples

open allclose all

Basic Examples  (1)

Apply a lowpass filter to the audio track of a video:

Show the spectrogram of the result:

Scope  (2)

The whole audio track is passed to the function as an Audio object. Normalize the audio track:

Perform frequency shifting on the audio:

Show the spectrogram of the transformed audio track:

Options  (6)

AudioEncoding  (1)

By default, AudioTrackApply attempts to preserve the encoding of the original audio track:

Specify the audio encoding to use:

AudioTrackSelection  (1)

By default, the function is applied to the first audio track of the input video:

All the remaining tracks are copied over to the result:

Select the audio track to which the function will be applied:

Use AudioTrackSelectionAll to apply the function to all input tracks:

CompressionLevel  (1)

Use the CompressionLevel option to control the compression level of the processed track:

GeneratedAssetLocation  (2)

Assets are automatically generated in the "Video" folder within $WolframDocumentsDirectory:

Specify the location of the generated asset:

Use a LocalObject as the asset for the resulting Video object:

OverwriteTarget  (1)

By default, if a file already exists it is not overwritten:

Overwrite an existing file by specifying OverwriteTargetTrue:

Properties & Relations  (1)

AudioTrackApply applies a function to the audio track of a video file and returns the video with processed audio track:

Show the plot of the transformed audio track:

To get only the transformed audio track, extract the audio track from the video first:

Wolfram Research (2020), AudioTrackApply, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioTrackApply.html.

Text

Wolfram Research (2020), AudioTrackApply, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioTrackApply.html.

CMS

Wolfram Language. 2020. "AudioTrackApply." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AudioTrackApply.html.

APA

Wolfram Language. (2020). AudioTrackApply. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioTrackApply.html

BibTeX

@misc{reference.wolfram_2024_audiotrackapply, author="Wolfram Research", title="{AudioTrackApply}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/AudioTrackApply.html}", note=[Accessed: 24-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_audiotrackapply, organization={Wolfram Research}, title={AudioTrackApply}, year={2020}, url={https://reference.wolfram.com/language/ref/AudioTrackApply.html}, note=[Accessed: 24-November-2024 ]}