Log in

View Full Version : OggMux 0.9.0


Koepi
29th July 2002, 18:34
Ahoy!

I finally did it:

Changelog:

29.07.2002 19:00h
- Version 0.9.0
- Added automisation support. Use command line parameter "-f <filename>" for making OggMux read that file, fill the lists and start multiplexing. When finished multiplexing OggMux will close itself.

I hope this is helping the developers and the brave users of oggmux :)

Find it following the link in my signature.

Regards,
Koepi

Sigmatador
29th July 2002, 19:59
has the split been modified? because on my athlonxp with win2kpro split always means crashing (and with oggcut too but i'm going to compil oggcut with last delphi for 2k/xp, i hope it will fix my problem).

ps: the last XviD build Rox Hard ! ^_^ good job k ;-]

Koepi
29th July 2002, 20:10
If OggCut crashes on you too then...

Both apps are using the directshow filters, and guess what? ;)

So the filters don't like the stream you're producing, maybe you should check for corrupt input files.

Regards,
Koepi

PlazzTT
29th July 2002, 20:23
Minor: OggMux 0.8.5 is still in the title bar.

Koepi
29th July 2002, 20:27
Oopsi, didn't see that one ;)

Cork, Ireland?

My stepmother comes from there, and huge part of the family lives there, too :) Welcome to our community!

Regards,
koepi

Sigmatador
29th July 2002, 20:39
streams: Xvid with vdub, Ogg with HeadAc3He and Srt with subrip
same problem with divx502
i have this problem with all my 2 cd rips
but this crash problem dispointe me. Sometimes it crash sometimes not... no easy to understand
I will try to format and make a clean install etc... and hope :cool: but i have heard many people about crashing when splitting on NT system (often win2k, sometimes winxppro)

another question plz: Why we have to choice 650,700 or 800 for the files instead giving the number that we want. It good be usefull for a 2 overburned-cd-rips or 2 mode2-80min-cd-rip, 2x90min etc... ^-^

Koepi
29th July 2002, 20:44
Uh, could you PLEASE try to search for that first?

Ok, I'll write it _again_: because if I make those controls editable they don't get updated properly, causing weirdest things to happen (i.e.: you enter 702mb. but the file doesn't get split at all.)

Those crashes appear if your input files are invalid (I repeat myself like a phrase machine here as well), i.e.: the timestamps of you srts are flawed. Headache seems to produce invalid oggs sometimes, try besweet.

Regards,
Koepi

Sigmatador
29th July 2002, 20:48
i think i forgot to explain something:
I can mux with Oggmux, but i can't mux when using split. And if I mux without splitting, the file is good but i can't split this one with oggcut.

lol i hope you have understand this ^^ (damned! where are my english lessons)

Koepi
29th July 2002, 20:51
Oggs have timestamps.
srts have timestamps.

If those are flawed somewhere (like the ogg files created with headache sometimes are), splitting _can't_ work, because we searching based on _time_. And the graph won't advance if the times are wrong.

I hope I finally explained it so everyone can understand that.

Regards,
Koepi

Sigmatador
29th July 2002, 20:53
(my last msg was written when you answer me ^^ sorry)
ok for the split control, it was just a question in my head.

ok ok i will reencode audio files, and subtitles files.
but i look the movies with the big one 1400mo file, audio and subtiles are perfect ^^

so let's go for encode
bye all

Koepi
29th July 2002, 21:01
Enjoy! It's a nice hobby i tell ya! :)

:)

Regards,
Koepi

kxy
29th July 2002, 21:15
For the future, it is possible to default the audio language and subtitle language to English? Since most of us uses English and the option list is quite long? Just for convience sake.

Ivion
29th July 2002, 22:10
Originally posted by kxy
For the future, it is possible to default the audio language and subtitle language to English? Since most of us uses English and the option list is quite long? Just for convience sake.

Default audio language to English, I can understand, as most movies are English (tough there are notable exceptions [did I spell that right? don't think so ^.^], like Japanese and Chinese [or any of those dialects] movies/anime).
But default subtitle language to English? Most users on this forum aren't English/American (I believe, correct me if I'm wrong :)), and most users will rip subs according to their motherlanguage.

I don't have anything else to say, and this post wasn't really neccesary, so errmmmmmm....NEXT! :p

Koepi
29th July 2002, 22:34
Hm. ok, I'll stick to the default behaviour then ;)

*hide*

Regards,
koepi

