Log in

View Full Version : problems with theora in directshow


Mr C
16th August 2005, 09:36
you can feed ffmpeg2theora with .avs via akupenguin's avs2yuv tool

I've encoded a yuv file with GraphEdit, this resulted in a .ogg file. I've installed the Ogg Codecs for windows and was able to play the file in Windows Media Player. The video looks rather dark in comparission to the original file. Now I want to play the file in VirtualDub using a simple AviSynth script, but it doesn't work. I tried DirectShowSource("theora.ogg"), but I got an unrecognized exeption. Anyone has a suggestion?

Thx

hellfred
16th August 2005, 09:57
I've encoded a yuv file with GraphEdit, this resulted in a .ogg file. I've installed the Ogg Codecs for windows and was able to play the file in Windows Media Player. The video looks rather dark in comparission to the original file. Now I want to play the file in VirtualDub using a simple AviSynth script, but it doesn't work. I tried DirectShowSource("theora.ogg"), but I got an unrecognized exeption. Anyone has a suggestion?

Thx
You need the experimental derf decoder to decode a clip encoded with derf's experimental encoder. Which ogg codecs did you install? I usually use the the mplayer binaries (http://4nykey.nm.ru/bin/) linked against derfs decoder for playback of the clips in question. I do not know where and how to obtain dshow codecs of derf's libtheora. But you can use mplayer to output uncompressed video and feed that to VirtualDub. You just need enough disk space :D

Hellfred

Mr C
16th August 2005, 10:06
Hellfred, thx for the reply.

I installed illiminable's oggcodecs_0.69.8924.exe, and followed his instructions at his 'How to encode theora files with directshow' (http://www.illiminable.com/ogg/enc_theora_graphedit.html) pages.

I tried to install ffdshow-20050803, but then I can't even play the ogg files anymore.

hellfred
16th August 2005, 10:33
Hellfred, thx for the reply.

I installed illiminable's oggcodecs_0.69.8924.exe, and followed his instructions at his 'How to encode theora files with directshow' (http://www.illiminable.com/ogg/enc_theora_graphedit.html) pages.

I tried to install ffdshow-20050803, but then I can't even play the ogg files anymore.
So the clip was not encoded with derf's libtheora after all. Then using illiminable's oggcodecs should work, too, and so should ffdsow.
What needs to be done? First, you need a filter to demux the ogg container. That sould be provided by illiminable. OK
Then the stream needs to be decoded by the codec. This works in Media Player. So OK
This leads to the conclusion, that the problems lies within the AviSynth script.
First thing you can try is to add some more parameters to DirectShowSource, like frames per seconds, to give hinds for the needed parameters to decode your clip. Have a look at the documentation of AviSynth (http://www.avisynth.org/DirectShowSource)
There is an beta version of DirectShowSource.dll floating on this board (http://forum.doom9.org/showthread.php?t=97976). You can try out that one, too.
If you fail, i suggest you also to ask for help in the AviSynth Usage forum (http://forum.doom9.org/forumdisplay.php?f=33) here on doom9.

Hellfred

bond
16th August 2005, 11:38
splitted as it doesnt seem to be related to the derf theora encoder!?

directshowsource() normally indeed needs the fps defined

you can also try the radlight filters i link to in the sticky

and also make sure that not some ogm filter, like the one from tobias, not being able to handle theora, interferes and gets used

about the dark color, thats probaly related to your system settings, try changing the brightness

Mr C
16th August 2005, 12:15
Thx Bond,

the RadLight Filters seemed to do the trick. About the darkness, I don't think it's my system. I encoded the same video with other codecs, all resulting in bright quality, only Ogg Theora seems to be dark. Also, when I play the file using the DirectShowSource in AviSynth with VirtualDub, I get a bright picture. Appartently it's a Media Player issue.

Anyway, thx for the support.

PatchWorKs
17th August 2005, 09:42
Don't wanna be boring, but ffdshow encodes in theora 2-pass...