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: code: _____ 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; _____ <p><p>What call must I use to open the "FileName".ogm file & get the video stream info (duration, bitrate, etc...) ? <p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Mon, Jun 23, 2003 at 07:02:57PM +0200, Thierry FELIP wrote:> 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: > code: > _____[sniped code]> _____ > > > > What call must I use to open the "FileName".ogm file & get the video > stream info (duration, bitrate, etc...) ?The VorbisFile library is only designed to handle Ogg Vorbis files. It can't handle Ogm Vorbis files, and it might not even be able to handle Ogg Vorbis files with other streams in them (not sure about that). In any case, Ogms are not Oggs. -- Zinx Verituse --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Tuesday 24 June 2003 03:02, Thierry FELIP wrote:> Help is needed ! > > I cannot extract infos from video stream in an .ogm file using the > VorbisFile library.That is correct. VorbisFile, as the name implies, is for vorbis. "ogm" is a hack done by a developer outside xiph.org. We can't help you with it in any great detail. Sorry, Mike --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Thierry FELIP wrote:> Help is needed ! > I cannot extract infos from video stream in an .ogm file using the > VorbisFile library.<p>Get VirtualdubMod from http://sf.net/projects/virtualdubmod : Its for win32 only, but allows you to open the OGM file and extract the video into AVI. Of course, the Vorbis audio stream can not be muxed into AVI ( thats why OGM was 'invented' in first place by Tobias ). Best regards Christian <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.