soulfx
30th July 2002, 04:26
Thanks for building in automation script support. I was going to start work on an automation script myself, but you saved me the trouble :)

Just one question... does 1 in the split section disable split? (it probably does, but just double checkin')

As always, you do great work Koepi.
-SoulFX

Koepi
30th July 2002, 05:07
0 disables, 1 sets it to 650mb, 2 to 700mb and 3 finally to 800 mb.

regards,
Koepi

Emp3r0r
30th July 2002, 05:49
XML format is a GREAT idea... but does the file rely on line breaks when being processed? It isn't recommended to use whitespace for structure in XML.

I'd recommend:
<muxjob>
<video>D:\movie.avi</video>
<title>My movie</title>
<soundtracks>
<soundtrack lang="English" offset="0">D:\soundtrack1.ogg</soundtrack>
</soundtracks>
<subtitles>
<subtitle lang="English">D:\subtitles1.srt</subtitle>
</subtitles>
<chapters>D:\mychapters.txt</chapters>
<target>D:\movie.ogm</target>
<split>702</split>
</muxjob>

Thanks for OggMux Koepi! Keep up the grand work.

Koepi
30th July 2002, 05:55
I wanted to write an easy parser with human readable files. Since most programmers know SGML,...

I don't need an extra course in XML, believe me, I know what I'm doing. And real XML is overkill for such a tiny thing.
You people have to learn one lesson:

Is the time spent for coding that parser (HUGE!) worth it (options etc: FEW). The relation doesn't fit.

*grrr*

I'm NOT dumb.

:stupid:

;)

Regards,
Koepi

Emp3r0r
30th July 2002, 06:06
damnit, I knew you'd get upset before you did :sly:, oh well I wasn't trying to teach you anything and I'm positive you know what your doing (look at XVID)... but I don't get Is the time spent for coding that parser (HUGE!) worth it The whole reason I recommened the different way so that you can parse it. If you parse it now and you call for the audio node text you get:
D:\soundtrack1.oggEnglishD:\soundtrack2.wavFrench999 this isn't pratical XML and programmers that wish to use the automation are stuck reading/writing the file as text, not XML

So either use XML right, or just use text

*grrr*

Please understand I'm not trying to cause problems, so keep cool

Koepi
30th July 2002, 06:56
erm, those lines are separated by <CR> , dunno why you get a wrong presentation, maybe you should try wordpad for reading it.

I'm fetching the buffers via GetLine so if those were missing, f***ing hell.... ;)

And yes, between the sections you can enter as many CRs as you like (even 0). I just didn't have the time to build an error-robust parser, so _in_ a section there should be no empty lines on their own.

empe, I wrote a ";)" at the end of that post - guess what's that supposed to mean?

Regards,
Koepi

Beave
30th July 2002, 11:37
Thanks a lot for the commandline support. I was already thinking about asking you about this. It works great.
First I had the problem that it wouldn't do anything and simply take up 100% CPU Power. I tried it this way:

oggmux -f "setupfile.omx"

but it has to be:

oggmux -f setupfile.omx

But since spaces in the filename are ok everything is fine. Except maybe there could be an errorhandling by specifying the wrong setupfile.

Now I can automate everything after GKnot until I take the CD out of the tray. Well, I still have to put the blank CD into the Burner...

Emp3r0r
30th July 2002, 22:12
Originally posted by Koepi
[B]erm, those lines are separated by <CR> , dunno why you get a wrong presentation, maybe you should try wordpad for reading it.

Oh, I'm not having any problems at all reading the file... it's parsing the file with an Xml Parser that is the problem. The format in it's current form is supurb :D for human readability, but it isn't XML parser friendly, and therefore poses a compatability problem for programs generating/reading that file.

I see you don't use some sort of standard XML parser to grab the data from the file... you say your reading it like a text file or do you actually have some kind of DOM object to work with in delphi?

Koepi
31st July 2002, 03:57
OUCH!

Delphi!?

You _REALLY_ want to insult me?

You have a plain old fashioned MFC C++ app in front of your eyes mate!

No need for buzz-word puzzling XML or any other stupid file-size-growing, useless crap.

just a single text-file-parser you're dealing with...


delphi....


he didn't write that, right?....

I need another beer.

I didn't know my aaps look so poor BullShit like :-(

sillKotscha
31st July 2002, 18:34
the following text is quite long and just to let U know Koepi...

