[MPlayer-dev-eng] [PATCH] v4l capture RC1(?)

Magnus Pfeffer magnus.pfeffer at epost.de
Fri Aug 9 21:43:47 CEST 2002


Am Freitag, 9. August 2002 18:10 schrieb Jindrich Makovicka:

> Greetings,
> this patch adds the following features to V4L module:

Hi,

> - multithreaded audio/video buffering (I know mplayer crew hates threads
> but it seems to me as the only way of doing reliable a/v capture)
> - a/v timebase synchronization (sample count vs. gettimeofday)
> - "immediate" mode support for mplayer
> - fixed colorspace stuff - RGB?? and YUY2 modes now work as expected
> - native ALSA audio capture (optional - just #define ALSA_CAPTURE)

After a little bit of fiddling with the parameters (to get rid of blue faces) 
I used 

mencoder -tv 
on:driver=v4l:width=480:height=576:chanlist=europe-west:channel=E7:outfmt=i420 
-vc rawi420 -oac mp3lame -lameopts mode=3 -ovc lavc -lavcopts 
vcodec=mpeg4:vbitrate=3000:vqmax=10 -pp 0x20000

And I got a perfectly synched, high-quality and de-interlaced AVI file.  
Absolutely astonishing.

My cpu is only a 850 MHz Athlon, so grabbing at higher resolution than SVCD 
would lead to dropped frames, but hey, I do not need more than that (but due 
to slightly bad reception grabbing less lines than the full 576 pal lines 
leads to stripes in the picture)

> I tested it on a ~100min movie captured at 720x540 to mpeg4. There were
> no dropped frames and the image quality was quite impressive, certainly
> better than using avifile & xvid. No problems with a/v sync.

I am stunned! This is by far the best and easiest-to-use video capture I have 
so far found for Linux. And I tried all the usual and not-so-usual suspects 
(ffmpeg, vcr, nvrec, nuppelvideo, zapping, xawtv).

Thanks for this contribution! It is wonderful.

Magnus



More information about the MPlayer-dev-eng mailing list