Log in

View Full Version : OGM as source video


SirElvis
9th October 2002, 12:25
I'm trying to use a ogm file as source in an avs-script. Just:


DirectShowSource("File.ogm")
But when opening the file with a video player it tells me:


Unrecognized exception!
(F:\video\test.avs, line 1)
What am I doing wrong, or isn't it possible to load ogm files?

hakko504
9th October 2002, 12:38
I haven't tried to open OGM files, but if there is a DirectShow filter installed then you might want to add a framerate when using DirectShowSource("file.ogm",<framerate>). You can also try adding ConvertToYUY2() to the script.

ChOcO-Bn
9th October 2002, 13:41
well i think u must convert your raw with HuffYuy,... it makes a big files but it's working fine and u can use avisource ^^
++

ps: ( yeah my first post on doom9 ^^ )

Metalazzo
9th October 2002, 13:45
well can't he just demulptiplex his ogm file instead of recompressing it with HuffYuy ?

SirElvis
9th October 2002, 15:33
DirectShowSource("file.ogm", <framerate>)
ConvertToYUY2()
No, that didn't help.

well can't he just demulptiplex his ogm file instead of recompressing it with HuffYuy ?
I could, but that's not what I want to do. I've the parts from a series and they all have the same intro and credits. Now I want to create a avs script which loades the episodes, cuts the intro and credits off, and then joins them, so I can view them without always having to start the next file and without the same intro and credits all the time.

Trahald
9th October 2002, 17:44
perhaps use graphedit to convert demux then multiplex in AVI container.. even though there are sync issues with vorbis in avi on playback.. it most likely wont come into play with a conversion (shrug)

then load the avi as usuall

cfm
31st July 2003, 08:11
Any more information or suggestions on this? I have a similar problem.

The file I'm trying to import plays on Media Player, so all the required drivers and codecs should be on the system. When I use DirectShowSource in an avs script, I get a blank screen. The indicated movie duration is also shorter than the actual duration of the movie.

Wilbert
31st July 2003, 09:38
Sh0dan worked on graph support for DirectShowSource. Maybe you can test it? Just open the ogm in Graphedit -> save it a as file.grf -> make the following script:

DirectShowSource("file.grf", <framerate> ) # including correct path, etc.

cfm
1st August 2003, 08:01
I realised that my file was encoded for XCD. After converting it from the .dat file to an .avi file I did manage to get the video from the ogm file using DirectShowSource, but not the audio. It there another way of getting the audio out of an ogm file?

I tried using GraphEdit. It displays the graph connections and I can play the video from inside GraphEdit. I saved the files as a .grf file, but the AviSynth does not open it. I get an error message about an "unsupported file format" or something like that. Also, neither Media Player or ZoomPlayer will play the graph file. Do I need a different codec for that? Do I need to download the latest version of AVISynth and try that?

sh0dan
1st August 2003, 12:21
Originally posted by Wilbert
Sh0dan worked on graph support for DirectShowSource. Maybe you can test it? Just open the ogm in Graphedit -> save it a as file.grf -> make the following script:

DirectShowSource("file.grf", <framerate> ) # including correct path, etc.

It's not active yet, because I have no experience with Graphedit, so I don't know what I should do there. The code is directly from the DirectX Documentation, and I put it there to be able to easier implement it, when I find out how to use it.

Mug Funky
27th April 2004, 08:57
holy thread resurrection! :)

i've got a similar (but i suspect messier) problem:

ogm + srt subs + ac3.

virtualdub flat out rejects it as directshowsource("blah.ogm"), and making a working graph doesn't help matters.

error message:


Avisynth open failure:
directshowsource: could not open as video or audio

video returned: "directshowsource: could not open file "blah.ogm":
classfactory cannot supply registered class"

audio returned: "directshowsource: could not open file "blah.ogm":
classfactory cannot supply registered class"


i'd prefer not to transmux, as i like the subs how they show with vobsub (perhaps this is the prob?), and don't want to go through all that just for an ogm->svcd conversion (i make archival avi usually with hard subs, but this time i went ogm with soft subs as i forgot to load them before my 20 hour render :))

the state of my DirectShow is kinda shameful, so no doubt the problem lies with dShow rather than avisynth...