Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
9th May 2002, 03:15 | #4 | Link |
Registered User
Join Date: Feb 2002
Posts: 29
|
What happens if you drag the file into winamp and/or equivalent...? If it is capable of playing the audio stream and ignoring the video stream, it should be able to give you the bitrate.
Otherwise, you could use graphedit to demux the vorbis track from the ogm file, and remux it into an ogg file all its own and then open that in winamp. Slow and convoluted, but should do the required task. Otherwise, no ideas sorry. gnoshi |
10th May 2002, 04:08 | #6 | Link |
Registered User
Join Date: May 2002
Location: Buenos Aires, Argentina
Posts: 9
|
The vorbis header packet has bitrate data. I'm not sure about this, haven't tested it, but maybe if you render the file in graphedit one of the filters will show that info...
I'm making some tests with libogg. I started building a demux/explore tool for ogg. The "vorbis" stream data and coments on other streams is the only thing it handles now. If you want I can fix it up a bit so you can check that. Or I can tell you were to look in the file with a hexeditor. |
10th May 2002, 05:16 | #7 | Link | |
Guest
Posts: n/a
|
Re: bitrate of a sound ogg in a ogm
Quote:
|
|
10th May 2002, 16:30 | #9 | Link |
AC3 5.1 Addict
Join Date: Nov 2001
Location: Big Blue Nation_USA
Posts: 2,036
|
@chris25fr
You are confusing terms here. Ogg is a container somewhat like AVI is. Vorbis is the audio codec you used. Christian is right, we don't use bitrate modes with Vorbis like you are use to using with MP3. If you used HeadAC3he to transcode your AC3 to to Vorbis then for a given Q level it will also display the expect bitrate(ie. Q2 will average around 96kbps).
__________________
Need AC3 & SPDIF setup info? |
11th May 2002, 00:37 | #10 | Link |
Registered User
Join Date: Jan 2002
Posts: 44
|
i'm french so excuse me for my english .
ps:i know that ogm is a container . no problem in fact,i done a ogg vorbis with HeadAC3he .then i mixed it with an avi with graphedit(before oggmux exists) . Now ,i have an ogm file . But i forgot the bitrate or the Q of the sound. So my question,is it possible to know the bitrate or the q of the sound .Without demux with graphedit. i suppose that q1 ~- something ,etc,etc bye Last edited by chris25fr; 11th May 2002 at 00:53. |
11th May 2002, 05:54 | #11 | Link |
Registered User
Join Date: May 2002
Location: Buenos Aires, Argentina
Posts: 9
|
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. |
11th May 2002, 06:19 | #12 | Link |
Registered User
Join Date: May 2002
Location: Buenos Aires, Argentina
Posts: 9
|
I just compiled a version of a test I am making. As I just said, its more of a test that an actual tool, but it should be able to get the info you are looking for.
Get it from: http://www.kadath.com.ar/oggexplore/ |
15th May 2002, 10:42 | #15 | Link |
Guest
Posts: n/a
|
@LotionBoy: You can try a beta download of NBS Catalogue @: www.cip.uni-trier.de/may/Files/Beta-Update.zip
Like kthulhu I used the average bitrate in my parser, the min/max bitrates are ignored. If you encounter problems with sone ogm's, please send me the header data. @kthulhu: I've got another problem with my parser. I cannot find a fps field nowhere in the header data. The only way I figured out was determining the # of frames by scanning the video-packets (well, atm only the last valid video stream packet) then loading the file into DirectShow and query the length in ms and calculate the fps. Do you know a better way? QuoVadis |
15th May 2002, 11:50 | #16 | Link | |
CoreCodec
Join Date: Oct 2001
Location: Toulouse
Posts: 726
|
Quote:
|
|
15th May 2002, 11:58 | #17 | Link |
Guest
Posts: n/a
|
@BlackSun: Maybe this will help you. It only works with ogm's with an audio stream. My ogm parser is mainly based on this source with some improvements.
http://timsara.freeservers.com/ogg/oggparser01.src.zip |
|
|