OGG Vorbis, OGM and XCD

Comments on existing version & Suggestions for future versions. If you want a new feature suggest it here. Discussions about beta versions also come in this section.
Post Reply
jernst

OGG Vorbis, OGM and XCD

Post by jernst »

Hello,

All my latest movies are encoded in DivX5, put in OGM container and then burned as CD Mode 1 (XCD) but your excellent program cannot get the bitrate informations and audio informations with these files (.dat). I don't think it can handle OGM or OGG Vorbis container/audio streams as well.

It would be really nice if you could add this feature...

if you don't know about XCD:
http://webs.ono.com/usr016/de_xt

Thanks again for this more than perfect program ![/url]
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

In future versions I'll add support for ogm, rv9, mov, mpeg
Maybe not for 4.0 but for sure in 4.0.1 (well, I hope)
When the CD is an XCD, can it be accessed the same way than a normal CD when the required files are installed ?
I will have to try that, since I have one or two XCD at home (I wonder why I never tryed :D)
Guest

Post by Guest »

antp wrote:When the CD is an XCD, can it be accessed the same way than a normal CD when the required files are installed ?
When the required dshow filter is installed and the registry association for .dat is made XCDs are played exactly as any other movie by any dshow player so I guess you can fetch the informations the same way your are doing it with avi.

btw thanks for your reply, I look forward for seeing this 4.x release !

(if you need some tool to produce and burn XCD automatically (or not) I'm one of the contributors of DVX, a free opensource encoding program: http://www.planetdvb.net/dvx[/url]
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Actually I do not use directshow to get info, I read the .avi file like any other normal file...
Guest

Post by Guest »

Hi Antp,

Maybe you already knew this info, but I just like to see you get the ogm and xcd started, since it seems a frequent request here.

With regards to find the bitrate of a sound ogg in a ogm, you can do the following with the hexeditor.

I am quoting the following by Lucas Wall which was disscussed on Doom9, May, 2000.

"Open the file with a hexeditor... or herviewer.. or similar tool. Each page in an ogg stream starts with "OggS". The first pages only contain a header packet.

So... You have to look for the first page of the audio stream. Probably the second one in the file. Some bytes after the "OggS" you will see a "video", for video :-) , "vorbis" for audio or "text" for subtitles. You could find other types of streams, but you are looking for the "vorbis" stream.

So... Look for the second "OggS" and look for the word "vorbis" a few bytes after it. You should find this in the first bytes of the file... first 100 bytes more or less.

After the "vorbis" string skip 9 bytes. The you will find 3 double words: max bitrate, nominal bitrate and min bitrate. These values are placed there by the encoder, max and min will be -1 (FFFFFFFF), at least its -1 in all ogms I've seen.

The nominal bitrate is what you are looking for. An aproximation, of course, because you actually placed a Q value in the encoder and the Q value is what it actually used during encoding."

You can get the tool from here that does what it describes above
http://www.kadath.com.ar/oggexplore/




In regards to XCD
Read the XCD spec here...
http://xcd.sourceforge.net/spec/xcd_spec_220502.txt
the developers de_xt and avih hangs out in doom9 often, they will be more than glad to answer your questions.[/url]
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Thanks :)
Guest

Post by Guest »

Hi Antp,

I was the one who suggest those tool weeks ago. Any progress?

Here is a tool that you might find useful...


Media Info
Supplies information about a file:
(Only if the information is available in the file...)

- General information (title, author, director, album, track number, date, duration etc....)
- Information about the video (codec, aspect, fps, bitrate etc....)
- Information about the audio (codec, sample rate, channels, language, bitrate etc....)
- Information about the text (language of subtitle)
- Information about chapters (count of chapters, list)

Supported formats : OGG (OGM), AVI, WAV, MP3, MPEG1&2, DVD, AC3, DTS

Myabe he can give you tips or share the source with you.

You can email the author here:
mediainfo@mediaarea.net
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Anonymous wrote: Any progress?
no, still nearly nothing done for version 4 :(
Guest

Post by Guest »

Stop playing video games... :hihi:

Try and take a look at that media info program, it is pretty neat.
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

I'll probably use http://www.geocities.com/cplarosa/movieid/ for all formats (except AVI that I already have :D).
For OGG I'll get that from somebody else so it should not be a problem.
kxy

Post by kxy »

Use this one instead. It supports far more formats and the author is pretty nice...

http://mediaarea.net/mediainfo/features.html

Known formats :
Ogg media stream - .OGG, .OGM
Resource Information File Format - .AVI, .WAV (partial)
MPEG - .MPG, .MPE, .MPEG, .VOB
MPEG Video - .MPV
MPEG Audio - .MP2, .MP3, AC3, DTS
DVD-Video - .IFO
Windows Media - .ASF, .WMV, .WMA
Quicktime - .QT, .MOV (partial)
Real Media - .RA, .RM, .RV, .RMVB (partial)
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Thank's for the url ;)
Pesho

Post by Pesho »

And don't forget matroska, the new container format :) If you haven't heard of it, here is the URL of its release announcement:

http://www.matroska.org/announce.html

Handling it shouldn't be a problem, at the bottom of that page you'll see a link to the libmatroska library which you can use for that. It's a C++ library but linking it with Ant Movie Collector should be easy (Delphi?)

Best regards :)
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

In the worse case, I can make a DLL in C++ that I call at run-time, because I don't think it is possible to link to librairies (.lib, .obj) to integrate them in the .exe
Pesho

Post by Pesho »

Yes, that's an option. Thanks!
Post Reply