Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Looking to set a beginning position and an ending position in mp4 or wav file.

Posted on 2011-09-11
6
Medium Priority
?
354 Views
Last Modified: 2013-11-23
Hello,

I am looking for something that allows me to play a mp4 or a wav file and set a starting position via code and set a ending position so that it will only play in that range. (ability to set two markers).
Must be able to replay in that range as welll.
This is also assuming no timing losses either. :-)
Also looking for the ability to change those markers to any range.

Thanks,

Ben
0
Comment
Question by:AivsCoder
  • 2
  • 2
6 Comments
 
LVL 46

Expert Comment

by:aikimark
ID: 36520225
@AivsCoder

Do you need to play video as well as audio?
0
 
LVL 46

Accepted Solution

by:
aikimark earned 500 total points
ID: 36520292
I think you will eventually need to evaluate players, such as DIVX.

There is an example of using MCI, which has a Seek method.
http://www.ciuly.com/delphi/multimedia/using-mci-to-play-video-multimedia-content-from-a-stream/
0
 

Author Comment

by:AivsCoder
ID: 36520346
Hi there, Aikimark,

Yes I would liike to play audio alone as wave file (preferably) or video with audio.
0
 
LVL 21

Assisted Solution

by:developmentguru
developmentguru earned 500 total points
ID: 36524248
It looks like there are MANY components for Delphi to handle video and audio manipulation.  The vast majority of them cost money.  Are you looking for commercial, free, or just whatever is available?

I found a rather large list here:
http://www.torry.net/pages.php?id=168

and narrowed it down to one that can "Convert one input file to multiple files".  Since it also states that it can work with streams I would assume you could strip out the desired portion of your audio/video to an in memory stream to be played.
It is third on the list here:
http://www.torry.net/authorsmore.php?id=7362
0
 

Author Closing Comment

by:AivsCoder
ID: 36814394
Thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question