Video and Audio in Turing
Author |
Message |
unoho
![](http://compsci.ca/v3/uploads/user_avatars/9594019524c18337ec70d8.jpg)
|
Posted: Mon Jun 01, 2009 9:43 pm Post subject: Video and Audio in Turing |
|
|
Does anyone know if you can make a video player using turing?? For my final ISU, im trying to make a media player that would play both audio and video. I tried searching it up on google, but didn't really get any satisfactory result.
Also, does anyone know how i can extract data from an audio file and use that to make a visualizer?? (I already made the visualizer, i just need to know how to extract the frequency of the music and high bass, low bass etc).
Thank you |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Mon Jun 01, 2009 11:04 pm Post subject: RE:Video and Audio in Turing |
|
|
You can make a video player in turing but it would mean remaking the video decoder in turing for each format you want to support. There is no play video command.
Another method is to use a program to spearte the audio from a video clip and break the video in to image files of each frame and play them back with the audio witch has been done before ( http://compsci.ca/v3/viewtopic.php?t=10788 ). Turing also supports gifs so you could have the video in an animated gif format and audio in playing in a spearte audio type.
Turing's comands for playing back music do not have any way to get any data about the aduio being played (such as frequency, etc) and is lmited to stoping and starting it, so a visulaizer is not easly done.
Like the video you would have to make your own program in turing for reading the audio format and playing it back. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
DemonWasp
|
Posted: Tue Jun 02, 2009 8:29 am Post subject: RE:Video and Audio in Turing |
|
|
Addendum to Dan's post: For audio, Turing only supports playing audio from a few given file types, and has no pause / rewind / fast forward controls. You would have to decode the audio from your video and re-encode it (in small, bite-sized portions, so you can start/stop/pause, etc) to something Turing likes in a separate file, then tell Turing to play it.
It would be interesting, but non-trivial. You'd certainly learn a lot about codecs though. |
|
|
|
|
![](images/spacer.gif) |
|
|