recording one frame to avi-file >> FORUM

Money Forum

Money Forum



SearchSearch   Users   Registration   Entrance
Today: 01.11.2025 - 10:16:41
Pages:  1  

recording one frame to avi-file

MessageAuthor

Hello everyone, i need to record a avi-file in my c++ project, but it must have the lenght of one frame only. I use a normal directshow-filter-chain. After i run the graph i wait for a event with a timeout of about 40ms, so most of the time i get one-frame-avis, but sometimes i get corrupted files with no video and sometimes there a more than one frame... I do not want to use the framegrabber filter, because i need the original codec and colorspace etc. Any idea?

---------------------
Milltek pipes. Ground control coilovers. Conforti Tuned. V1 & iPod hardwired

12:03

money-user




Statistics:
Messages: 8,092
Registration: 05.19.2003
21.06.22 - 23:10:57
Message # 1
RE: recording one frame to avi-file

forget directshow and use the video for windows VFW api. avs2avi should give you a starting point. DaveEL

---------------------
Eric 01 Dinan S2 Way faster than Doug's car (sold to freefly and then he went and sold it) 04 R1150RT Titan Grey (sold) 05 K 1200S The S stands for Silly Fast (still collecting speeding tickets through the lower 48) The new toy..2009 335i w //M sport

ericw

money-user




Statistics:
Messages: 326
Registration: 07.30.2003
21.06.22 - 23:15:56
Message # 2
RE: recording one frame to avi-file

Isn't one-frame avi = still image? :confused:

---------------------

Hornswoggler

money-user




Statistics:
Messages: 2,422
Registration: 01.19.2003
21.06.22 - 23:24:03
Message # 3
RE: recording one frame to avi-file

@DaveEL: but i like directshow :) and i have to use it, because my framegrabber only has directshow-support... @unskinnyboy: you are right, but if you use the framegrabberfilter, then you convert the data to rgb and i loose my 10bit Y'CbCr advantage...

---------------------
Sorry... the server is too busy to fulfill your request. Please try again later.

sirtiger

money-user




Statistics:
Messages: 10,241
Registration: 05.01.2003
21.06.22 - 23:30:46
Message # 4
RE: recording one frame to avi-file

Just had another though you could write a custom dshow filter which would allow you to just grab the single frame. Take a look through the dshow sdk should find some samples to get you started PS if you doing .avi output from this i would still say keep clear of dshow the avi mux filter is terrible DaveEL

---------------------

SouthernBimmerChick

money-user




Statistics:
Messages: 28
Registration: 11.18.2001
21.06.22 - 23:41:51
Message # 5
RE: recording one frame to avi-file

Hi hanfrunz, you can make use of still image generator source filter. Actually it's not represented as Directshow filter but if you render your still image in graph it to be put as that automatically. It is used by DirectShow Editing Services and therefore it's a bit tricky.

---------------------
I like the unicorns. '99 Z3 Coupe - Jet Black/Black (1-of-114) '99 M Coupe - Estoril Blue/Black (1-of-82) '03 540iT - Sterling Gray/Black (1-of-24) '16 Z4 sDrive35i - Estoril Blue/Walnut (1-of-8)

JoshS

money-user




Statistics:
Messages: 4,154
Registration: 02.03.2003
21.06.22 - 23:46:21
Message # 6
RE: recording one frame to avi-file
Chorus and Flanger for Protools : Previous topic
Pages:  1  

Message
Name
Message

Click on the dot next to the name to address the participant

           
   
The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants

Driven by: YaBB SE 9.0