# How to read audio tracks from quicktome movie?

**URL:** <https://discourse.libcinder.org/t/how-to-read-audio-tracks-from-quicktome-movie/679>\
**Category:** Using Cinder\
**Created:** [May 8, 2017, 10:16am UTC](https://discourse.libcinder.org/t/how-to-read-audio-tracks-from-quicktome-movie/679 "2017-05-08T10:16:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eduard](https://avatars.discourse-cdn.com/v4/letter/e/3da27b/32.png) [@Eduard](https://discourse.libcinder.org/u/Eduard)\
**Post date:** [May 8, 2017, 10:16am UTC](https://discourse.libcinder.org/t/how-to-read-audio-tracks-from-quicktome-movie/679/1 "2017-05-08T10:16:50Z")

</div>

Hello!  
In my app I processing video frames from quicktime movie, getting them with ci::qtime::MovieGlRef.  
Is it possible to get audio data from audio tracks of movie within cinder to process and play them?

---

<div class="post-metadata">

**Author:** ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)\
**Post date:** [May 8, 2017, 7:04pm UTC](https://discourse.libcinder.org/t/how-to-read-audio-tracks-from-quicktome-movie/679/2 "2017-05-08T19:04:08Z")

</div>

I’m not sure if you can extract the data from Cinder, but you can always use ffmpeg to process the video file to get the audio.

---

<div class="post-metadata">

**Author:** ![Eduard](https://avatars.discourse-cdn.com/v4/letter/e/3da27b/32.png) [@Eduard](https://discourse.libcinder.org/u/Eduard)\
**Post date:** [May 9, 2017, 7:30am UTC](https://discourse.libcinder.org/t/how-to-read-audio-tracks-from-quicktome-movie/679/3 "2017-05-09T07:30:33Z")

</div>

You mean Cinder-FFmpeg block?

---

<div class="post-metadata">

**Author:** ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)\
**Post date:** [May 9, 2017, 7:45am UTC](https://discourse.libcinder.org/t/how-to-read-audio-tracks-from-quicktome-movie/679/4 "2017-05-09T07:45:52Z")

</div>

I meant calling ffmpeg from the command line and extracting the audio to disk.

---

<div class="post-metadata">

**Author:** ![Eduard](https://avatars.discourse-cdn.com/v4/letter/e/3da27b/32.png) [@Eduard](https://discourse.libcinder.org/u/Eduard)\
**Post date:** [May 9, 2017, 8:04am UTC](https://discourse.libcinder.org/t/how-to-read-audio-tracks-from-quicktome-movie/679/5 "2017-05-09T08:04:28Z")

</div>

O! That’s unexpected.  
I’ll keep this idea as last solution, if no other will be found.  
Thank you.  
But how to get it with cinder?

---

<div class="post-metadata">

**Author:** ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)\
**Post date:** [May 9, 2017, 9:08am UTC](https://discourse.libcinder.org/t/how-to-read-audio-tracks-from-quicktome-movie/679/6 "2017-05-09T09:08:25Z")

</div>

You run something like the following command with `std::system`:

`ffmpeg -i video.mp4 -vn -acodec copy audio.mp4`

---

<div class="post-metadata">

**Author:** ![eight\_io](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/eight_io/32/57_2.png) [@eight\_io](https://discourse.libcinder.org/u/eight_io)\
**Post date:** [May 9, 2017, 9:22am UTC](https://discourse.libcinder.org/t/how-to-read-audio-tracks-from-quicktome-movie/679/7 "2017-05-09T09:22:07Z")

</div>

See if this is [helpful](http://discourse.libcinder.org/t/cinder-audio-and-playing-video-at-the-same-time-ios/422).

–8

---

<div class="post-metadata">

**Author:** ![Eduard](https://avatars.discourse-cdn.com/v4/letter/e/3da27b/32.png) [@Eduard](https://discourse.libcinder.org/u/Eduard)\
**Post date:** [May 9, 2017, 11:28am UTC](https://discourse.libcinder.org/t/how-to-read-audio-tracks-from-quicktome-movie/679/8 "2017-05-09T11:28:09Z")

</div>

Thank you eight\_io.  
I’ve seen this before, and it has great [link](https://chritto.wordpress.com/2013/01/07/processing-avplayers-audio-with-mtaudioprocessingtap/), but it’s in Objective-C. For now it does not help - i think I should dive into Objective-C, but not yet ☹
