Viewing MPEG within a Delphi Application

I need to view an MPEG (I/II) video from within a Delphi application, and be able to jump to particular positions, etc.

Is there a control available to do this?  The TMedia player like AVI files etc but doesn't seem to like MPEG I or II videos ?

Thanks in advance,

Mac
mac_roweAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

interCommented:
You should have the proper video codec installed in Control Panel->Multi Media->Devices->Video Codecs. If your windows standart media player could play it, delphi should do it fine with TMediaPlayer. Positioning is easy, lets try to run the Mpeg first.
0
kretzschmarCommented:
yup, igor is right!
i have viewed mpeg-vidoes with the tmediaplayer, no problem.
0
men xinCEOCommented:
Mac:

The Tmediaplay can play .mpg file,but if you must play .dat file ,you must import the activemovie.

menxin
0
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

brainwareCommented:
and if you want to use MPEG II you need a big bank account :)
well if you want to Write OWN Player that is.. becuse MPEG II just like MP3 have a nice Fee you have to pay to use it.

Anyhow.. i can play MPEG2 With MediaPlayer if i use the correct Codec and Driver eg driver that my DXR card uses.


0
brainwareCommented:
forgot.. you have 1 option tho.. DirectMedia SDK.. i should have DVD Playing Support, eg MPEG1,2 but still require users to have CODEC and DVD Hardware etc,,
0
mac_roweAuthor Commented:
Thanks everyone.

Initally we could play MPEG-I files with Media Player but not with Delphi.  After correcting a couple of problems with file associations etc we've now got Delphi running everything Media Player does.  

Our situation is that our company want to get MPEG-II video of medical procedures, and we'd like to give as many people as possible access to the videos on their individual PCs.  

Obviously we don't want to install a hardware card on every one's PC, but if we have to, we'll just limit video viewing to a few PCs.

Question:
If we want to play MPEG-II files, can we simply use a software decoder or do we need a hardware solution ?

It would be great if someone could suggest a software only solution ! (Obviously we need hardware to encode the signal - we're investigating possible cards at the moment)

Thanks in advance,

Mac.
0
men xinCEOCommented:
Mac:

If you import activemovie.tlb,delphi can play MPEGI file.

menxin
0
she3i3iCommented:
  I had this question some time ago... when I wanted to play MPEG2 movie trailers via my program...

   I ended up encoding them to .asf using the Windows Media Encoder which brought the size of them right down whilst keeping acceptable quality.

   I then used (thanks to menxin) the ActiveMovie component in my program for playback of .asf files...

   This way I knew that if I was to ever put my program on a CD for example... it wouldn't need any special hardware to run on another PC.

   FYI a 3 minute MPEG2 trailer of 130megs is approx. a 10meg .asf file at 320x240 which looks pretty good if you ask me... if you need it any better... simply tell the encoder to make it better!


Hope this helps, Chris.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
she3i3iCommented:
oh... and btw...

   The ActiveMovie component would give you full "navigation" controls.

Cheers, Chris.
0
mac_roweAuthor Commented:
Thanks everyone,

We've got it working ok for MPEG-I files, and we've put in a purchase order for an MPEG II card and SDK, so it should be do-able from here.

I decided to award the points to Chris (she3i3i) for the helpful info on converting the files.  

Thanks for your advice everyone...

Mac
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.