On Tue, 2009-04-21 at 06:41 +0200, Francesco Romani wrote:
> On Sun, 2009-04-19 at 15:20 -0500, ted morris wrote:
> > 
> > Greetings,
> 
> Hi,
> 
> > I would like to capture video w/o having to reset the card(s) with
> > awtv,tvtime, etc.,etc.
> > through X.
> > 
> > It can be done with mencoder so I am assuming there must be some
> > 'trick' to doing
> > it with transcoder. As claimed by a student over here the mencoder
> > command looks
> > like this:
> > 
> > mencoder -ffourcc XVID -oac lavc -ovc lavc -lavcopts
> > vcodec=mpeg4:mv0:trell:v4mv:vbitrate=3000:ildct:aspect=16/9:acodec=mp2
> > -tv
> > driver=v4l2:norm=ntsc:input=2:adevice=/dev/dsp:width=720:height=480
> > -o /videos/test.avi tv://
> > 
> > Here is a command I have been using for quite a while which captures
> > perfectly the
> > way I want but still requires starting x, running tvtime (for
> > example), then closing x:
> [...]
> > thanks to any/all in advance for suggestions and help.
> 
> You'll just need the last version of the import_v4l2 module :)
> The 1.2.0 development plan included the addition of tuning support
> for that module, and the code is already on HG.
> Unfortunately, HEAD is on flux those days, so isn't yet ready to be used
> (even for the brave testers :(, unluckily)
> 
> I'll backport the module to 1.1.x and merge it for 1.1.3, and drop a
> note here when it's ready to be tested.
> 
> Bests,

Pushed! -> http://hg.berlios.de/repos/tcforge/rev/c7fca0dfcb86

You'll just need a fresh HG snapshot (don't forget to do
hg update transcode-1_1
because the default branch is the HEAD one)

The input norm (PAL/NTSC) support is still lacking, I'll work on that
during the next weekend.

There is some basic documentation embodied into the module itself, just
take a look at the sources and look for the marked comments (*%*);
The docs are also pasted here verbatim

 *%* DESCRIPTION 
 *%*   This module allow to capture video frames through a V4L2 (V4L api
version 2)
 *%*   device. While audio capturing is possible, this kind of usage is
discouraged
 *%*   in favour of OSS or ALSA import modules.
 *%*
 *%* #BUILD-DEPENDS
 *%*
 *%* #DEPENDS
 *%*
 *%* PROCESSING
 *%*   import/demuxer
 *%*
 *%* MEDIA
 *%*   video, audio
 *%*
 *%* #INPUT
 *%*
 *%* OUTPUT
 *%*   YUV420P, YUV422P, RGB24, PCM
 *%*
  *%* OPTION
 *%*   ignore_mute (boolean)
 *%*     disable the device audio muting during the operation.
 *%*
 *%* OPTION
 *%*   resync_margin (integer)
 *%*     threshold audio/video desync (in frames) that triggers resync
once reached.
 *%*
 *%* OPTION
 *%*   resync_interval (integer)
 *%*     checks the resync_margin every given amount of frames.
 *%*
 *%* OPTION
 *%*   overrun_guard (integer)
 *%*     flag (default off). Toggles the buffer overrun guard, that
prevents crash when capture buffers are full.
 *%*
 *%* OPTION
 *%*   crop (string)
 *%*     forces cropping into selected window (format: WIDTHxHEIGHT
+LEFTxTOP)
 *%*
 *%* OPTION
 *%*   convert (integer)
 *%*     forces video frames convertion by using index; use the special
value "list"
 *%*     to get a list of supported conversions.
 *%*
 *%* OPTION
 *%*   format (integer)
 *%*     forces video frames convertion by using index; use -1 to get a
list of supported conversions.
 *%*
 *%* OPTION
 *%*   format (string)
 *%*     forces output format to given one; use "list" to get a list of
supported formats.
 *%*
 *%* OPTION
 *%*   input (string)
 *%*     select the V4L input source. V4L cards have often have more
than an input source like,
 *%*     say, a tv tuner and a composite source. Use "list" parameter to
get a list of supported
 *%*     input sources.
 *%*
 *%* OPTION
 *%*   channel (string)
 *%*     synthonize the V4L tuner to selected TV channel. The channel
frequencies are taken by
 *%*     the module configuration file, and they must be expressed in
KHz.

The module expects frequencies from a configuration file,
"tvchannels.cfg" into the working dir or into ~/.transcode.

The expected format of the file is the usual ini-like one:

(begin of file)
[channel_name_1]
frequency=XXXXXX

[channel_name_2]
frequency=YYYYYY

...
(end of file)

Let me know if you encounter any problem, need help for troubleshooting
or if there is something lacking.

Bests,


-- 
Francesco Romani // Ikitt
http://fromani.exit1.org  ::: transcode homepage
http://tcforge.berlios.de ::: transcode experimental forge

Reply via email to