Wav - windows media file properties

hi all, is there a way to get properties from a .wav (windows media) file? for example, the time duration of the media?
thanks in advance.
Giovani Salvador

hi Giovani,
hope this helps:
(from http://java.sun.com/products/java-media/jmf/2.1.1/guide/JMFPresenting.html#93867)
Getting the Duration of the Media Stream
Since programs often need to know how long a particular media stream will run, all Controllers implement the Duration interface. This interface defines a single method, getDuration. The duration represents the length of time that a media object would run, if played at the default rate of 1.0. A media stream's duration is only accessible through a Player.
If the duration can't be determined when getDuration is called, DURATION_UNKNOWN is returned. This can happen if the Player has not yet reached a state where the duration of the media source is available. At a later time, the duration might be available and a call to getDuration would return the duration value. If the media source does not have a defined duration, as in the case of a live broadcast, getDuration returns DURATION_UNBOUNDED.
There are some other ways to control the duration of the media. For example, if you need to wait the media stream to finish, you can listen for StopEvent, EndOfMediaEvent...

Similar Messages

  • Wave vs Windows Media File sizes

    I installed iTunes on my Windows PC. I have a tune on my PC that is a Windows Media File that is 4626 kb. I imported the tune to iTunes and it converted it to Wave Sound and the file size is now 50,665 kb which is more than ten times bigger than the Windows Media file. As a test I then did this with a couple of albums and the same thing happened with all the selections on each album. It seems like I need ten times the disk space when using iTune than when using Windows.
    Can anyone explain what is happening here.
    Thanks
    Ted

    WMF (and MP3 and AAC) is a compressed and lossy format. You lose sound quality.
    WAV is not. A WAV is the same size as the file on a regular audio CD, usually ~35-75 MB.
    When you convert from a lossy format (WMF) to lossless format (WAV) the quality will be the same.
    If you convert between WMF/AAC/MP3, you quality will go down each time.
    When you convert between formats, you should always start off with the best possible quality (WAV or AIFF or CD).
    With iTunes the default format is AAC 128 kbps.
    This is a good compromise between file size and sound quality.
    AAC is a higher quality sound when using the same bitrate as an MP3.
    AAC and MP3 will be very close to the same file size when using the same bitrate.
    However, 128 kbps AAC will sound at least as good as a 160 kbps MP3 and the AAC will be about 2/3 the size.
    I use AAC 160 kbps. I can definitely hear the difference between 128 and 160 kbps AAC.
    If you are importing from CDs, you should use AAC 128 kbps (but I recommend 160 kbps).
    Open iTunes prefs -> Advanced -> Importing.
    This is where you can change the Import settings.
    (see below)

  • Converting Wav File to Windows Media File

    Hi
    Ive created some audio files that i would like to convert into Windows Media Files, is there any way of doing this in Logic 7
    Ive converted to MP3 successfully but cant find a way of converting to wma??
    Any Help gratefully received
    Jonny Spall

    You may want to look into WMV Studio Pro HD (but only God knows why you want this format).
    http://www.flip4mac.com
    jord

  • I have converted most of my windows media files to itunes. However I had to close it down about 3 quarters of the way through. It then processed the album art. How can I convert the files that it didn't finish doing the first time? thanks

    Hi there,
    hope you can help me. I helped my sister convert her window media files to itunes and set up an account for her. Unfortunately her computer is really slow and it was really late and we had to turn it off. It processed some of the album art for the files that it had converted. However, some songs were not converted and because there was quite a few left, I don't really know which ones did not get converted as I selected  all of the folders. How do I find out which ones I have left to convert and put the rest of the songs onto itunes for her please? Or are they on the itunes still as they showed up initially on itunes in the list to be converted.
    Thank you!

    You could convert them all again and then dedupe, or use a Windows search to reveal all the WMA files and then try to work out which still need to be converted. If you're lucky iTunes would have processed the imports in alphabetical path order so it would just be a matter of working out where it had got up to...
    tt2

  • Is there a way to view windows media files on an iPhone?

    Is there a way to view windows media files on an iPhone?

    There are some apps that provide for viewing the closed/proprietary format such as OPlayer.

  • Safari tries to open Windows Media files using iTunes

    Sometimes when I try to view a Windows Media file on my PowerBook running 10.3.9 instead of the Windows Media player opening to play the file iTunes will open. When that happens I have to force quite iTunes and Safari, locate a WMV file on my hard drive, use the Get Info window to set all WMV files to open using the WMV player. It wouldn't be so bad if I only had to do this once, but I have to do it over and over again from time to time.
    I'm not sure but repairing permissions might be one of the triggers that requires me to redo this, but it might not be necessary for me to repair premissions in order for this to happen. I can fix the problem when it occurs, but it's annoying and a waste of time to have to do it over and over again.
    Has anybody else had this problem? anybody know hot to fix it once and for all? Thanks.

    Upgrade to newer version which is comparable with Yosemite.

  • Windows Media file write failure

    Help, I'm using a Gateway computer with Windows XP Professional OS, version 2002 and Service Pack3. It has Intel Core CPU, 6600 @ 2.40GHz, 2.41 GHz, 2.00 GB of RAM. I have both Premiere Pro CS3 and CS4 installed. There's 54.1 GB of free space on my Hard Drive with 94.9 GB used.
    I used to create .wmv files without issue with CS3 but with CS4 there's a failure every time. The project exports to Media Encoder and Encoder goes through all of the process and even looks like it finishes up. But once it gets to the end, here's the message I get.
    Windows Delayed Write Failed
    Windows was unable to save all the Data for (my file) The Data has been lost. This error may be caused by a failure of your computer hardware or network connection. Please try to save file elsewhere.
    It also had this message in separate window:
    Adobe Media Encoder Debug Event
    Adobe Media Encoder has encountered an error.
    [..\..\src\Batch.cpp-186]
    I tried changing all of the variables I could in the Media Encoder for creating a Windows Media File. For ex. you can choose several presets: "NTSC source to high quality download" "NTSC Source to Download 1024kbps " and several others. I haven't tried changing anything on the Filters, Audiences, Video, Audio or Others tabs. I never had to with CS3. Plus I don't know much about the Codec for Video or Audio.
    Any help is appreciated.

    Rick,
    WMV is a very intense CODEC to work with. It requires power and time on either end - decoding or encoding. My guess would be that the throughput of the USB 2.0 connection just cannot keep up with that processing, where many other formats/CODEC's are easier to work with.
    As for the minimum requirements, we find that they are horribly light. To lift from Monty Python, "we blow our noses in their general direction." They are provided to tell a user what it takes to install and launch the program, but when it comes to using said program - well, that is usually another matter.
    If you have a desktop, and it has room in the case, you can most likely just add two more (2x is about the true min., and 3x is better) physical HDD's, of the controller type as your C:\. Depending on the MoBo, you probably have a SATA controller, and could add up to 3 additional drives, for basically the price of the drive, some cables, if not supplied, and a few screws. Most cases have the necessary mounting, or cages, for additional drives. Note the words "most," "probably," etc., as nothing in the PC world is created equal.
    Were I making the request, I'd propose adding 2 more HDD's, at 7200 RPM and of the same controller type as your C:\. I'd ask for a minimum size of 500GB, but shoot for 1TB for each. Do not know if you have a Fry's Electronics near you (they are a Western US retailer), but they constantly have at least one such HDD on sale per week, and at very good prices.
    Ignore SCSI. It's good and fast, but the drives are limited in size and the $/GB is not high. A RAID 0 array would be good for the media drive (actually it would be 2 HDD's), but to really benefit, one would do best with a hardware managed RAID, and most RAID controllers on MoBo's leave something to be desired. Harm makes recommendations for dedicated hardware RAID, but then you are talking having to do a real "dog & pony" show for you CFO, or Controller!
    Maybe Harm has some suggestions, considering that you are on a city's budget.
    Good luck, and glad that things are working for you. Think about relegating that USB 2.0 external to archiving Assets.
    Hunt

  • Windows 7, file properties - Is "date accessed" ALWAYS 100% accurate?

    Hello,
    Here's the situation: I went on vacation for a couple of weeks, but before I left, I took the harddrive out of my computer and hid it in a different location. Upon coming back on Monday (January 10, 2011) and putting the harddrive back in my computer, I
    right-clicked on different files to see their properties. Interestingly enough, several files had been accessed during the time I was gone! I right-clicked different files in various locations on the harddrive, and all of these suspect files had been accessed
    within a certain time range (Sunday, ‎January ‎09, ‎2011, approximately ‏‎between 6:52:16 PM - 9:06:05 PM). Some of them had been accessed at the exact same time--down to the very second. This makes me think that someone must have done
    a search on my harddrive for certain types of files and then copied all those files to some other medium. The Windows 7 installation on this harddrive is password protected, but NOT encrypted, so they could have easily put the harddrive into an enclosure/toaster
    to access it from a different computer.
    Of course I did not right-click every single file on my computer, but did so in different folders. For instance, one of the folders I went through has different types of files: .mp3, ,prproj, .3gp, .mpg, .wmv, .xmp, .txt with file-sizes ranging from 2 KB
    to 29.7 MB (there is also a sub-folder in this folder which contains only .jpg files); however, of all these different types of files in this folder and its subfolder, all of them had been accessed (including the .jpg files from the sub-folder) EXCEPT the
    .mp3 files (if it makes any difference, the .mp3 files in this folder range in size from 187 KB to 4881 KB). Additionally, this sub-folder which contained only .jpg files (48 .jpg files to be exact) was not accessed during this time--only the .jpg files within
    it were accessed-- (between 6:57:03 PM - 6:57:08 PM).
    I thought that perhaps this was some kind of Windows glitch that was displaying the wrong access date, but then I looked at the "date created" and "date modified" for all of these files in question, and their created/modified dates and
    times were spot on correct.
    My first thought was that someone put the harddrive into an enclosure/toaster and viewed the files; but then I realized that this was impossible because several of the files had been accessed at the same exact time down to the second. So this made me think
    that the only other way the "date accessed" could have changed would have been if someone copied the files.
    Is there any chance at all whatsoever that this is some kind of Windows glitch or something, or is it a fact that someone was indeed accessing my files (and if someone was accessing my files, am I right about the files in question having been copied)? Is
    there any other possibility for what could have happened?
    Do I need to use any kinds of forensics tools to further investigate this matter (and if so, which tools), or is there any other way in which I can be certain of what took place in that timeframe the day before I got back? Or is what I see with Windows 7
    good enough (i.e. accurate and truthful)?
    Thanks in advance, and please let me know if any other details are required on my part.
    P.S. The harddrive is NTFS.

    Never mind.  Someone else already answered this for me:
    "I use last accessed-created date time stamps all the time when troubleshooting-investigating software installs, its been very accurate in my uses of it in NTFS file systems.
    Since some of the dates are while you were gone, I assume it was several days to a week, I would say someone did access those files.
    These timestamps along with other data are used by computer forensics teams to reconstruct what a user did on a computer.
    Experienced Hackers use software to alter these time stamps to cover their tracks when breaking into computer systems."
    http://superuser.com/questions/232143/windows-7-file-properties-is-date-accessed-always-100-accurate/232320#232320
    Additionally, I just now found out what happened. Someone else found the harddrive and thought it was theirs (since it was identical to one they had been missing), so they put it in their computer and scanned it with an anti-virus software. They realized it
    wasn't theirs and then put it back in the place I had hidden it.
    In my original question, I stated a possible theory that someone may have copied the files, but I later realized that copying in itself doesn't affect the "date accessed" of the original/source file, but rather only the "date accessed" of
    the copy.
    Thanks to all those that may have read my question.

  • Mailed PDF files arrive on Windows platform as corrupt Windows Media files

    Recently I mailed some .pdf files to 3 of the Windows machines on our network. Each of them reported that when attempting to open the .pdf file on the Windows machine, their system tried to use Windows Media instead of Adobe Reader. Of course they received an error message. When they saved the .pdf files on their machines, the files opened correctly in Adobe Reader.
    These are files that I downloaded from the State of Oregon. After we had problems there, I mailed them some of the .pdf files I had created. Same results. The Windows machine treats them as corrupt Windows Media files.
    I am the only Mac in our company. Of course the problem must be mine!?!
    I am using MS Entourage as my mail client.
    Suggestions? Comments? Answers?
    Thanks!!

    Kappy,
    No problem! Your suggestions were what made me consider the extension option in Entourage's preferences. Unfortunately, it didn't work.
    Your suggestion also prompted me to try the same thing using Mail. Mail worked just fine, so the problem is in how Entourage handles the .pdf file being sent to a Windows computer where it will be opened either in Outlook or Internet Explorer.
    It seems that Somewhere along the line, the .pdf extension is being changed to a .png extension which triggers the launch of Windows Media Browser.
    I just rebuilt the Entourage database and I'll see what happens now.
    Whit

  • Any ideas why a film I have  converted to mp4 format, that plays with sound through my PC windows media file- only has a picture but no sound when transferred to my ipod touch via the Itunes?

    Any ideas why a film I have  converted to mp4 format, that plays with sound through my PC windows media file- only has a picture but no sound when transferred to my ipod touch via the Itunes?

    See:
    iTunes: May be unable to transfer videos to iPhone, iPad, or iPod
    iTunes: Frequently asked questions about viewing and syncing videos

  • How to encode FCP files to Windows Media files by using Discreet Cleaner?

    Do you know how to encode from FCP to Windows Media files in Discreet Cleaner 6.0?
    Which is the right settings?
    I got errors when I tries
    In beforehand thank you very much for your answer

    Hello Mikey
    I have put up the following in the settings in Cleaner 6.0.1:
    SETTING
    Windows Media
    OUTPUT:
    Windows media
    TRACKS:
    Video media will be encoded into the output file
    IMAGE:
    - crop: manual
    - image size: 320x240
    - constrain aspect ratio: 4:3
    - deinterlace: auto
    Sharpen: radius: 1.5, amount: 50
    Adaptive noise reducwe: mild
    ADJUST:
    - Gamma: 15
    - Brightness: -5
    - Contrast: 5
    ENCODE:
    - Windows Media Video V7
    - Frame rate: 24 fps
    - Insert Key frames: every 300 frames
    - Video data rate: limit to 400 kbits/sec
    AUDIO:
    - Sample rate: 44.100 kHz
    - Data rate: 48.0 kbits/sec
    - Channels: stereo
    BATCH> set default destination- her har jeg valgt en folder på harddisk
    STATUS
    - "Ready"
    PLAY
    I get the following message after to played:
    "You need to clear the status and/or change settings for the media to begin encoding"
    What is wrong with the settings or status?
    Kind regards
    mary Ann

  • WINDOWS MEDIA FILE WON'T WORK IN TIGER

    Every since I upgraded to TIGER none of my windows media files work. They worked in PANTHER just fine. I keep getting CONNOT play back the file. The format in invalid. PLEASE HELP ME.

    I was having the same problem, I ended up installing the flip for mac wmv component and no problems playing windows media files now. Hope this helps.
    http://www.flip4mac.com/wmv.htmhttp://www.flip4mac.com/wmv.htm

  • Windows Media FIle

    There is not an option to render out as a windows media file in Premiere CS4 on my Mac. Is there a way to do this that I am missing? Please help.

    You need a program called Flip4Mac to produce wmv on a Mac. It attachs it self to QT and works very well.

  • Windows Media File Stops at Start!

    Hello
    Can someone please help.
    I have a windows media file playing on my stage when the
    playhead enters the frame. I'm trying to get the WMF to play
    through to the end and stop, instead of returning to the first
    frame and stopping.
    Does anybody know how I can achieve this?
    Thanks in advance.
    Andy

    andyulrika_is_back wrote:
    > property thisSprite
    > property thisDuration
    >
    > on beginSprite me
    > thisSprite = me.spriteNum
    > thisDuration = sprite(thisSprite).member.duration
    > if sprite(thisSprite).movieTime > thisDuration -15
    then
    > sprite(thisSprite).stop()
    > end if
    > end
    >
    >
    > My wmf is currently 15.7 seconds long. Am I doing
    something wrong?
    You want to check the movieTime in an exitFrame handler,
    rather than just
    once when the sprite begins:
    property thisSprite
    property thisDuration
    on beginSprite me
    thisSprite = sprite(me.spriteNum)
    thisDuration = thisSprite.member.duration
    end
    on exitFrame
    if thisSprite.movieTime > thisDuration -15 then
    thisSprite.stop()
    end if
    end
    HTH
    Andrew

  • Windows Media File error 2048

    Anyone know how to convert a Windows Media file to run on Quicktime? I get a message that say's Error 2048 and that it's not a movie file.... Thanks.

    Be aware that even if you get Apple's MPEG2 QuickTime Component, that if the file uses AC3 audio QuickTime Player will not be able to play the audio from that. Apple use the feeble excuse that this is because QuickTime does not support muxed video files (where the audio and video are mixed together). Normally QuickTime files keep the audio and video as separate streams in a single file.
    I regard this as a feeble excuse because a) it should have been fixed years ago, after all other software does not have this problem even WMP copes with this, and b) even when using QuickTime and Apple's MPEG2 component the free third-party tool MPEGStreamClip (for Windows or Mac) can play AC3 audio in these files. I repeat this tool uses the same QuickTime and Apple's MPEG2 component and yet it can play AC3 audio when Apple's own QuickTime Player cannot.

Maybe you are looking for