Playing a music file with QuickTime

I am new to QuickTime programming. I am using Quick Time Version 7.4.5 on Windows Vista. I am simply trying to play a music file as a movie, no video. It successfully creates the movie object and the control displays but no music is played. I am using QTOControl (COM libraries for use with .net) for Windows. Can anyone tell me what I am missing in the below code snippet?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using QTOControlLib;
using QTOLibrary;
namespace WindowsApplication2
public partial class Form1 : Form
public Form1()
InitializeComponent();
private void Form1_Load(object sender, EventArgs e)
string errMsg = "";
try
axQTControl1.ErrorHandling = (int)QTErrorHandlingOptionsEnum.qtErrorHandlingRaiseException;
axQTControl1.URL = "C:\\path to music file.m4a";
axQTControl1.CreateNewMovie();
if (axQTControl1.Movie != null)
axQTControl1.Sizing = QTSizingModeEnum.qtMovieFitsControl;
axQTControl1.Movie.AutoPlay = true;
axQTControl1.MovieControllerVisible = true;
axQTControl1.Movie.Play(1.0);
catch (COMException ex)
// catch COM exceptions from QT control
errMsg = "Error Code: " + ex.ErrorCode.ToString("X") + "\n";
QTUtils qtu = new QTUtils();
errMsg += "QT Error code : " + qtu.QTErrorFromErrorCode(ex.ErrorCode).ToString();
catch (Exception ex)
// catch any exception
errMsg = ex.ToString();
if (errMsg != "")
string msg = "Unable to create movie:\n\n";
msg += errMsg;
MessageBox.Show(msg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}

Open the activity window while the MP3 plays. You will see it (Xbytes of Ybytes incrementing higher). Double click on it. Winds up in your downloads folder and you probably have to rename it.
You can often right click on embedded video and the save as source/as quicktime is there as well.
You can set preferences to open Quicktime in a player vs. embedded (which is what I do) and then you can saveas in the player window.

Similar Messages

  • Can't play .tod video files with QuickTime X and Lion

    I have a JVC Everio videocamera that generates .tod files in HD. With MacOs Leopard and QuickTime 7 I had to install the Everio component for QuickTime and it worked, so I could watch the videos in QuickTime and import them to iMovie HD. But with QuickTime X and MacOs Lion I cannot do any of those, and I cannot even install the Everio component. If I change the extension from .tod to .mpeg, QuickTime can reproduce it, but I cannot import the file either to iMovie HD or to iMovie of Lion.
    Any suggestion?? I would rather prefer not to have to convert the files before importing due to time spent and to possible loss of quality.

    MikelMadrid wrote:
    I have a JVC Everio videocamera that generates .tod files in HD. With MacOs Leopard and QuickTime 7 I had to install the Everio component for QuickTime and it worked, so I could watch the videos in QuickTime and import them to iMovie HD. But with QuickTime X and MacOs Lion I cannot do any of those, and I cannot even install the Everio component. If I change the extension from .tod to .mpeg, QuickTime can reproduce it, but I cannot import the file either to iMovie HD or to iMovie of Lion.
    Any suggestion?? I would rather prefer not to have to convert the files before importing due to time spent and to possible loss of quality.
    .TOD is as you imply a JVC video format. It contains MPEG2 video and MPEG1 audio which makes it similar but not identical to what might be on a DVD.
    MPEG Streamclip for Mac (free) can read .TOD files and save them to other formats, including more standard MPEG2 formats. However in this case MPEG Streamclip is still going to require the chargeable Apple MPEG2 QuickTime Component. Using MPEG Streamclip to convert to say a standard .m2v and .m1a pair of files would not lose any quality as you are merely changing the container and not the video and audio, if you changed to H.264 then you would potentially lose some quality.
    It is still possible to install QuickTime 7 on Lion and QuickTime 7 will work with older style QuickTime components, possible including the JVC TOD one. You need to download and install QuickTime 7 from here http://support.apple.com/kb/DL923
    This link may also be of use http://www2.cli.co.jp/products/ne/update_qtc_for_gzhd7/qtc3e_update.htm
    Note: If the JVC QuickTime component is only written for PowerPC chips it will never work on a Mac running Lion, in view of the apparent considerable age of Everio cameras this seems likely.

  • My QuickTime player us not playing .avi files and says I need a codec I can't play no .avi files on QuickTime. How could I fix this because I want to play these files with QuickTime.

    My QuickTime player us not playing .avi files and says I need a codec I can't play no .avi files on QuickTime. How could I fix this because I want to play these files with QuickTime.

    Hmm . . . comes with a Utility MPEG2 Component ML app with no explanation of what it's for?
    The utility app is an "assistant PKG installer." It allows Lion and Mountain Lion users to install the older QT MPEG-2 Playback Component installer PKG file which is not allowed to run on its own under Lion or Mountain Lion since these operating systems already have a QT X only MPEG-2 component embedded in the QT embedded structure. Without this utility you would have to either copy the component from an older system to your Lion or Mountain Lion system, use Pacifist for installation, or manually open the PKG contents and transfer the component to the appropriate component folder.
    As to your "discussion" regarding the playback of AVI file types, there are really only two strategies here:
    1) You can add component support so that QT can play the files natively or
    2) You can convert the file contents to compression formats that are natively compatible with the unmodified QT component configuration.
    Each user should decide for his or her own self which approach best suits their needs for a particular source file. In most cases, conforming the system's codec component configuration to play the source file directly results in higher video quality since no transcoding takes place but this strategy will not work if a codec which is required is not available for the user's operating system. On the other hand, converter utilities tend to support more built-in codecs and are easier to use since the user does not have to concern him or herself with the nature of the particular source compression formats but at the risk of some potential loss in visual quality. As to what converter to use, once again this is a matter of personal choice. In the case of commercial converters like iSkysoft, the codecs are built in while MPEG Streamclip accesses the host operating system's QT codec component configuration. I personally prefer the free HandBrake app for AVI, MKV, TS, MTS, and M2TS conversions since it has an exceptionally full-featured X.264 GUI with some user options that 97% of users are likely to never use.

  • Playing .asf Files with Quicktime?

    I have downloaded some video files, but they are .asf files, which are played with Microsoft Windows Media Player. Is there a way I can play these and possibly convert them with Quicktime? I am using QT Pro 7.0.3. I am currently using Flip4mac to open wmv files with Quicktime, but it doesn't work for asf files. Can anyone help?

    You could probably use SnapzPro X2 ( http://www.ambrosiasw.com/utilities/snapzprox/ ) to capture the clips as they play on your desktop.

  • How do i make it so iTunes plays the music files from where i have chosen to store them?

    how do i make it so iTunes plays the music files from where i have chosen to store them as opposed to it scattering copies of my files into a myriad different folders based on the albums they came from when i'm not even interested in keeping whole albums?
    I recently converted myself to mac after having been a windows formatted person since the beginning of time. I use last.fm and the client scrobbler only supports iTunes on the mac (scobbling since Nov 06 and i'm now heavily dependant upon it as a means of discovering new music) - if you don't know what that means then take it for granted i have no option other than to use iTunes as my media player whn using the mac. And almost immediately upon using iTunes i was filled with horror.
    My tale of woe as follows: I copy all my mp3 files to folder X on my new mac. I copy my simple playlist in to that same folder X. The simple playlist simply lists all the files in folder X in the order i want to hear them in... simple right? And what happens the moment i start playing my simple list? Well you probably all ready know; itunes throws copies of all those files in to the air, scatters them to the four winds so each of them fall into a little folder of their own representing the album they might once have come from. I don't keep whole albums. For me the 'album experience' is a ruse to trick one into listening to weaker material. I only keep the concentrated goodness. I only put up with albums in a previous lifetime because in the days of vinyl i had no other choice apart from spending hours compiling mix tapes. Now i am liberated from these restrictions and have been for the 15 or so years i've been using a computer to listen to music. Until along comes iTunes forcing me backwards in time, frog marching me back into the past.
    That simple list i mentioned is my one and only playlist. This single playlist has been evolving for 15 years as tracks are added and removed and their position in the list changes because that song sounds amazing when heard after that other song whereas hearing this song after that song would be like pouring custard over your sausages (for me shuffling is an abomination). And so here is how i've managed this list and managed synchronization of said list and listed files with my mp3 player (currently a Zen).
    Adding a new file: After deciding that song is a keeper i will copy it into that simple folder that holds all my music and drop it in to a position on the list i deem most suited for it. Incidentally over this entire 15 year (i'm pretty sure it's been around that long) my media player has been winamp but for the reason previously mentioned i am unable to use winamp in mac world.
    Removing a file: fortunately winamp has an option to simultaneously remove a file from the list and the hard drive. And naturally so because after all if i no longer like a song then i want it expunged completely from life or at least from my hard drive and playlist. In the brave new world of iTunes i have to remove from the list there then delete the file from where iTunes copied it from and then the place iTunes copied it to.
    Editing the list: drag an item in the list to it's preferred location and select to save it as i would for any other file using any other application... well desktop type application as opposed to one that uses a database as its primary means of storage.
    Syncing with the mp3 player: copy drag drop playlist file from the simple folder on the hard drive to the simple folder on the mp3 player as i would for any other file. And then also copy drag drop the most recently created files from simple folder on hard drive to simple folder on player after having ordered them by creation date so as to make it easier to select the most recently created. After a while the mp3 player will fill up with the files no longer on the list so i will delete all files from player then re-copy all flies from simple folder on hard drive to simple folder on mp3 player.
    I do not make changes to the list on the mp3 player so synchronization needs only to go one way: from laptop to player.
    So all very simple. Apart from editing the positions of files in the list everything is managed by copy drag dropping and deleting files using windows explorer.
    But i'm in a mac and circumstances have forced me in to the corner of using iTunes. And this whole iTunes situation is terrifying for me as over the years i've heard horror stories about it deleting all of someone's music files. Perhaps this may have been by using the software incorrectly but even so, the very fact that it appears possible for this to happen simply by using the software incorrectly and the fact that it happens with some degree of frequency given the number of reports of this happening that i have heard of over the years on music discussion forums fills me with dread that i have to now use this software. And given the software's blatant disregard for the user's choice as to where to store his/her files it's no surprise that this happens. The software is pointlessly doing dangerous things with my data. Please make it stop.
    Please can i just at the very least make iTunes play the music from the folder i have chosen to put my files in and not copy those files here there and everywhere without my say so? Thankyou.

    option discovered in preferences. Really this and any feature that moves deletes or edits a users data should as far as possible be OFF BY DEFAULT. It shouldn't by default and without the users specific say do this dangerous and unnecessary thing without even letting the user know what it's doing!!! And then cause me a few hours (as i'm new to mac) searching for the option so as to switch it off. If i hadn't noticed the status cage declaring that it was copying files then i might never have twigged that this insane thing was occurring. And if i hadn't of noticed i would have been left maintaining the contents of the folder i copied the files to, the folder which as far as i was informed and so believed was also the location of the music files i was playing. How does Apple justify this 'genius' piece of software non-design? Surely it will hurt no one if this was off by default for new users - overall at least i dare say it would cause a lot less distress in the future for the unsuspecting public at large. Thanks for the support.

  • Can't play HD .mov files (in Quicktime, iMovie, or FCP)

    Hello,
    My Powerbook (bought in 2004) is senile and having various problems (see below for more details), so perhaps this issue can't be fixed without fixing the other stuff (or getting a new computer)... but just curious.
    I'm helping a friend with a video project, and he brought over his small Lacie external HD with his footage on it-- recorded with an HD video camera, then imported into iMovie HD, now simply a bunch of .mov files in a folder.
    When I try to open of the files with Quicktime Pro, it gives me a white screen and plays the sound, and tells me the "component is missing", and that i can try to find it on the Qcktime site, but I couldn't figure out which Codec to try (and you have to pay for them all?). I also tried updating my Quicktime to 7.4, and the exact same thing happens.
    When I try to open them with iMovie 4.0.1, it says "Can't open [this file]; skipping and continuing".
    When I try to open them with FCP 4.5 HD, it says "Codec Not Found, you may be using a compression type without the corresponding hardware card"
    Any ideas? Should I try erase-and-install with my whole system, after a backup onto my own external HD? I can't reinstall FCP because my disks are in America (I'm in Hong Kong), but even if it doesn't work with that, is there a way to make it work in iMovie?
    Thanks very much--
    Samantha
    PS- Background on my computer troubles of late-- in December I was having some problems with various things, which led me to try and repair the hard-disk, which didn't work. Some of my questions/conversation are on this thread.
    http://discussions.apple.com/thread.jspa?threadID=1256737&tstart=0
    Then for Christmas I bought DiskWarrior, ran it, but it couldn't repair the disk/replace the system because of some "error". Which makes me think I have some serious Hard-disk problem-- although the hardware seems fine according to SMART. So right now i'm just trying to get through a few of these big projects before trying erase-and-install with my whole system, and if that doesn't work, then probably investing in a new computer. Time to upgrade perhaps.
    Was having some weird problems before, so ended up getting DiskWarrior,

    Hi-
    Referring to this post:
    "The AIC codec is installed by iMovie HD and is just what its name implies. Intermediate (temporary conversion from one file format to another).
    Your G4 will not be able to play the file past a few frames per second because of the large dimensions and high data rate even if you did find the codec. You'll find editing it using QuickTime or iMovie a frustrating experience because of those facts."
    I'm a little confused-- do you mean that the G4 computer is just not strong enough to edit HD files "even if I did find the codec"? I was planning to edit it with Final Cut Pro (have never edited a HD project before), but is my computer not adequate? Let me know if there is any way for me to tackle an HD project with my current laptop-- otherwise I guess I really need to look into a new one.
    -shc

  • Try to open mov file with quicktime, says can't open pdf files.

    Hi to everyone,
    Suddenly I try to open a mov, any mov file, with quicktime 10.4 and some times opens the finder and nothing more, some times says that it cannot open one pdf document ( a document I actually have but never try to open with QT). some times QT says it canot open some png or jpg file.
    But I double click mov files. And the incoherence is permanent, I mean that for the same movie file says it can't open the same pdf file, and in other file the same png, or the same jpg.. it depends on the mov file I try to open.  Like if somewhere, somme kind of cache, adresse or reference is wrong.
    this is the text of one of those messages when I double click a mov file:
    "The document “phoenixRoomfillerB_v001_0104.jpg” could not be opened. QuickTime Player cannot open files in the “JPEG image” format."
    And if I try again and again, at some point QT open only the finder window.
    The weird thing is that on the finder window i can see the preview and play the preview. and the same mov files play well with VLC. And if I copy the mov file to my desktop it plays well unless QT start to open only the finder window, if that happens it does not work anymore with any file.
    The files are on an external drive with 3 partitions.
    And I make all the possible cleaning that I can:
    I am the administrator of the imac and I am the only one to use it.
    I am the owner of the volume
    I use disk utility to check and everything is ok
    I use onyx to clean as much as possible, cache, boot, volume structure, smart status, home folder permissions, kernel, extensions, QT components, etc. and everything works fine.
    Imac 27 inch late 2012.
    Intel 3.4 GHz  i7
    32 Gb Ram
    NVIDIA GeForce GTX 680MX 2048 MB
    thanx.

    Try QT v7.x which is located inside your Utility folder.

  • ITunes 10.5 Won't Play wav Music Files

    I installed iTunes 10.5.0.142 on Windows 7 64, SP1 and I can no longer play wav music files which have been in my library from the beginning. I have a mirror Windows 7 client that has iTunes 10.4 installed and it still plays the wav music files. My iTunes library is on a Seagate BlackArmor NAS device, so both clients are accessing the same music files. The problem is that iTunes 10.5 refuses to play the wav files, but iTunes 10.4 and all previous releases of iTunes played them without issue. Could someone advise on how to solve this problem, or is this a defect with iTunes 10.5? I  downloaded and installed iTunes 10.5 for Win on October 11th.
    Also, after installing iTunes 10.5, I synchronized my iTunes library on my iPhone. The wav files play fine on the iPhone, but not on my Win 7 client with iTunes 10.5.
    Thanks for your help.

    I just downloaded and installed iTunes 10.5.1.42 and all of my problems have been solved.
    All audio books now play
    All wav files play
    Tinny sound reported by others seems much improved with this update
    The updated version of iTunes launches much faster on Win 7 64bit SP1The download and update for 10.5.1.42 ran smoothly and the install/upgrade worked the first time.
    Thanks to all who helped.

  • Associating music files with palylists and/or music library

    My HD went out but luckily (I thought) I had a backup of my iTunes folder on an external drive. After installing the new hard drive and all the updates to TIGER 10.4.x I copied my original iTunes folder to new drive to the music folder.
    I see all my files in my library and play lists, but they all have an "!" by them and when I choose a particular song, a message comes up saying that iTnes can NOT find the associated music file (even though the file is actual there in the iTUnes folder and on my HD). Short of manually associating every library/playlist song with the actual music file (more that 2,000 files), is there any automated process or method to associate all the music files with the library/playlist files?????

    Morris:
    First, back up your iTunes Library file - just in case the original gets damaged, you will have a clean copy to restore to.
    *From the File menu, select Export Library and save as an .xml file to your desktop.
    *Go to iTunes Preferences>>Advanced, and make sure that you have DESELECTED Copy music to iTunes folder when adding to library and SELECTED Keep iTunes Music folder organized.
    *Close iTunes
    *Now, go to the ~/Music/iTunes folder and remove the
    b iTunes Library
    file from this folder.
    *Restart iTunes - your Source Menu and Library should be empty of everything except the standard preset playlists.
    *From the File Menu, select "Add to Library" and navigate to the location of your music files.
    *When the import process is finished, go to the File Menu, select Import and navigate to the Library.xml file you created in the first step.
    Your links between songs should be reestablished and your metadata intact.
    Good luck and let us know how you make out.
    Lita

  • Converting mov files with Quicktime Player for iDevices

    I wasn't sure if should post this under iPad or here or at all as it is about coding, but it is about coding for Apple iDevices that can't display Flash, using Quicktime Player or QT Player 7 Pro:
    I'm trying to add the ability for Apple iDevices that can't display tutorials I created in Flash, to see them with H.264. I read that I can simply open the original tutorial that luckily is a .mov file with Quicktime Player 10 in Snow Leopard and File > Save For Web and QT will convert to H.264 and also output several files needed to upload to your server.
    But the only options are for iPhone, iPhone (cellular) and Computer. I assume an iPod would use the iPhone file, but iPad didn't exist yet.
    I chose iPhone and Computer for my test. I got 2 .m4v files a .jpg, a small .mov and a .html page with the code I needed to copy/paste to my target html page.
    Uploaded the files and could see the tutorial movie with my iPad fine. Using FireFox, I saw the beginning of the movie, then got the beachball. After a long wait, I tried a force quit and found that my Mac Pro was crashed too so had to hard shut down. Hate that.
    Rebooted the computer. Tried accessing with Safari this time and it worked fine.
    I also own Quicktime Player 7 Pro pre Snow Leopard (I'm running Snow Leopard now) and tried the conversion with it and noticed a few more config choices, like for frame rate. But the resulting code was about 29 lines of code with expected parameters versus 2 lines of code in the QT Player code which actually really surprised me. With both apps they have JavaScript references for the head tab to files on Apple's library on their site.
    So.. I'm wondering why FF and my computer crash, I did output for computer as well as iPhone. And what to do for FF users and the fact that there's no specific output for iPad, am I OK just using the iPhone output since I can see the file OK on my iPad test.
    Last, I've been reading about HTML5 versus Flash, but assume that what both my QT apps are outputting is HTML4. In the QT Player code there isn't even an embed tag, let alone the video tag I've read about, just a href to the exported Saved For Web .mov file, which I assume must point to the .m4v files that QT outputs and puts in the same folder as the other files, but there's no direct reference to them.
    Sorry for the length, or if this isn't the place for these questions, but I do want to get this right before I convert about 20 tutorials
    I wonder if I should wait until Lion and see if QT is changed to fix the FF crash and adds output for iPad?
    One last thing: when you access the converted file with an iPad, first you see a jpg of the first frame with "Click to Play" in the center. When you do, you get the movie with a play triangle which you have to press to actually start the movie. But when you access the same html file with Safari, all you have to do is click the "Click to Play" and the movie starts as expected. Bug?

    QuickTime X and QuickTime Player Pro create slightly different html code (but it all works about the same way). The "click to play" image file, a "reference" movie, multiple versions for different devices and the html code to preview the page and use as copy/paste into your Web page.
    QuickTime X has fewer options than QuickTime Player Pro. The iPhone preset works just fine on the iPad.
    Your Firefox crash may have been just coincidence and I doubt it was caused by the page code.
    You may want to wait a while longer for the HTML 5 code because browser support is still in the learning stage and millions of PC users still use out of date browsers.
    The reference movie points to the different versions of the file. The code "reads" the device and serves up the correct version for it.
    I don't own an iPad but I suspect it works like my iPod Touch. All of my QuickTime files have the play "triangle" so the click to play image style page requires two clicks on it.

  • Can't view .mov file with quicktime

    Hello. I need help viewing a .mov file with Quicktime 7.5. It was recorded on a Canon Vixia HV30 camcorder and given to me on a dvd. But when I try to view the .mov file with Quicktime, I can hear the audio but the screen is black. Sometimes, it asks me to continue to the following link:
    http://www.apple.com/quicktime/resources/components.html?os=Windows&ctype=696d64 63&csubtype=69636f64
    I'm not that computer savvy - what is wrong? Any advice would be greatly appreciated. Thanks in advance!

    Sorry. My "then" (above) should have been "they".
    They sent you a data DV containing the "source" from the camera and the HDV codec isn't available on your PC so you can't view the file.
    Ask the authors to convert the file using H.264 Video codec (or others) so your Windows version of QuickTime can play the file.

  • How do I view ipod music files with out using I tunes?

    I trying to view my Ipod music files without using itunes. But when I conect my Ipod to my pc I can only view contacts, notes, and caladar through the driver.
    How do I view ipod music files with out using I tunes?

    they should be under ur my music folder if u have windows

  • HT204382 I can't open a .wmv file with quicktime player.  Shouldn't I be able to?

    I can't open a .wmv file with quicktime player.  Shouldn't I be able to?

    No. To do so you need to install Flip4Mac WMV Player 2.4.4.2.

  • Unable to open PDF files with Adobe Reader, Mac trying to open files with Quicktime instead, but not succeeding. HELP!

    Unable to open PDF files with Adobe Reader, Mac trying to open files with QuickTime instead, but not succeeding. HELP!

    Hi BDAqua,
    Thanks for the info, I dragged a PDF to desktop ctrl-, get info. change all to open with adobe.
    Problem solved, many thanks for a quick response.
    Barry69

  • I can't blow up PDF files with QuickTIme 10.1

    I can't blow up PDF files with QuickTIme 10.1 on my MacBook Pro 10.74. What am I doing wrong? For example, on-line menus for restaurants come up very small and only show me one page.

    I updated from within the Adobe Reader X program (Help > Check for Updates) and it tells me: No updates available. Installed: Adober Reader X (10.1.8) MUI
    Is 11.0.5 something I would have to access another way?
    Also, I'm still not sure if that would fix my problem. It seems most people with the "Access Denied" error had it fixed with the very first 10.1 update, and I have 10.1.8, so I'm not sure what's causing mine.

Maybe you are looking for

  • Problem when connect to SAP

    Hi All! When i create an Addon Application I Register String to connect to SAp by: Right click in my app/properties/Debug/ and input command line Agruments. And in myclasses I call: Private Sub SetApplication()         '// Use an SboGuiApi object to

  • Run Report Through Menu in 10g

    Hi Gurus I am new to Development. I have managed to create a .jsp file using Report Builder in 10g. This report has user-defined parameter. I also have a Form with Menu. Now I want to add a menu item so that when user click on it the report that I ju

  • Fragment view in unicode systems.

    Hi all, Every one working on the new unicode enabled system must be aware of the concept of <b><i>fragment views</i></b>. There is a piece of code that i have used which says that the two structures are incompatible. Here is the piece of code i used

  • Motion or After Effects

    Folks, I suspect that I'll get very pro-motion answers here, but I'd like to know people's opinions about which is better: Motion 3 or After Effects CS3. I know that there are always differences that make comparing any two programs like apples (pardo

  • What photo editing software is everyone using and why?

    I am trying to find a good photo editing software to use and before spending any money on it would like to hear everyones opinion on what they use and why? Originally I intended on purchasing aperture ... but I am under the impression that aperture i