Solved

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

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

679 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