tHe gLouCh
22nd June 2003, 11:23
Help is needed !
I cannot extract infos from video stream in an .ogm file using the VorbisFile library.
It seems that I can only open .ogg files (audio)! When I call "ov_open_callbacks" it generates a message error.
Here is my procedure in pascal:
procedure GetOGMInfo;
var
F : TFileStream;
vf: OggVorbis_File;
res: integer;
begin
F := TFileStream.Create("OGM FileName", fmOpenRead);
res := ov_open_callbacks(F, vf, nil, 0, ops_callbacks);
if res < 0 then // always return -132 !! No Vorbis info/file
begin
F.Free;
exit;
end;
**** code to get info ****
end;
What call must I use to open the "FileName".ogm file & get the video stream info (duration, bitrate, etc...) ?
I cannot extract infos from video stream in an .ogm file using the VorbisFile library.
It seems that I can only open .ogg files (audio)! When I call "ov_open_callbacks" it generates a message error.
Here is my procedure in pascal:
procedure GetOGMInfo;
var
F : TFileStream;
vf: OggVorbis_File;
res: integer;
begin
F := TFileStream.Create("OGM FileName", fmOpenRead);
res := ov_open_callbacks(F, vf, nil, 0, ops_callbacks);
if res < 0 then // always return -132 !! No Vorbis info/file
begin
F.Free;
exit;
end;
**** code to get info ****
end;
What call must I use to open the "FileName".ogm file & get the video stream info (duration, bitrate, etc...) ?