[MPlayer-users] mencoder+tv+grab

Robert L. RAKSI lobz at t-sys.hu
Wed Dec 18 11:57:02 CET 2002


On Mon, Dec 16, 2002 at 09:09:27PM +0100, Jindrich Makovicka wrote:
> Could you test the attachment? If it fails, you can try to comment out 
> the if (...) return (...) command at libmpdemux/tvi_v4l.c, line 1016 
> completely.

As I wrote the patch solves the problem but now I have another one:)

I use the following command:
mencoder -tv on:driver=v4l:channel=e8:width=384:height=288:norm=PAL:chanlist=europe-west:adevice=/dev/dsp2 -oac pcm -ovc copy -endpos 00:01:00 -o test.avi

The problem is that the avi has twice the speed of the original TV program.
I tried with rc1 and the cvs version too and with -ovc lavc too.

The output:
MEncoder 0.90rc1-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Reading /home/lobz/.mplayer/codecs.conf: can't open '/home/lobz/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/mplayer/etc/mplayer/codecs.conf: 49 audio & 123 video codecs
File not found: 'frameno.avi'
Reading config file /home/lobz/.mplayer/mencoder: No such file or directory
font: can't open file: /home/lobz/.mplayer/font/font.desc
Font /usr/local/mplayer/share/mplayer/font/font.desc loaded successfully! (206 chars)
success: format: 0  data: 0x0 - 0x0
Detected TV! ;-)
Selected driver: v4l
 name: Video 4 Linux input
 author: Alex Beregszaszi <alex at naxine.org>
 comment: under development
Selected device: saa7134[0]
 Capabilites: capture tuner overlay clipping
 Device type: 43
 Supported sizes: 48x32 => 720x576
 Inputs: 4
  0: Television: tuner audio tv camera  (tuner:1, norm:pal)
  1: Composite1:  (tuner:0, norm:pal)
  2: Composite2:  (tuner:0, norm:pal)
  3: S-Video:  (tuner:0, norm:pal)
Card reports an unknown audio mode !
Trying two channel audio. Use forcechan to override.
Unable to set trigger: 1
audio block size too low, setting to 16384!
Using input 'Television'
ioctl set tuner failed: Invalid argument
Selected channel: E8 (freq: 196.250)
[V] filefmt:9  fourcc:0x32315659  size:384x288  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 176400->176400 (1411.2 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
videocodec: framecopy (384x288 24bpp fourcc=32315659)
CBR PCM audio selected
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Writing AVI header...
Forcing audio preload to 0, max pts correction to 0
Pos:   5.5s    190f ( 0%)  24fps Trem:   0min   0mb  A-V:0.000 [33177:1411]
not enough audio samples!
Pos:   5.6s    191f ( 0%)  23fps Trem:   0min   0mb  A-V:0.000 [33177:1411]
Writing AVI index...
Fixup AVI header...

Video stream: 33177.602 kbit/s  (4147200 bps)  size: 23058432 bytes  5.560 secs  191 frames

Audio stream: 1411.200 kbit/s  (176400 bps)  size: 1058400 bytes  6.000 secs
======================================

mplayer test.avi:

Playing test.avi
Cache fill:  0.00% (0 bytes)    Detected AVI file format!
VIDEO:  [YV12]  384x288  24bpp  25.00 fps  34319.8 kbps (4189.4 kbyte/s)
Clip info:
 Software: MEncoder 0.90rc1-2.95.4
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 176400->176400 (1411.2 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================

-- 
                                       Robert L. RAKSI
 
   -- The Microsoft of Borg: Patches Are Futile! --




More information about the MPlayer-users mailing list