View Full Version : AVI + AC3 use Suiryc's Ogmuxer
ookzDVD
1st October 2002, 11:10
@forum,
I just want to confirm about muxing AVI + AC3 use the
Suiryc's Ogmuxer, will it produce the same result
as the AVI + AC3 use OggMux ?
PS. OggMux still need a trick which should do AVI+AC3 with Nandub,
if not it will produce BIG file isn't it ?
Thank you.
Suiryc
1st October 2002, 12:06
Originally posted by ookzDVD
I just want to confirm about muxing AVI + AC3 use the
Suiryc's Ogmuxer, will it produce the same result
as the AVI + AC3 use OggMux ?
I hope so ;)
PS. OggMux still need a trick which should do AVI+AC3 with Nandub, if not it will produce BIG file isn't it ?
Yes, the directShow multiplexer (at least with version 0.9.9.3, didn't tested with the latest 0.9.9.4) doesn't seem to handle AC3 stream as input, and DirectShow will put your favorite AC3 decoder between them (so the AC3 is first decompressed to normal Wav before being muxed, hence the BIG file because uncompressed PCM instead of AC3 ;)).
ookzDVD
2nd October 2002, 03:07
@Suiryc,
Thank you for the confirmation ;)
Your tool is like swiss knife ;)
Btw, is that possible to mux the subtitle (.srt) and chapter file (.txt) from ChapterXtractor with your Ogmuxer ?
PS. From your example, you only give .avi + (audio).
Thank you.
Suiryc
2nd October 2002, 11:29
You should be able to mux AVI, AC3, MP3 and SRT files together.
And you can use chapters also (I took some code coming from OggMux, which mean you can normally do everything you could with an OggMux automatisation setup file ... except splitting).
In the version I am working on now I added audio streams from AVI (for the moment only video in AVI is processed), and WAV files.
soujir0u
3rd October 2002, 12:58
How do I add chapters using OgMuxer? I tried muxing together with the txt file containing the OGG chapters, but it doesn't work.
Suiryc
3rd October 2002, 13:39
Oops forgot to mention that the code I took from OggMux mean you can/must use an automatisation setup file (.omx) as when using OggMux in commandline.
Presently it's the only way to put your comments (i.e. Video title, Audio language, Subtitle language, and chapters) with OGMuxer.
Koepi
3rd October 2002, 13:50
Hu, nice to know that my code gets reused :)
Btw., I tried for some hours around now to get properly adding ac3 to the OGM - without success. Try it in graphedit: insert your usual oggmuxer stuff and then use a filesource(asnyc) for the ac3 and connect it to an input pin of the oggmuxer dsf: it'll automatically add an ac3 parser and a ac3 decoder. I can't do anything against it.
My last attempt will be to support "ac3-wav" which you can produce with BeSweet. It has to be parsed through filename though - something like MyAudioTrack-ac3.wav, and the *ac3.wav indicates that's no wav for encoding to ogg.
Would that be a solution for you all?
Best regards,
Koepi
ookzDVD
7th October 2002, 09:13
@Suiryc,
So...
I could perform this from command line :
C:\>ogmuxer -o blade2.ogm blade2.avi blade2.ac3 blade2chap.txt blade2subs.srt
?
Please confirm me the valid command line to do that, if I was
wrong.
Thank you.
Koepi
7th October 2002, 09:26
I need a little help from you:
can you please fire up graphedit, create an ac3-wav from your ac3 and build a graph like this:
- insert an oggmuxer DSF
- use the file menu to "render media file" - add your video stream
- "render media file" your ac3-wav stream.
does the ac3-wav connect to the oggmuxer-input-pin itself or do other filters interfere?
Thanks,
regards,
Koepi
Suiryc
7th October 2002, 12:10
Originally posted by ookzDVD
C:\>ogmuxer -o blade2.ogm blade2.avi blade2.ac3 blade2chap.txt blade2subs.srt
If you want to use your chapter file, you need to create an omx file (same as OggMux) like : (blade2.omx)
<movie>
blade2.avi
</movie>
<title>
Blade 2
</title>
<soundtracks>
blade2.ac3
English (replace by the correct language)
</soundtracks>
<subtitles>
blade2subs.srt
English (replace by the correct language)
</subtitles>
<chapters>
blade2chap.txt
</chapters>
<target>
blade2.ogm
</target>
<split>
0
</split>
Hope this is the correct declaration (it must be exactly the same as when using OggMux)
Then you go in the directory where are your files and this omx file, and use :
OGMuxer -s blade2.omx
PS : please use version 0.9a5 (or maybe 0.9a6, but not 1.0a1 since the new features added are of no use in your case and I found many bugs in the last versions - especially 1.0a1 :( -)
Suiryc
7th October 2002, 12:46
@Koepi
I tried to do what you asked.
Don't know how is supposed to work the "Render Media file" thing but none of my streams (nor video, nor audio) didn't connected to the OggMultiplexer filter :(
However I was able to connect manually the "AC3 stream" (without the "Could not load the apropriate filter" or similar error I have when using a pure AC3 file) to the multiplexer :)
So the graph for this stream is : Input -> Wave Parser filter -> OggMultiplexer filter.
I was able to mux the whole thing, resulting a "valid" OGM file (I verified the AC3 stream remained correct by demuxing it).
However there is problem with OggDS that I already encountered a few days ago :
In the ogm file AC3 info are grouped by blocks (i.e. Packets) of 12000 samples (250ms for my 48000Hz stream), and this lead OggDS to freeze. Seems OggDS have problems when there are too much info at a time :(
Koepi
7th October 2002, 12:55
Thank you Suiryc for testing that. Strange that "render file" doesn't work for you. But I assume OggMux works correctly then (before this "change" I wasn't unable to connect an ac3 source with OggMuxer DSF as it was rendered to wav instead).
So finally it works (somewhat) at least :)
Thanks again!
Best regards,
Koepi
PS: maybe I should rewrite OggMux so it uses real capsulated classes - in that way it would be possible to use your framework for mux'ing the streams, and to add other mux'ing abilities as well (maybe ripping off some routines from MPEG4IP to mux mp4 video stream with aac or mp3 audio).
Dunno how much work that'll be, but I think it's worth the efforts after all.
Maybe someone wants to give me a hand?
ookzDVD
8th October 2002, 05:42
@Suiryc,
Thank you so much for your nice explaination,
It's clear now ;)
ookzDVD
14th October 2002, 03:50
@Suiryc,
I just test use the -s and the .omx file,
I also try to use the <split>700</split>,
but I got the warning message that the split function is not yet
implemented.
So.. should I use the OgmCutter to do cutting ? Is it key-frame accurate ?
PS. Is that possible to add the "delay" while muxing .avi + .ac3 ?
Thank you.
Suiryc
14th October 2002, 13:09
Originally posted by ookzDVD
but I got the warning message that the split function is not yet
implemented.
Oops forgot to activate the split in .omx file.
Updated OGMuxer v1.0a4
So.. should I use the OgmCutter to do cutting ? Is it key-frame accurate ?
Normally OGMuxer and OGMCutter cut the same way. The only difference is how the program estimate how many bytes will be each part (it is somehow easier when you have already an OGM file like in OGMCutter since you know exactly how many bytes are the headers).
Both tools should be key-frame accurate.
PS. Is that possible to add the "delay" while muxing .avi + .ac3 ?
Sorry but in my first tests to add delays (everything is already in place in the source code for that) I sometimes ended with non playable files (depending on the delay used : too much delay => clip frozen at the beginning :(, had to seek forward to play it), and were not able to determines if the real delay obtained when playing the clip was what I wanted (in other words : I put a 2s delay, but DirectShow tell me there is about 1700ms of silence at the beginning :( ).
So to avoid problems I decided not to completly "implement" this functionality.
ookzDVD
15th October 2002, 09:58
@Suiryc,
Thank you for updating the Ogmuxer,
so I can use the split function now. ;)
Emp3r0r
15th October 2002, 20:21
TIP when using the split function and you want say a 792 meg file you should put a 'M' in the command, for exampleogmuxer --split 792M --title -o smaller.ogm original.ogm
Suiryc
15th October 2002, 20:52
Originally posted by Emp3r0r
TIP when using the split function and you want say a 792 meg file you should put a 'M' in the command, for exampleogmuxer --split 792M --title -o smaller.ogm original.ogm
You may all know, but to stay clear :
Reminder : in an .omx file the number you use already represents MB.
So using --split 792M in commandline, or
<split>
792
</split>
in an .omx file should give same results (i.e splitting into 792MB files).
ookzDVD
18th October 2002, 04:06
@Suiryc,
I just try your latest Ogmuxer 1.0a4 to mux and split the
avi + ac3 + srt + ogg-chap.
And here is the result :
1. The split is working very well, I put the split point @699 and the result was 698. But... The second try I put <split>0</split> to disable the split, and the result is the program somehow behave like when I perform split, it calculating the split point and not direct writing the .ogm file.
2. The subtitle after split is screw-up, I can confirm it 'cause when
I try to mux it without split the subtitle are ok. The problem is somehow the subtitle contain the previous text from previous timestamp.
3. The chapter for the 1st part contains the chapter name which belong to the 2nd part, how to remove them so the first part not contain the second part chapter name ?
Thank you.
Suiryc
18th October 2002, 13:41
1. And where did it try to split when using <split>0</split> ? I think I see where is the problem (workaround should be to use <split></split> I think)
2. Will test to see if I can reproduce that
3. Strange, should not do that. The default behaviour should be to keep the last chapter of previous part and discard chapters not belonging to the part :/. Are all the chapters of the second part kept, or only first ones ? (and then what is the time of those chapters in the second part : are they at the very beginning ?)
ookzDVD
18th October 2002, 14:40
@Suiryc,
1. Ok, I think it's my fault, I'll try to use <split></split>
but... I think <split>0</split> should perform the same behaviour
like <split></split> :)
2. Please test, thank you.
3. suppose I have 7 chapters :
1,2,3,4,5,6,7
the split is between 4 & 5,
so the result should be :
1st part : 1,2,3,4 and the 2nd part : 5,6,7
but the ogmuxer produce :
1st part: 1,2,3,4,5,6,7 and 2nd part: 5,6,7.
Thank you.
Suiryc
18th October 2002, 16:40
1. Found the bug. Easy to fix.
2. Couldn't reproduce the bug yet :(. Could you tell me if the cut was made on a subtitle ? (i.e. does the last subtitle of first part = first subtitle of 2nd part)
3. Found the bug. More difficult to fix (but I will try ;)). This bug only happens for the first part.
Suiryc
18th October 2002, 18:31
1. and 3. should be fixed in version 1.0a5
I fixed another bug (when cutting an ogg/ogm input file), and changed some things that may be related to your problem with subs (but I doubt about that).
If the sub probem is not fixed could you use OGMInfo on the two parts :
- with no parameter except "-l your_logfile.txt" for part 1 (I just need the information given at the end about each stream).
- with "-v3" parameter for part 2 : here you can use Ctrl+C to stop OGMInfo cause I only need the first lines (let's say 100 first lines) of the log file.
Thanks :)
goweropolis
18th October 2002, 23:13
You know what would be a great idea. If Suiryc & Koepi combined their talents into one super OGM multiplexer. Suiryc seems to have the technical edge and Koepi has a simple, intuitive front end. A combination would be an incredible tool to help promote ease of use for OGMs.:rolleyes:
Then it'd be easy to get my AC3s into my OGMs! ;)
Thanks for the great programs guys!
inoteb
19th October 2002, 16:38
@Suiryc
Just a question... I have an .omx file ready for OGMuxer but I'd like to add few things before running it:
For splitting, is it possible to specify a frame where to cut (instead of size cut) and how ?
For chapters, can I specify the splitting method (and how) ? In part1 I would like to throw away chapters belonging to part2, and in part2 throw away chapters belonging to part1.
I think I understood how to do this in command lines but I'd prefer use an .omx file (far more convenient)
Thanx,
inoteb ;-]
Suiryc & Koepi OggMediaMuxer ? yes, it would rock for sure :D ;)
Suiryc
19th October 2002, 17:12
Well I never really tried it (so you will be my beta-tester here ;)), but here is something that should work :
First the .omx file is 100% compliant with OggMux (so you cannot put things other than the one defined for OggMux ... i.e. no splitting on a frame and so on :()
But you should be able to use the other options in the command line.
Which means in your case : you use your orignal .omx file (using <split>0</split>), and use the command-line as "usual" :
OGMuxer -s MySetupFile.omx --chapters 3 --frames " ??? ??? "
where ??? is the frame where you would like to split.
Tell me if this works :)
inoteb
20th October 2002, 00:18
Originally posted by Suiryc
Tell me if this works :)
Well, I tested... unsuccessfully :(
A process is runned and completed, but at the end... I get no file ! :confused:
I attached ZIP file with the *.omx file + a snapshot of the command lines window at the end of process.
May be I've done something wrong ?...
Just to see, I also tried with your VirtualDub. Pity it can't keep chapters data (and split them as in OGMuxer)... Do you think you could add this function one day ?
But anyway I tried and this time I got my 2 parts. They are fine (but without chapters of course) and subtitles have been cut correctly. But at the end of the first part playback, the player freezes (program error) and the last second of audio is repeated in loop during ~ 5-10 sec. (tested with ZoomPlayer & TCMP).
And now it's time to sleep a little ! :D
Cya,
inoteb ;-]
ookzDVD
20th October 2002, 09:54
@Suiryc,
Thank you for your fast bugfix ;)
I'll try with the latest Ogmuxer 1.0a5, as soon as I go home,
and I'll report the result soon.
Suiryc
20th October 2002, 15:36
Originally posted by inoteb
May be I've done something wrong ?...
No I made something wrong ;)
So I fixed another bugs in OGMuxer1.0a6.
And you command line should be :
OGMuxer -s F:\Octobre.omx --chapters 3 --frames "0 103330 103330"
Hope this will work this time :)
Concerning VirtualDub : normally the chapters should also be adjusted according to your selection (with 18-10-2002 version). But apparently there is still some bugs :(
I think I fixed both problems (concerning chapters, and the fact your player - in fact OggDS I think - crash at the end of the clip when watching subtitles) :) go & see version 20-10-2002
ookzDVD
21st October 2002, 04:18
@Suiryc,
1 & 3 solved ;) Thank you.
2. The subtitle is still problem, I just email you the OgmInfo's log
for the first and second part.
Thank you.
inoteb
21st October 2002, 08:39
Originally posted by Suiryc
So I fixed another bugs in OGMuxer1.0a6.
And you command line should be :
OGMuxer -s F:\Octobre.omx --chapters 3 --frames "0 103330 103330"
Hope this will work this time :)
Concerning VirtualDub : normally the chapters should also be adjusted according to your selection (with 18-10-2002 version). But apparently there is still some bugs :(
I think I fixed both problems (concerning chapters, and the fact your player - in fact OggDS I think - crash at the end of the clip when watching subtitles) :) go & see version 20-10-2002
Well thanks Suiryc; it's a pleasure to test your tools and report bugs because you're really fast for fixing :cool:
I'm in a hurry to get back home to try these new versions... unfortunately it will be only on Tuesday evening.
I'll let you know about the result ;)
Cya,
inoteb ;-]
inoteb
23rd October 2002, 21:44
Originally posted by Suiryc
No I made something wrong ;)
So I fixed another bugs in OGMuxer1.0a6.
And you command line should be :
OGMuxer -s F:\Octobre.omx --chapters 3 --frames "0 103330 103330"
Hope this will work this time :)
Concerning VirtualDub : normally the chapters should also be adjusted according to your selection (with 18-10-2002 version). But apparently there is still some bugs :(
I think I fixed both problems (concerning chapters, and the fact your player - in fact OggDS I think - crash at the end of the clip when watching subtitles) :) go & see version 20-10-2002
With OGMuxer 1.0a7 it works flawlessly (except that at the end of Part1, playback starts again from the beginning).
With VirtualDubOGM (22.10.2002) it's quite fine (chapters cut : excellent) but the 4 last seconds of part1 are not played and playback starts again from the beginning . But now it's very easy to get a keyframe accurate cut on OGM :cool:
Good job Suiryc ;)
Suiryc
23rd October 2002, 22:45
Originally posted by inoteb
With OGMuxer 1.0a7 it works flawlessly (except that at the end of Part1, playback starts again from the beginning).
What do you mean?
With VirtualDubOGM (22.10.2002) it's quite fine (chapters cut : excellent) but the 4 last seconds of part1 are not played and playback starts again from the beginning.
It is due to the subtitles. I don't cut "properly" subtitles in VirtualDub : the last subtitle is in fact not cut at all, which means that if it lasts 4 seconds more than where you ended the part, then your clip will say it lasts 4 seconds more than the video length (and of course the last 4 seconds are not played since there is no video or audio, just the last subtitle).
inoteb
24th October 2002, 01:07
Originally posted by Suiryc
What do you mean?
I mean that normally, at the end of playback video stops. Whereas in this case it restarts automatically (like a loop).
In french (easier :D ) : à la fin de la première partie, au lieu de stopper, la lecture reprend automatiquement depuis le début (comme une lecture en boucle, sauf que je n'ai pas paramétré le lecteur ainsi).
s34get
25th October 2002, 14:52
everytime i try to mux a ac3 and a ogg track into the ogm, the playback of the first audiotrack works fine but the second is much louder than the first and crunches.
i've tried virtualdubAVS&OGG and ogmux.
thx for our help
Suiryc
25th October 2002, 15:15
It is (in general) normal that your AC3 track isn't as loud as your other (encoded in Ogg, MP3 or what you want) tracks because the encoding tools generally higher the sound (normalization and so on settings).
For the problem with your Ogg track I am not sure I can do anything here. Either it comes from the original file (but I am sure you tested it), or from the OGM structure my tools generate (and AFAIK it is not a too bad structure) that give problems to the filters rendering the OGM file.
What you can do to help me here fixing a possible bug is :
- first demux the streams to see if the Ogg stream is good (i.e. does the demuxed Ogg stream play without any scratch)
- if the demuxed Ogg stream seems OK, just mux your video and this Ogg stream to see if the problem remains
- then finally (in all cases) use OggMux to remux the streams : I think you can use an automatisation setup file precising your OGM (with the video+AC3+Ogg) in the <movie></movie> section (don't fill the other sections since we already have all we need). This way I will know if this is a problem with my tools or if it comes from DirectShow.
Thanks
s34get
25th October 2002, 21:33
thanks for answering :)
ogg file is ok.
avi+ogg is ok.
but how do i open a .omx fiel with oggmux 0.94 ?
but maybe i've found a problem: if i uninstall morgan stream switcher both streams sound good in zoomplayer.
Suiryc
25th October 2002, 21:40
Originally posted by s34get
but how do i open a .omx fiel with oggmux 0.94 ?
This is a file you give to OggMux in commandline.
So I think that either opening a DOS box and using "OggMux YourSetupFile.omx" or just drag'n'dropping the file to OggMux should work.
Be sure you correctly wrote the file before, if not OggMux won't be happy (and may do nothing of course) ;)
(there is an example of such a file with OggMux I think)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.