Using Delphi, what tool can i use to decode MP3 to WAV? - delphi

Is there a tool or some code sample in delphi i can use to read and decode mp3 file format to PCM WAV format?
Searched on the internet but didn't get anything that is helping.
Gath

Take a look at Audio Components Suite.

You can use DSPack component to access Windows Media Format API.

If you dont mind rolling up your sleeves a little, you can use DirectShow directly.

Related

Decoding a image of a QR code with Delphi and a webcam

So I am looking for a solution to read a QR code from delphi with a webcam.
I found this example project to capture the webcam's image and save it to a .bmp file : linky
So I have the image that I want to scan. Now I would like to know how to get its contents in string format in Delphi. So to read the QR code I found ZBar which is exactly what I need. I just cant figure out how to use it with delphi.
I want to know if there is a way I can either implement the libraries ZBar supplies or somehow run ZBar and just receive the decoded text ?
ZBar has a command prompt example so I thought that it would be possible to run the command prompt, receive the results and just format the strings to find the code (like this). But that seems rather hacky and I am sure there must be a better way. I also could not get any of the answers to work.
I am using delphi 7 or xe3 if thats a factor.
Thanks for your time and suggestions.
The famous ZXing library finally has been ported to Delphi, but it is for the modern Delphi versions like Delphi 10.4, because there are new features used like in-place filling of dynamic arrays. I tried to rewrite it for Delphi 6 and didn't manage that.
Here is the link: https://github.com/Spelt/ZXing.Delphi
There is also an example for a webcam.

Determining video file properties using DSpack and Delphi7

I would like to determine various properties from a video file (eg MP4) such as the length of the video etc but I have no experience of working with multimedia Can anyone help
Thanks
MIke
You don't need to use DSPack for this task.
Use the dll version of the MediaInfo library (the download comes with a Pascal demo and Google/Bing/Yahoo!/whatever come for more). Plus, you don't rely on the installed codecs of a machine as MediaInfo is independent.

Exchanging documents among several system and printing them

There are two systems. I need to get the document in some format and print it in my application.
The source file should be in a pdf format.
Do you know the component for delphi7 that i could be able to open pdf file and print it on delphi's canvas. Is such approach good for the pdf document quality?
Or which format of the source document could be better to print in delphi application?
Thanks
I think almost all PDF preview components may do it.
When searching - https://www.google.ru/search?client=opera&q=delphi+render+pdf+to+canvas&sourceid=opera - you would instantly get at least few commercial libs:
http://www.gnostice.com/nl_article.asp?id=229&t=Convert_PDF_To_High-Resolution_Images_Using_Delphi
http://www.quickpdflibrary.com/faq/can-i-use-quick-pdf-as-a-viewer-in-my-delphi-application.php
http://www.wpcubed.com/manuals/wpviewpdf/idh_twpviewpdf_printhdc.htm
TCanvas is a wapper around Windows HDC. See http://docwiki.embarcadero.com/Libraries/en/Vcl.Graphics.TCanvas.Handle

Library or component for creating video files (AVI, etc.) with Delphi 6 (C/C++ OK too)?

I have a stream of JPEG frames and accompanying audio buffers that I want to write to a video file. If possible, I'd like to let the user choose their format from the available Windows codecs if the library/component supports the use of those. If not, then if it can create something popular like AVI, WMV, or MOV format files then that would be fine. Does anyone know of a good library or component compatible with Delphi 6 that can do this? If not, a C/C++ sample would work too.
For AVI you may want to check if you have access to the AVIFile APIs from Delphi. This question suggests it is possible.
For WMV look for DirectShow access.
For MOV you can use the free Quicktime SDK.
It appears the JEDI site might have some API bindings that you can use.

Delphi: play memorystream in wmp activex

I'm new to this site and I hope someone can help me with my problem.
I am using a Delphi language. And I would want to play a memorystream to windowsmediaplayer ActiveX. Is this possible? If it is, can someone give me a hint or something.. sample code maybe. Thanks.
I can't speak for Delphi 2009, but earlier version of Delphi didn't support this with the TMediaPlayer component. What you could do is write the MemoryStream to a temporary file, then have the TMediaPlayer load that file. That's going to be the easiest solution, though admittedly not ideal.
Not a free solution, but there is a commercial SDK, BoxedAppSDK, which allows you to access in-memory files as if they were on disk. One of their samples includes a media player accessing a file from memory.
http://www.boxedapp.com/boxedappsdk/
Years ago Nils Haeck posted an example on how to play an avi from a TMemoryStream on NLDelphi. He couldn't get it to play mp3's though. For that you should be looking at other solutions, like Un4Seen Bass
The code:
playfrommemory.zip

Resources