Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Oct 2016 15:05:15 -0600
From:      Sergey Manucharian <sm@ara-ler.com>
To:        questions@freebsd.org, Olivier <Olivier.Nicole@cs.ait.ac.th>
Subject:   Re: mencoder for a webcam
Message-ID:  <20161031210514.GC12154@debian.ara-ler.com>
In-Reply-To: <wu7zimjw4hc.fsf@banyan.cs.ait.ac.th>
References:  <wu7zimjw4hc.fsf@banyan.cs.ait.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
Excerpts from Olivier's message from Wed 05-Oct-16 16:05:
> I used to have it working, but I cannot find how to get that working
> again:
> 
> I have a webcam installed, webcamd running, and pwcview can show me the
> video.
> 
> How can I use mencoder to capture and save the stream?
> 
> I used to have something of the form:
> 
> /usr/local/bin/mencoder tv:// -tv noaudio:fps=10 -nosound -ovc lavc
> -ofps 10 -lavcopts vcodec=mpeg4:vbitrate=400 -o <filename> -really-quiet

Have you tried ffmpeg instead? I used to use mencoder much, but after
having many issues with it, switched to ffmpeg.

This example works fine for me:

$ ffmpeg -f v4l2 -framerate 25 -video_size 640x480 -i /dev/video0 output.mkv

--
Sergey




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161031210514.GC12154>