I made a 2 CD rip (amores perros)... video-codec divx5.02, audio-codec vorbis. I joined audio and video by using OggMux 0.8.5 but with the extension .avi - no problem at all (no sync nor spooling problems). reason: if I share my movies they are all (fake) avi's and every other person only needs the Ogg Vorbis DirectShow filter collection - so, there is no need for creating a new fileextension for windows(.ogm).

today I thought about cutting/ splitting my file into 2parts (for 2 CDs) and as I forgot about my "little trick" I tried loading my "avi" into nandub... of course nandub was complaining about this avi-file. Then it came into my mind again... avi with ogg!! hmm, as I am lazy I thought about splitting my movie without demultiplexing audio and video again. Therefore I loaded my file into OggMux again - this time 0.9.0 - selected my output destination (split at 700MB) and hit 'mux file'. Now OggMux starts complaining about a missing soundfile (soundfile error) but after hitting 'OK' it starts "muxing" my file. After reaching the proposed 700MB it needed quite a long time for searching the next keyframe (~8min) but then started with the second part. After finishing the second output file, OggMux was closed by the following error - "Diese Anwendung wird aufgrund eines ungültigen Vorgangs geschlossen", sorry can't tell ya in english but I think/ know Koepi speaks german. Funny thing about it is, that both splitted files were just perfect (not keyframe accurate but that's old news).

resume:
- OggMux is able to cut OggMedia without demultiplexing but ends up with an error message after finishing splitting

just to let you know...

P.S.: ever tried to hit 'Exit' while it is working on something (muxing or in my case splitting)???... OggMux is closed by hitting 'Exit' - no wonder - but it is still working behind

Koepi
31st July 2002, 18:41
Yeah, the filtergraph keeps running then, I think that's an ok behviour. (if you don't like it, I can change that on oggmux 0.9.1).

So why does OggMux crash on you all the time, I don't understand. It doesn't crash for me :-/

Thanks for the input btw., cutting OGMs with oggmux is a funny way of using it, never thought of it before :)

Regards,
Koepi

sillKotscha
31st July 2002, 19:01
Originally posted by Koepi
(if you don't like it, I can change that on oggmux 0.9.1).

wow, just for me... yeah, go on like that OggMux 0.9.1 only for me :D

So why does OggMux crash on you all the time, I don't understand. It doesn't crash for me :-/

not all the time... just at the end after "muxing" (splitting) the second part - when you say 'all the time' you don't mean my soundfile error, do you?! - because my aim (as you understand it right) was splitting and not muxing, therefore I don't need an audiofile because my movie already contains audio... but OggMux is just complaing about the missing audio as it "think" I want to mux something, while you can't mux something without audio - don't care about this error, OggMux works for splitting OGMs like a charm :rolleyes:

cutting OGMs with oggmux is a funny way of using it, never thought of it before :)

you're ingenious by coding e.g. OggMux, I'm ingenious by using your kick ass products :)

Koepi
31st July 2002, 20:01
Ok, on the todo-list:
- Stop filtergraph when closing oggmux.

I didn't intend to change the no-soundfile-info-box as it was requested by other users who forgot about using the ADD-Button ;)

On the crash issue, I looked a little around and this only seems to happen with DivX5(.02). So either OggDS filters dislike DivX for some reason (maybe bframes?), or the DivX5 DSF introduces the error.

Dunno what to do about that as i refuse to install bloatware ;)

Regards,
Koepi

Emp3r0r
31st July 2002, 20:17
Originally posted by Koepi
Delphi!? You _REALLY_ want to insult me? You have a plain old fashioned MFC C++ app in front of your eyes mate! err, sorry bud, I have no idea why I thought it was programmed in delphi. I apologize.

No need for buzz-word puzzling XML or any other stupid file-size-growing, useless crap. Again, I thought you were actually taking advantage of XML, but obviously your not.

just a single text-file-parser you're dealing with...
why bother with the xml tags then?
I need another beer.Yes, everybody have a cold beer!
I didn't know my aaps look so poor BullShit like :-(
Come on now, no one said that but you! Chill out. :cool:

PS: again, remember, no oneis here to criticize you, in fact it's the people here that admire your work the most ;)

soulfx
31st July 2002, 20:45
Hi everyone,

I figured I would share my little program.

Since OggMux now supports automation via scripts I created this program that will automatically generate those scripts. Works good for me, and it might be helpfull to you as well.

A little List o' Features:
Manual Mode: Drag and Drop Files to have it create the OMXscript
Full/Auto : Have it figure out the files automatically based on a search string.

Grab it here:
http://members.cox.net/soul.fxpro/OMXgen-0.1.1.rar

