Help - Search - Members - Calendar
Full Version: MP3 Edit
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - General
skullkrusher101
I am developing an app in VB6 which I will ultimatly be distributing. I am currently using DirectShow to handle all the audio. It is strickly Mp3.

I want to add features into it that mimick what mp3DirectCut has

"mp3DirectCut is a small tool for editing mpeg audio directly. You can remove parts, change the volume, split files or copy regions to new files. All without the need to decompress your mp3 into pcm/wav. This saves work, encoding time and disk space. And there is no quality loss through any re-compressions. "

that is exactly what I want to do. Can DirectShow do anything like this or do I need an additional library for this?

I am having difficulty finding any good documentation on DirectShow, only havew the basiscs for playing a file...

Any Ideas?

Thanks
sheh
I don't think DirectShow would have functionality to do this kind of toying with MP3 frames, but I may be wrong.

And good documentation should be at Microsoft's (http://msdn.microsoft.com/library/default..../directshow.asp).

~sheh
skullkrusher101
QUOTE(sheh @ Feb 21 2005, 11:00 PM)
I don't think DirectShow would have functionality to do this kind of toying with MP3 frames, but I may be wrong.

And good documentation should be at Microsoft's (http://msdn.microsoft.com/library/default..../directshow.asp).

~sheh
*



ive tried that link before, it never morks for me, the body frame never loads.
linus
QUOTE(skullkrusher101 @ Feb 22 2005, 07:58 AM)
ive tried that link before, it never morks for me, the body frame never loads.
*


for me this link is ok...
slippyC
I wouldn't advise doing alot of DShow stuff in VB, you are very limited on what you can do.

I'm not saying it can't be done, but it may end up being more trouble than it is worth. If you can program in Delphi, try going that route instead. I'm sure you would have used C++ if you were familiar with the language, that is why suggested Delphi(which you maybe in same boat there).
sheh
QUOTE(skullkrusher101 @ Feb 22 2005, 08:58 AM)
ive tried that link before, it never morks for me, the body frame never loads.
*


It should. Maybe you're using an odd/old browser? :)

Either way, since reading docs offline is generally better... try getting the DirectX 9 SDK at http://download.microsoft.com/download/8/0...8bb3/dx9sdk.exe (222MB).

~sheh
skullkrusher101
QUOTE(sheh @ Feb 22 2005, 05:25 PM)
QUOTE(skullkrusher101 @ Feb 22 2005, 08:58 AM)
ive tried that link before, it never morks for me, the body frame never loads.
*


It should. Maybe you're using an odd/old browser? smile.gif

Either way, since reading docs offline is generally better... try getting the DirectX 9 SDK at http://download.microsoft.com/download/8/0...8bb3/dx9sdk.exe (222MB).

~sheh
*



I figured out how to do what I need, not using direct show but with just bin file read/write calls.

Now what Id like to be able to do is incorporate some sort of visualization like mp3DirectCut does, with the scrolling box and the lines going up and down, not sure if its quite a wave form or not. If not what exactly do they call that? Are there controls out there already built for that ?
nzmike
QUOTE(skullkrusher101 @ Feb 22 2005, 10:36 PM)
I figured out how to do what I need, not using direct show but with just bin file read/write calls.


Skullkrusher, how did you manage to adjust the volume in the MP3? That is what I'm trying to do with a C# .Net app - I want to read in the first 40 seconds of a full length MP3 then write out the first 30 seconds at normal volume then gradually fade the track out over 10 seconds by reducing the volume of each frame. (It's for a web site where we want to preview tracks but not have the preview suddenly end at 30 seonds.)

So what did you use in the end to do this? Which frame is it in and what object or method is used? Do you maybe have a small code snippet you can show me so I can see how it's done - I've been really struggling with this for a while so any help would be really appreciated!

TIA...

Mike
skullkrusher101
QUOTE(nzmike @ Feb 28 2005, 05:02 PM)
QUOTE(skullkrusher101 @ Feb 22 2005, 10:36 PM)
I figured out how to do what I need, not using direct show but with just bin file read/write calls.


Skullkrusher, how did you manage to adjust the volume in the MP3? That is what I'm trying to do with a C# .Net app - I want to read in the first 40 seconds of a full length MP3 then write out the first 30 seconds at normal volume then gradually fade the track out over 10 seconds by reducing the volume of each frame. (It's for a web site where we want to preview tracks but not have the preview suddenly end at 30 seonds.)

So what did you use in the end to do this? Which frame is it in and what object or method is used? Do you maybe have a small code snippet you can show me so I can see how it's done - I've been really struggling with this for a while so any help would be really appreciated!

TIA...

Mike

*



Im using direct show for most of my mp3 needs, includiong volume control

http://site.ifrance.com/kev_site/tech/dire...ds/dssd0021.htm

thats a direct link toe the volume control portion, but if your not using direct show filter graphs youll need to set one up. If you are your probably already using the imediacontrol or imediaevent objects. this is just like that.

should be what you need, that code is old but it worked for me in vb 6, if not just do a search for directshow ibasicaudio, theres more .net examples out there than vb6 nowadays so you shouldnt have trouble finding a .net version.
nzmike
Thanks skullkrusher (nice nick!)... I'll have a look into it and see what
I can work out...

Mike
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.