Answer by DevLoverUmar for Extracting Audio channel from a video file to feed...
For windows 10, I solved my problem this way:I downloaded and installed ffmpeg for windows from hereExtracted wav audio files from videos as: import os,shlex, subprocessfiles = os.listdir('.')#convert...
View ArticleAnswer by Xarvalus for Extracting Audio channel from a video file to feed in...
You can extract the audio of video by eg.:import subprocesscommand = "ffmpeg -i C:/test.mp4 -ab 160k -ac 2 -ar 44100 -vn audio.wav"subprocess.call(command, shell=True)And pass the *.wav file as tensor...
View ArticleExtracting Audio channel from a video file to feed in decode_wav function of...
I want to feed audio channel of a video file to the following TenorFlow function:tf.audio.decode_wav(contents,desired_channels=-1,desired_samples=-1,name=None)Where Args:contents: A Tensor of type...
View Article