[Mplayer-felhasznalok] v4l1 vs v4l2

Skip argay21 at westel900.net
Wed Jan 18 16:48:43 CET 2006


Hello,

Egy amd64-es gepen probalok tv-bol felvenni. Ha v4l driver van 
beallitva, akkor van hang, igaz erdekes jelensegekkel. Pl. behallatszik 
a mikrofonon keresztul a kornyezo hang, annak ellenere, hogy nem az a 
felveteli eszkoz, le van huzva nullara es ki van kapcsolva. Raadasul az 
asztali jatszon csak a mikrofonnal felvett hang hallatszik, a tv-e nem. 
(En sem ertem, a gep tulaja mondta) Szamitogepen hallatszik minden.
Ha v4l2-t allitok be mencodernek, akkor nincs audio stream!

A parancs:
/usr/bin/mencoder tv:// -tv driver=v4l:width=768:height=576:input=0:fps=25:adevice=/dev/dsp -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=704:576,harddup,pp=lb -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:acodec=ac3:abitrate=192:aspect=4/3 -ofps 25 -endpos 10s -o proba1.mpg

Es a kimenet v4l-el:

MEncoder 1.0pre7try2-3.4.5 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices  (Family: 8, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 9  data: 0x0 - 0x0
TV detected! ;-)
Selected driver: v4l
 name: Video 4 Linux input
 author: Alex Beregszaszi
 comment: under development
=================================================================
 WARNING: YOU ARE USING V4L DEMUXER WITH V4L2 DRIVERS!!!
 As the V4L1 compatibility layer is broken, this may not work.
 If you encounter any problems, use driver=v4l2 instead.
 Bugreports on driver=v4l with v4l2 drivers will be ignored.
=================================================================
Selected device: BT878 video (AVerMedia TVPhone 
 Capabilites: capture tuner overlay clipping scales 
 Device type: 171
 Supported sizes: 48x32 => 924x576
 Inputs: 3
  0: Television: tuner audio tv camera  (tuner:1, norm:pal)
  1: Composite1: audio camera  (tuner:0, norm:pal)
  2: S-Video: audio camera  (tuner:0, norm:pal)
Card reports an unknown audio mode !
Trying two channel audio. Use forcechan to override.
Card reports an unknown audio mode !
Trying two channel audio. Use forcechan to override.
Card reports an unknown audio mode !
Trying two channel audio. Use forcechan to override.
Card reports an unknown audio mode !
Trying two channel audio. Use forcechan to override.
audio block size too low, setting to 16384!
Using input 'Television'
[V] filefmt:9  fourcc:0x32315659  size:768x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
PACKET SIZE: 2048 bytes
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [pp=lb]
Opening video filter: [harddup]
Opening video filter: [scale w=704 h=576]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 768 x 576 (preferred csp: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1

SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: libavcodec (704x576 fourcc=3267706d [mpg2])
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Writing AVI header...
Limiting audio preload to 0.4s
Increasing audio density to 4
Forcing audio preload to 0, max pts correction to 0
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[mpeg2video @ 0x9f0b10]rc buffer underflow

Ill. a kimenet v4l2-vel:

MEncoder 1.0pre7try2-3.4.5 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices  (Family: 8, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 9  data: 0x0 - 0x0
TV detected! ;-)
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
 comment: first try, more to come ;-)
Selected device: BT878 video (AVerMedia TVPhone 
 Tuner cap:
 Tuner rxs: LANG1 LANG2
 Capabilites:  video capture  video overlay  VBI capture device  tuner  read/write  streaming
 supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M; 5 = PAL-N; 6 = NTSC-JP; 7 = PAL-60;
 inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
 Current input: 0
 Current format: YUV420
v4l2: current audio mode is : LANG1
audio block size too low, setting to 8192!
[V] filefmt:9  fourcc:0x32315659  size:768x576  fps:25.00  ftime:=0.0400
PACKET SIZE: 2048 bytes
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [pp=lb]
Opening video filter: [harddup]
Opening video filter: [scale w=704 h=576]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 768 x 576 (preferred csp: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1

SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: libavcodec (704x576 fourcc=3267706d [mpg2])
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
Writing AVI header...
Limiting audio preload to 0.4s
Increasing audio density to 4
Forcing audio preload to 0, max pts correction to 0
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[mpeg2video @ 0x9f0b10]rc buffer underflow
Flushing video frames

Writing AVI index...

Overhead: 1.702% (109098 / 6411734)
Fixing AVI header...

Video stream: 5108.951 kbit/s  (638618 bps)  size: 6411734 bytes  10.040 secs  251 frames
v4l2: 253 frames successfully processed, 0 frames dropped.

Mit kellene tenni, hogy legyen hang v4l2-vel? Probaltam megadni neki 
mindefele adevice-t, de semmi nem hatotta meg. Ill. erdekelne, ha 
esetleg valakinek van otlete a v4l-es problemara. Ja, a hw hiba majdnem 
kizarhato, mert az emlitett gepen van egy 32bites linux is, azon 
mukodik rendesen a felvetel a v4l-el, nincs behallatszo zaj...
Koszi!
-- 
Udv: Skip

NAUI Course Director #36774 ---- http://www.manatus.hu
    Búvártanfolyamok kezdőtől az oktatói szintekig




More information about the MPlayer-felhasznalok mailing list