网络摄像头 - xawtv 和 mplayer

网络摄像头 - xawtv 和 mplayer

各位,

我遇到了一个奇怪的问题。我在我的 thinkpad t430 上运行 Debian Stretch。当我尝试使用集成网络摄像头捕获视频时,如果我

xawtv -c /dev/video0

而不是当我发出时,

mplayer tv://

我得到的错误是,

--> mplayer tv://
MPlayer 1.3.0 (Debian), built with gcc-6.2.1 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <[email protected]>
 comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: Integrated Camera
 Capabilities:  video capture  streaming
 supported norms:
 inputs: 0 = Camera 1;
 Current input: 0
 Current format: YUYV
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Inappropriate ioctl for device
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 640x480 => 640x480 Packed YUY2 
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: no sound
Starting playback...
v4l2: select timeout
libvdpau-va-gl: VideoSurface::PutBitsYCbCr_glsl(): not implemented source YCbCr format 'VDP_YCBCR_FORMAT_YUYV'
[vdpau] Error when calling vdp_video_surface_put_bits_y_cb_cr: VDP_STATUS_INVALID_Y_CB_CR_FORMAT


MPlayer interrupted by signal 11 in module: filter_video
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
 [ This binary of MPlayer in Debian is currently compiled with
   '--enable-debug'; the debugging symbols are in the package
   'mplayer-dbgsym'.]

有人能解释为什么 mplayer 因上述错误而崩溃,而 xawtv 能够显示吗?

任何调试和解决问题的帮助将不胜感激。

我有视频 4 Linux 2 (v4l2)安装并运行默认内核附带 debianstretch 并通过更新到最新版本apt

我的v4l2-ctl --list-devices说:

Integrated Camera (usb-0000:00:1a.0-1.6):
/dev/video0

答案1

啊啊!

这个问题已经消失了

primusrun mplayer tv://

据我了解,mplayer 必须要求在我的笔记本电脑上安装 NVIDIA 卡以及集成英特尔显卡。我现在的问题是让它与 opencv 一起工作!

无论如何,感谢那些关注并努力解决/尝试帮助我的人。

相关内容