--Edit: fixed some big issues with crashing when no title is entered and stuff like that, added autosearch and launch OggMux to manual mode.

Peace,
SoulFX

spyder
31st July 2002, 21:10
Maybe he just uses the XML like tags for separation. I mean, really. Why do you people always request XML for everything? It just bloats the software. I agree it makes things more readable and editable but look at the previous config files and job files. They are used aren't they.

Emp3r0r
31st July 2002, 21:25
Why do you people always request XML for everything? It just bloats the software. I still don't understand this reasoning. XML is soooo simple. It is easier to access than text files. Watch I can program in a couple lines to get name of movie from file.
XmlDocument xDoc = new XmlDocument();
xDoc.Load("koepi.omx");
XmlNode xNode = xDoc.SelectSingleNode("//title")
txtTitle.Text = xNode.InnerText; how does these lines bloat software? ok, so maybe the .NET framework is bloated at 20+ megs :rolleyes:

Is this too complicated, its prolly even less lines in VC++.NET

1nut1l
1st August 2002, 10:00
@koepi
I never used DivX, I am really a newbie and only used XviD from the very first of my encodes. I did not install oggMux 0.9 yet either (but I will for sure, great tool indeed!!)
I have experienced those crashes too with oggMux 0.8.5, just after finishing the muxing job. It does not happen when the splitting feature is disabled.
I couldn't say whether it depends on the XviD build ( I have been using all of them, Nics, Koepis, uManiacs ) because I did not pay much attention to it since the final splitted ogm files are always Ok and did not find anybody posting about this in the forum. I thought it was my fault (or even my pc setup)

I am using W2K sp2, directx8.1 installed, oggDS 0.9.9.1 and subtitds 1.1.2.2

Just let me know if you need any more info.

Koepi
1st August 2002, 11:59
Hi,

ok, sounds reasonable too.

Crashes occure in splitting mode, or when divx5 is used. hm. Dunno what to do with that, but I _can_ try to do the splitting in a little other way, let's hope it still works then - and hopefully it will fix those crashes.

But I need some coffee and a cigarette first, just got up some minutes ago as the night was loooong again ;)

Regards,
Koepi

stax76
1st August 2002, 17:24
I don't like to post in this board because of my crap english and my lack of knowledge, I guess this board has a high level. Just wanted to say thanx to Koepi for the omx solution, I was asking him for command line support. My second concern is to make a little advertising for my program DVX, which features of OggMux are supported, can be seen on the screenshots (http://home.arcor.de/frankskare1/dvx/#screenshots)

Koepi
3rd August 2002, 05:27
Dolemite,

since I can see nowhere that you support OggMux on your advertisment screenshot page, and that you advertise with huge graphics that you prefer divx over XviD, I must ask you to show in BIG LETTERS :P that you invoke OggMux (I'd like to ask everyone who uses this feature and sells this as his own to mention that his/her program uses MY code to mux OGMs *eg*).

Regards,
Koepi

BlackSun
3rd August 2002, 07:51
Originally posted by Koepi
OUCH!
Delphi!?
You _REALLY_ want to insult me?
You have a plain old fashioned MFC C++ app in front of your eyes mate!
No need for buzz-word puzzling XML or any other stupid file-size-growing, useless crap.
just a single text-file-parser you're dealing with...
delphi....
he didn't write that, right?....
I need another beer.
I didn't know my aaps look so poor BullShit like :-(

What! What !? :o Delphi is skillfull and powerfull. TCMP is coded using Delphi and the next alpha is filled with XML :D :cool:

stax76
3rd August 2002, 08:55
yo, kannst du das bitte ab I must ask you etwas ausführlich i deutsch sagen, ich raffs wirklich nicht

stax76
4th August 2002, 22:04
I'm sorry, got it now, I must must be stupid not to understand this ( what's :P, disabled smiley? )

I got some credits, there are presets for the launch feature for all the programs that have a GUI, and the GroupBox is called OggMux, what else can I do, I make everything you suggest, I hope my program don't look poor BullShit like after ;)

best regards
Dolemite

Koepi
4th August 2002, 22:42
Thanks dolemite! :)

Regards,
Koepi

Zeus
5th August 2002, 14:57
Hi Koepi.
I have a suggestion for the -f option of OggMux 0.9.0:
How about a small windows with a process bar (with percentage indicator) and two buttons, 'cancel' and 'pause/resume'?
I would be very happy if you can set this on your to-do-list.

CU,
Zeus.