Solved

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

Posted on 2011-09-11
6
339 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 45

Expert Comment

by:aikimark
ID: 36520225
@AivsCoder

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

Accepted Solution

by:
aikimark earned 125 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 125 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

860 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