[MPlayer-users] grabbing from tv

Valentin Cozma vcozma at one5.ro
Fri Sep 27 08:14:01 CEST 2002


This is the command I used :

mencoder -v -o tv.avi -ovc lavc -lavcopts  vcodec=mpeg4 -oac mp3lame 
-lameopts vol=2 -endpos 60 -tv on:driver=v4l:width=320:height=240:channel=29

And this is the output ( as attachement )

Any help is highly appreciated.

There is another problem : sound does not always work correctly :
if i just used xawtv then i start the mencoder, it starts with no sound.
the solution for me is to start then close the "gnomeradio", then start 
mencoder -> sound is available.

Thanks.

-- 



*********************************************************

Valentin Cozma
One5 Corporation
vcozma at one5.ro

USA
Mail: 268 Bush Street, Suite 3042, San Francisco, CA 94104
Phone +1 (415) 357 9974   Fax +1 (415) 707 2163

EUROPE
Mail: Str Intrarea Glucozei No 37-39, sector 2, Bucharest, Romania
Mobile +40 723 190 126
Phone +40 (21) 243 0580   Fax +40 (21) 243 0579
-------------- next part --------------


MEncoder 0.90pre6-3.0.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU: Advanced Micro Devices Duron SF Spitfire (Family: 6, Stepping: 0)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Reading /home/valy/.mplayer/codecs.conf: can't open '/home/valy/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/share/mplayer/codecs.conf: 38 audio & 104 video codecs
File not found: 'frameno.avi'
get_path('font/font.desc') -> '/home/valy/.mplayer/font/font.desc'
font: can't open file: /home/valy/.mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Selected driver: v4l
 name: Video 4 Linux input
 author: Alex Beregszaszi <alex at naxine.org>
 comment: under development
Selected device: BT878(Pinnacle PCTV Studio/Ra)
 Capabilites: capture tuner overlay clipping frameram scales 
 Device type: 235
 Supported sizes: 48x32 => 924x576
 Inputs: 3
  0: Television: tuner audio tv camera  (tuner:1, norm:0)
  1: Composite1: audio camera  (tuner:0, norm:0)
  2: S-Video: audio camera  (tuner:0, norm:0)
 Audio devices: 1
  0: TV: muted=no volume=65535 bass=32768 treble=32768 balance=32768 mode=stereo
 channels: 2, samplerate: 44100, samplesize: 440, format: Signed 16-bit (Little-Endian)
mbuf: size=4259840, frames=2
Requested width: 320
ioctl dsp getfmt: 0
Supported formats: 10
ioctl dsp setfmt: 0
ioctl dsp stereo: 0 (req: 1)
ioctl dsp speed: 0
ioctl dsp trigger: 0
trigger: 1
ioctl dsp trigger: 0
ioctl dsp getblocksize: 0
blocksize: 32768
Requested height: 240
Using input 'Television'
Tuner (Television) range: 0 -> 4294967295
Selected norm: pal
Tuner isn't capable to set norm!
Selected channel list: europe-east (including 133 channels)
Requested channel: 29
Selected channel: 29 (freq: 535.250)
requested frequency: 535.250
Current frequency: 8564 (535.250)
Detected TV! ;-)
success: format: 0  data: 0x0 - 0x0
==> Found video stream: 0
Output format: Planar YV12
Output size: 320x240
fps: 25.000000, frametime: 0.040000
==> Found audio stream: 0
  TV audio: 2 channels, 440 bits, 44100 Hz
Picture values:
palette: 15, depth: 12, bytesperline: 480
 Depth: 12, Palette: 15 (Format: Planar YV12)
 Brightness: 32768, Hue: 32768, Colour: 32113, Contrast: 27526
[V] filefmt:9  fourcc:0x32315659  size:320x240  fps:25.00  ftime:=0.0400
Detected audio codec: [pcm] drv:2 (Uncompressed PCM)
Initializing audio codec...
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer
AUDIO: srate=44100  chans=2  bps=55  sfmt=0x8  ratio: 4851000->4851000
Opening video filter: [expand=-1:-1:-1:-1:1]
libavcodec: CPU flags: mmx mmxext 3dnow
==========================================================================
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)  
vo_debug: query(Planar YV12) returned 0x401 (i=0) 
Movie-Aspect is undefined - no prescaling applied.
video_out->init(320x240->320x240,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401  req=0x0  
Detected video codec: [rawyv12] drv:8 (RAW YV12)
videocodec: libavcodec (320x240 fourcc=58564944 [DIVX])
==========================================================================
LAME version 3.91  (http://www.mp3dev.org/)
Using polyphase lowpass  filter, transition band: 19383 Hz - 19916 Hz

misc:

	scaling: 2.000000
	ch0 (left) scaling: 0.000000
	ch1 (right) scaling: 0.000000
	filter type: 0
	quantization: ISO
	huffman search: normal
	experimental X=0 Y=0 Z=0
	...

stream format:

	MPEG-1 Layer 3
	2 channel - stereo
	padding: auto
	variable bitrate - VBR rh (default)
	...

psychoacoustic:

	tonality estimation limit: 8871.700195 Hz
	using short blocks: allowed
	adjust masking: -1.000000 dB
	psymodel: 1
	noise shaping: 1
	 ^ amplification: 0
	 ^ stopping: 0
	ATH: using
	 ^ type: 4
	 ^ adjust type: 3
	 ^ adapt threshold type: 2
	using temporal masking effect: yes
	...

Forcing audio preload to 0, max pts correction to 0
*** [expand] Exporting mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
MP3 audio selected
Writing AVI header...
Setting audio input gain to 2.000000
*** [lavc] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
Writing AVI index...
Fixup AVI header...

Video stream: 2274.192 kbit/s  (284274 bps)  size: 17056443 bytes  60.000 secs  886 frames

Audio stream:  187.694 kbit/s  (23461 bps)  size: 1405328 bytes  59.899 secs


More information about the MPlayer-users mailing list