Recent

Author Topic: package to read or play video  (Read 4096 times)

jack616

  • Sr. Member
  • ****
  • Posts: 268
package to read or play video
« on: August 22, 2013, 05:15:37 pm »
Are there any packages to read or playback video files
Is there perhaps something that can read data from mkv or ts files  etc(such as aspect ratio, bitrates etc)
maybe something to connect to ffmpeg ?

Sorry .. forgot to say - specifically windows based
if not can anyone sumarise the problem ? The faq and other links found by searching here
are useless in a windows context

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1269
Re: package to read or play video
« Reply #1 on: August 22, 2013, 05:31:58 pm »
Search for DSPack. 

http://forum.lazarus.freepascal.org/index.php/topic,16797.msg91786.html#msg91786

I actually use the package bundled with CodeTyphon.

Let me know if you need any sample code...

Needless to say, this ONLY works on Windows (which will be fine for you).  There's working ffmpeg headers around somewhere, but the ones I can find are embedded within an app, and I haven't got around to extracting them yet...
« Last Edit: August 22, 2013, 05:34:25 pm by Mike.Cornflake »
Lazarus Trunk/FPC latest fixes on Windows 11
  I'm getting old and stale.  Slowly getting used to git, I'll get there...

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1290
Re: package to read or play video
« Reply #2 on: August 22, 2013, 05:58:20 pm »
hello,
if you have vlc installed on your computer, you can use the api interface libvlc with paslibvlc  here.
there is a lazarus package PasLibVlcPlayer.lpk and a demo to play video file ( DemoPasLibVlcPlayer ) .

Friendly, J.P
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1269
Re: package to read or play video
« Reply #3 on: August 22, 2013, 06:01:56 pm »
Quote
if you have vlc installed on your computer, you can use the api interface libvlc with paslibvlc  here.
there is a lazarus package PasLibVlcPlayer.lpk and a demo to play video file ( DemoPasLibVlcPlayer ) .

I presume then that this has come a long way since I last tried it (say around Dec last year)?  Used to be very buggy (and I got the impression it was the VLC bit that was buggy, not the API itself)...  If so, then good to hear :-)

EDIT:  Last updated last week :) with a rewrite of the event handlers - that was where I was having problems.  I look forward to trying this out.  Currently DSPack is the only thing limiting my app to Windoze...
« Last Edit: August 22, 2013, 06:16:27 pm by Mike.Cornflake »
Lazarus Trunk/FPC latest fixes on Windows 11
  I'm getting old and stale.  Slowly getting used to git, I'll get there...

jack616

  • Sr. Member
  • ****
  • Posts: 268
Re: package to read or play video
« Reply #4 on: September 11, 2013, 03:07:01 pm »

Sorry guys I forgot to reply.

I seem to have this started now - I re-installed codetyphon
and found the components so thanks for the info.
I am a bit suprised by the lack of multimedia support overall though.

 

TinyPortal © 2005-2018