[MPlayer-users] Mplayer and TV capture

BobJ rjiantonio at austin.rr.com
Thu Mar 13 17:55:27 CET 2003


Ok thanks Martin, here is what I came up with since I posted, i tried to change codecs and such, it IS reading my codec no problem. I have  a Dual 1600 Athlon, Gentoo 1.4 with a Gig of Ram and fast drives, it _should_ keep up, and these captures play GREAT at .65 speed :) 

I'm just not sure where I went wrong. You know its like looking at a perl script for an hour to find the bug and constantly overlooking the typo your buddy finds in ten seconds:

bob at gentoo: pts/1: 13 files 1.3Mb -> mencoder -tv on:driver=v4l:device=/dev/video0:adevice=/dev/dsp2:norm=NTSC:chanlist=us-cable:channel=52:width=384:height=288 -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=700:vme=5 -ofps 29.97 test.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MEncoder 0.90rc4-3.2.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Reading /home/bob/.mplayer/codecs.conf: can't open '/home/bob/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 50 audio & 135 video codecs
File not found: 'frameno.avi'
Reading config file /home/bob/.mplayer/mencoder: No such file or directory
success: format: 0  data: 0x0 - 0x0
TV detected! ;-)
Selected driver: v4l
 name: Video 4 Linux input
 author: Alex Beregszaszi <alex at naxine.org>
 comment: under development
Selected device: BT878(Hauppauge (bt878))
 Capabilites: capture tuner overlay clipping frameram scales 
 Device type: 235
 Supported sizes: 48x32 => 768x480
 Inputs: 4
  0: Television: tuner audio tv camera  (tuner:1, norm:ntsc)
  1: Composite1: audio camera  (tuner:0, norm:ntsc)
  2: S-Video: audio camera  (tuner:0, norm:ntsc)
  3: Composite3: audio camera  (tuner:0, norm:ntsc)
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'
Selected channel: 52 (freq: 391.250)
[V] filefmt:9  fourcc:0x32315659  size:384x288  fps:29.00  ftime:=0.0345
==========================================================================
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)
==========================================================================
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 384 x 288 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (384x288 fourcc=58564944 [DIVX])
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
MP3 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:  16.0s    662f ( 0%)  30fps Trem:   0min   0mb  A-V:0.000 [865:180]]
error reading audio: Interrupted system call
Pos:  16.0s    663f ( 0%)  30fps Trem:   0min   0mb  A-V:0.000 [865:180]
Writing AVI index...
Fixing AVI header...

Video stream:  865.900 kbit/s  (108237 bps)  size: 1733540 bytes  16.016 secs  663 frames

Audio stream:  180.247 kbit/s  (22530 bps)  size: 361377 bytes  16.039 secs

Thu Mar 13 16:46:52 UTC 2003

Ok so that is the recording, now to play it, it still plays back too fast with out the --speed .65 option, not aht tthat shows here:
~
bob at gentoo: pts/1: 13 files 2.2Mb -> gmplayer test.avi                                                                                                           Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MPlayer 0.90rc4-3.2.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /home/bob/.mplayer/config
[cfg] read config file: /home/bob/.mplayer/gui.conf
Reading config file /home/bob/.mplayer/gui.conf
vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0.0" => local display)
Reading /home/bob/.mplayer/codecs.conf: can't open '/home/bob/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 50 audio & 135 video codecs
font: can't open file: /home/bob/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /home/bob/.mplayer/input.conf : No such file or directory
Input config file /usr/share/mplayer/input.conf parsed : 52 binds
SKIN dir 1: '/home/bob/.mplayer/Skin'
SKIN dir 2: '/usr/share/mplayer/Skin'

Playing /home/bob/test.avi
Cache fill:  0.00% (0 bytes)    AVI file format detected.
VIDEO:  [DIVX]  384x288  24bpp  29.97 fps  865.9 kbps (105.7 kbyte/s)
Clip info:
 Software: MEncoder 0.90rc4-3.2.2 
==========================================================================
Trying to force audio codec driver family pcm ...
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 20000->176400 (160.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
==========================================================================
Trying to force video codec driver family ffmpeg ...
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int 
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
[pl_volnorm] Normalizer plugin in use.
[pl_extrastereo] Extra stereo plugin in use (multiplier=1.00).
AO: [plugin] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
This file was encoded with libavcodec build 4655
VDec: vo config request - 384 x 288 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 384x288 => 384x288 Planar YV12  [fs]
A:   8.3 V:   8.3 A-V: -0.002 ct: -0.001  249/249   4%  3%  1.3% 0 0 12%
Exiting... (Quit)

Thu Mar 13 16:47:04 UTC 2003
~
bob at gentoo: pts/1: 13 files 2.2Mb -> 




On Thu, 13 Mar 2003 22:17:30 +0000
Martin Collins <martin at mkcollins.org> wrote:

> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> On Thu, 13 Mar 2003 12:33:41 +0000
> Bobby <bobby0802 at austin.rr.com> wrote:
> 
> > I successfully capture, but it is too damned
> > fast and I have to PLAY the captured file at --speed .65, here is
> > what I am using to capture with a Wintv Card and SB live:
> ...
> > vcodec=mpeg4:vbitrate=1000:vme=5 -oac copy -ofps 25
> 
> Looks to me like you are writing the file at 25fps but recording at
> 29.97fps (or whatever NTSC framerate is). Ideally you want the rates
> to match. Add fps=29.97 to your tv options and change -ofps as well.
> 
> > Pos:   5.5s    249f ( 0%)  29fps Trem:   0min   0mb  A-V:0.000
> > [1093:1536] error reading audio: Interrupted system call
> > Pos:   5.5s    250f ( 0%)  27fps Trem:   0min   0mb  A-V:0.000
> 
> And maybe your machine is having a hard time keeping up.
> 
> > Note thta for some reason it ignores my codec choice too, and
> > captures Un compresed,
> 
> Are you sure, what does mplayer say when you play back?
> 
> Martin
> 
> _______________________________________________
> RTFM!!!  http://www.MPlayerHQ.hu/DOCS
> Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
> http://mplayerhq.hu/mailman/listinfo/mplayer-users



More information about the MPlayer-users mailing list