Jump to content

Media UDF


svennie
 Share

Recommended Posts

Any one knows if Media.au3 already works with MP3 and If I can "copy" part of a mp3 to a new .mp3?

For example, create a new mp3 copying from second 15 to second 25 (sample of some musics)?

If yes, what would be the commands, using media.au3?

regards

Jose

Link to comment
Share on other sites

  • Replies 47
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 2 months later...
  • 3 weeks later...
  • 10 months later...
  • 4 months later...

Can I marry you? I have been having my lead programmers in my company scrambling to make DLLs to do this.

Thank you so much. You have NO idea how much this helps out on my various little tidbits I make here and there....

<emotefest>:):D:D:D:D:D:D:D:D:D:D:D:D:D</emotefest>

little problem though - when I open up an AVI to play, the window just... freezes. Like it takes a frame from the underlying content and paints it in its own window, then I can drag it around.... Although it is a long video....

Any help?

EDIT: Aha. yea, the file was just too big. Not to worry.

Also, is there a way to get it to like scale the movie when in fullscreen mode?

And what about dual screen? What if I want the fullscreen to only be on the second screen, not the first?

-Monkey

Edited by m0nk3yI3unz

Monkeh.

Link to comment
Share on other sites

  • 2 months later...

Is it possible to alter the saved media bit rate, sample size, or sample rate? I don't see any options to adjust it for higher quality.

I'd like to get closer to CDROM quality compared to the default 88 kbps bit rate, 8 bit sample size, 11 kHz Audio Sample Rate.

Thanks,

Tim Net

post-11167-1209652462_thumb.jpg

Link to comment
Share on other sites

  • 2 months later...

Is it possible to alter the saved media bit rate, sample size, or sample rate? I don't see any options to adjust it for higher quality.

I had a similar question after finding this library, and found the MCI command reference on MSDN. Here's an example, using direct MCI calls. Easily adapted to the media library.

;start recording
mciSendString("close all")
mciSendString("open new type waveaudio alias capture")
mciSendString("set capture bitspersample 16") ; 8, etc.
mciSendString("set capture samplespersec 22050") ; 44100, etc...
mciSendString("set capture channels 1") ; or 2 
mciSendString("record capture")

; keep recording for 5 seconds
Sleep(5000)

; stop and save recording to $filename
mciSendString("stop capture")
mciSendString('save capture "' & $filename & '" wait')
mciSendString("close capture")

;===============================================================================
; Description:     Send Windows Media Control Interface (MCI) string
; Parameter(s):    MCI command string. See command reference at:
;                  http://msdn.microsoft.com/en-us/library/ms710815(VS.85).aspx
; Requirement(s):  None
; Return Value(s): on success = 1, on fail = 0 and @error set to 1
;===============================================================================
Func mciSendString($s)
    DllCall("winmm.dll", "int", "mciSendString", "str", $s, "str", "", "int", 65534, "hwnd", 0)
    If @error Then
        SetError(1)
        Return 0
    Else
        Return 1
    EndIf
EndFunc
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...