PDA

View Full Version : How to get uncompressed digital while playing?


nalooti
13th December 2006, 14:04
Hi,

my question may sound bizarre and useless but i ask it anyway because i want to know!

Actually i want to play a compressed (any format Divx, Xvid, ...) movie file (with multitrack sound), that is anything a player like wmp can read, and then get the uncompressed result in digital format just before it is sent to the video card for viewing.

I guess this is the interface between the PC (player application) and the video card (in digital). What is this interface and how to get access to it?
Is it possible to get digital uncompressed bits at the output of the player (while playing) ?

P.S. I know there are softs able to decompress a compressed file (e.g. Vdub) and put the result in a -huge- file. But first, these softs aren't able to read anything a player can read (they're too specialized) and second i don't want to get the result in a huge file; i just want to get it on the fly, in real time (thus playing instead of just decompressing which could be a couple times faster) for further processing.

thanks very much
nalooti

Blue_MiSfit
13th December 2006, 16:49
ffdshow.

If you use it to decode, you can do essentially anything to your video, because it supports AviSynth :)

It also has built in postprocessing filters that can do a wide range of operations.

If you don't want to use it to decode, but just work on the uncompressed output of other decoders, just enable raw video decoding in ffdshow's codecs list. It has a list of colorspaces (YV12, RGB32, YUY2 etc), so just select what ever corresponds to your decoder's output. For most codecs this will be YV12, but something like HuffYUV could be RGB32 or YUY2.

So the result looks something like this (with CoreAVC as an example).

Media.mkv -> *Haali Splitter* -> H.264 -> *CoreAVC* -> Raw YV12 -> *ffdshow with avisynth* -> lanczos resized, noise added, sharpened properly converted RGB32 -> VMR9 renderer

I do this almost always with H.264, resize 2x at least, but usually to my screen resolution with lanczos 2 tap, add a bit of noise, and sometimes sharpen before all that - with seesaw or limitedsharpenfaster. It's cool to have avisynth while playing, trust me!

jggimi
13th December 2006, 16:52
Moved to s/w players forum.