Solved

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

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now