Debian
網路攝像頭 - 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 <olschewski@zpr.uni-koeln.de> 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)**預設核心帶有 debian 拉伸並通過更新到最新
apt
我的
v4l2-ctl --list-devices
說:Integrated Camera (usb-0000:00:1a.0-1.6): /dev/video0
啊!
這個問題已經消失了
primusrun mplayer tv://
據我了解,mplayer 必須需要在我的筆記型電腦上安裝 NVIDIA 卡,以及集成的英特爾顯卡。我現在的問題是讓它與 opencv 一起工作!
無論如何,感謝那些關注並努力解決/嘗試幫助我的人。