Message Boards Message Boards

1
|
12617 Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Can I extract .WAV audio from a .MOV video file?

I have a 99 minute and 43second .MOV video in ProRes422 720p format which I imported into Mathematica
Import["E:\\3180\\3180HDV720p.mov"]

The output I got was the following array with 358651 elements.
Out[] = {1,2,3, … 358649,358650,358651}

I hope to be able to extract the accompanying audio as a .WAV file.  Can I do this in Mathematica?  If not, can anyone tell me what I can do with this file using Mathematica?

Thank you
  Michael
POSTED BY: Michael Lyda
2 Replies
Posted 11 years ago
I think one way ‘around’ it is to use ffmpeg(windows) or avconv (linux) (http://www.ffmpeg.org/)

in Mathematica
Run[“ffmpeg –i filename.mov filename.wav”]

then you can use the Import command to load the .wav file
data = Import["filename.wav", "Data"]

Oren
POSTED BY: Oren Sternberg
Please take a quick look at the documentation for this file format in the documentation:
http://reference.wolfram.com/mathematica/ref/format/QuickTime.html

 Running Import without additional arguments only returns a list of names of the frame indicies in the movie.

You have to provide a second argument to Import that tells it what to import. For example, Import["ExampleData/clip.mov", "ImageList"] produces a list of of images based on the frames of the video.

I don't see anything in the documentation that allows you to export or import the audio for this filetype.
POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract