[MPlayer-users] [PATCH] reworked video capture - testers needed

Jindrich Makovicka makovick at kmlinux.fjfi.cvut.cz
Sun Aug 11 10:30:02 CEST 2002


Greetings.
This patch adds the following features to V4L module:

- multithreaded audio/video buffering
- a/v timebase synchronization (sample count vs. gettimeofday)
- "immediate" mode support for mplayer
- fixed colorspace stuff - RGB??, YV12 and YUY2 modes now work as expected
- native ALSA9 audio capture

Please try this patch out. If you're using *BSD, please verify that
this patch doesn't break anything in bsdbt capture plugin.

Things you could especially test are 1) trying various colorspaces
(RGB15|16|24|32, YV12, YUY2, I420) - just to verify that they give the
correct colors, there's no point in capturing in RGB24 into DIVX -
and 2) capturing a bit longer video (about 2 hours) to verify the a/v
sync.

For a quick start, here is a sample command line, which should work for 
decent machines >1GHz + DDR266:

mencoder -v -tv on:driver=v4l:width=768:height=576 \
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900 \
-oac mp3lame -lameopts cbr:br=64 \
-vop crop=720:540:24:18,pp -npp lb -o test.avi

If you have a somewhat slower machine, try this:

mencoder -v -tv on:driver=v4l:width=384:height=288 \
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900 \
-oac mp3lame -lameopts cbr:br=64 \
-o test.avi

For watching deinterlaced TV:

mplayer -v -tv on:driver=v4l:width=768:height=576 \
-vop crop=720:540:24:18,pp -npp lb

Enjoy.

-- 
Jindrich Makovicka

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tv.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20020811/47a820e7/attachment.asc>


More information about the MPlayer-users mailing list