Allegro.cc - Online Community

Allegro.cc Forums » The Depot » APEG 1.2.1 released

This thread is locked; no one can reply to it. rss feed Print
APEG 1.2.1 released
Kitty Cat
Member #2,815
October 2002
avatar

APEG 1.2.1 has been uploaded. Things of note in this release are:

  • Optional length detection for Ogg files. By default, APEG will scan to the end of an Ogg file and determine it's length, in seconds (stored as a double, so there is sub-second accuracy). If the length cannot be determined, it'll be reported as 0.

  • An added option to disable length detection. If you're using slow media sources, or live streams, where seeking to the end of a stream is not desirable or possible, you'll probsably want this.

  • Ogg encoder's output test option has been spiffied up. It's neat what you can do with Allegro's GUI. :)

</li>
As always, you can download it from here.

Questions, comments, feedback, and the like, are welcome. :)

--
"Do not meddle in the affairs of cats, for they are subtle and will pee on your computer." -- Bruce Graham

Niunio
Member #1,975
March 2002
avatar

Great! But I see a bit of distortion using apeg_play_mpg in exsimple.c. Is like some lines where duplicated. explay.c seems nice.

-----------------
Current projects: Allegro.pas | MinGRo

Kitty Cat
Member #2,815
October 2002
avatar

If you're refering to the bottom few lines of the example video, then that's how the video was encoded. It seems to have been recorded from a VHS source with the tracking slightly off. I'm still on the look out for a better example video, but it's hard to find a good one that's under a megabyte.

--
"Do not meddle in the affairs of cats, for they are subtle and will pee on your computer." -- Bruce Graham

Damian Grove
Member #6,758
January 2006

As far as working with OGG files, I'm curious to know if you'd recommend this over Allegro-OGG. Are there any advantages over your Allegro addon? What about disadvantages? I'm looking to use the best one... whichever will give me the best performance and/or best set of features.

Get into awesome with Saxman!

Kitty Cat
Member #2,815
October 2002
avatar

AllegroOgg only does sound, AFAIK. It seems a lot of people seemed to have latched onto using "Ogg" when they really mean "Vorbis". APEG does both Ogg Theora (video) and Ogg Vorbis (audio), as well as MPEG-1 video and MPEG-1 audio (layer 1, 2, and 3). I've never used AllegroOgg, so I can't really comment on the differences, but APEG is quite simple to use. Just open the file, poll it while occasionally blitting the video frame if applicable, then close it.

And as far as the included tools go, APEG comes with a nice player to play MPEG and Ogg files (audio only, video only, or both audio and video), if you don't happen to have one, and it includes a GUI program to create Ogg files. :)

--
"Do not meddle in the affairs of cats, for they are subtle and will pee on your computer." -- Bruce Graham

kikabo
Member #3,679
July 2003
avatar

I'm probably being dumb but I couldn't compile Cbuild.c under MinGW, there doesn't seem to be a mkstemp with MinGW, I tried changing mkstemp's to open's using the mkstemp template as a filename (not understanding what it supposed to be doing) which then compiled Cbuild but building threw a wobbly with :-

D:\apeg>cbuild --enable-platform=Win32
Checking platform...
* Unknown platform ''! *

even putting a "PLAT = Win32" in the default.cbd gives the same error

help !

Kitty Cat
Member #2,815
October 2002
avatar

Can you try the attached cbuild source? Just overwrite the cbuild.c and rerun make to rebuild it.

--
"Do not meddle in the affairs of cats, for they are subtle and will pee on your computer." -- Bruce Graham

kikabo
Member #3,679
July 2003
avatar

smashing, thanks very much

cracks knucles, rubs hands

edit: ...ooops, no streaming in the exagl.exe, the others play the video perfectly.

exagl.exe windowed runs without error, displays the four gradient quads. These should have the video on right?

exagl.exe fullscreen mode also runs without any errors reported but I just get a solid white filled screen, this is on a really old ATI rage128, maybe not enough memory? but then the non opengl ones work ok...

Go to: