انجمنهای فارسی اوبونتو
کمک و پشتیبانی => سختافزار => نویسنده: سید محمود رضا سجادی در 20 خرداد 1388، 06:31 بظ
-
سلام دوستان
بالا خره به من هم کارا تی وی - مودم - و وبکمم راه افتاد
البته به لطف اوبونتو ۹.۰۴ که معلوم نیست چسکارش کردند که اینقدر باحال شده و همه چی رو میشناسه
گویا این کرنل هجدیدش معجزه کرده
اصل مطلب
من اشتباها اول کارت تی وی رو نصب کردم و بعدش وب کم رو
وبکم شده /dev/video1
و تی وی شده /dev/video0
camorama می خاد وبکم رو روی /dev/video0 پیدا کنه و شکست می خوره و خود به خود بسته میشه
تمام برنامه های پخش تی وی و رادیو هم نمیدونم چرا - اما تا باز میکنم سیستم هنگ میکنه و باید ریستش کنم!!!!!
mahmood@mahmood-pc:~$ lsusb
Bus 002 Device 002: ID 07ca:a301 AVerMedia Technologies, Inc.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 046d:c019 Logitech, Inc. Optical Tilt Wheel Mouse
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 174f:6a33 Syntek Web Cam - Asus F3SA, F9J, F9S
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
که در منتن فوق
Bus 002 Device 002: ID 07ca:a301 AVerMedia Technologies, Inc.
مربوط به تی وی - اف ام میشه
Bus 001 Device 002: ID 174f:6a33 Syntek Web Cam - Asus F3SA, F9J, F9S
مربوط به وبکم میشه
درایور هر دو رو هم از سایتشون دانلود و نصب کردم
mahmood@mahmood-pc:~$ ls /dev/radio*
/dev/radio0
mahmood@mahmood-pc:~$ ls /dev/video*
/dev/video0 /dev/video1
mahmood@mahmood-pc:~$ ls /dev/hide*
ls: cannot access /dev/hide*: No such file or directory
-
لطفا یکی کمک کنه
کلی زوق کرده بودم که تی وی دار شدم
من از سایت
http://www.avermedia.com/avertv/Support/Download.aspx?Action=search&Kind=APDriver&interface=3&signal=3&keyword=linux
تنها درایور X86 ای که از اف ام پشتیبانی میکرد رو دانلود کردم یعنی
http://www.avermedia.com/avertv/Support/DownloadCount.aspx?FDFId=2600
حالا هم یه کارایی کردم
مثلا برای حل مشکل وبکم دستور زیر رو اجرا کردم
camorama -d /dev/video1
برای حل مشکل تی وی هم هرچی فایل توی سایت و داکیومنت هاش بود زیر و رو کردم
کد های زیر رو پیدا کردم
========================
MPlayer
========================
MPlayer is a multimedia player capable of supporting variety of media sources.
In this case, MPlayer can be used for watching NTSC/PAL/SECAM/DVB-T TV programs.
TV audio is supported by MPlayer directly.
Ubuntu 7.10, 8.04 and 8.10 is tested with MPlayer and works with our driver.
To use MPlayer in Ubuntu, please install by doing the following at the terminal
window:
$ sudo apt-get install mplayer
To watch NTSC TV programs, for example, please do the following:
$ mplayer tv:// -tv driver=v4l2:device=/dev/video0:alsa:adevice=hw.1,0:amode=1:audiorate=48000:forceaudio:volume=100:immediatemode=0:normid=12:freq=409250:outfmt=YUY2
To watch PAL TV programs, for example, please do the following:
$ mplayer tv:// -tv driver=v4l2:device=/dev/video0:alsa:adevice=hw.1,0:amode=1:audiorate=48000:forceaudio:volume=100:immediatemode=0:normid=0:freq=147250:outfmt=YUY2
To watch DVB-T TV programs, please fist use "dvbscan" to perform channel scan and copy the resulting program list into
~/.mplayer/channels.conf. Second issue the following command:
$ mplayer dvb://BBC
In this case there must be a program name called "BBC" in ~/.mplayer/channels.conf.
Please also note that MPlayer provides a "slave" mode in which commands can be issued to mplayer to change
TV channel and other settings as well. A list of commands can be obtained by running the following commands:
$ mplayer -input cmdlist
For detailed usage of MPlayer, please refer to the official MPlayer website:
http://www.mplayerhq.hu
For detailed information of "dvbscan", please refer to the following website:
http://www.linuxtv.org/wiki/index.php/Scan
اما تصویر ندارم
یعنی همش برفک نشون میده
مشکل ازکجاست؟
چجوری باید کانال ها رو تنظیم کنم؟
-
به نتیجه زیر نگاه کنید
mahmood@mahmood-pc:~$ mplayer tv:// -tv driver=v4l2:device=/dev/video0:alsa:adevice=hw.1,0:amode=1:audiorate=48000:forceaudio:volume=100:immediatemode=0:normid=0:freq=147250:outfmt=YUY2
MPlayer 1.0rc2-4.3.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz (Family: 6, Model: 15, Stepping: 11)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: 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 ;-)
Selected device: AVerMedia A301:0
Tuner cap: STEREO LANG1 LANG2
Tuner rxs: MONO LANG1
Capabilites: video capture tuner streaming
supported norms: 0 = PAL-BG; 1 = PAL-B1; 2 = PAL-G; 3 = PAL-H; 4 = PAL-I; 5 = PAL-D; 6 = PAL-D1; 7 = PAL-K; 8 = PAL-M; 9 = PAL-N; 10 = PAL-Nc; 11 = PAL-60; 12 = NTSC-M; 13 = NTSC-M-JP; 14 = SECAM-B; 15 = SECAM-D; 16 = SECAM-G; 17 = SECAM-H; 18 = SECAM-K; 19 = SECAM-K1; 20 = SECAM-L;
inputs: 0 = Tuner;
Current input: 0
Current format: YUYV
v4l2: current audio mode is : STEREO
v4l2: ioctl query control failed: Invalid argument
Video buffer shorter than 3 times audio frame duration.
You will probably experience heavy framedrops.
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 576 (preferred colorspace: Packed YUY2)
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 720x576 => 720x576 Packed YUY2
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A: 0.2 V: 0.0 A-V: 0.213 ct: 0.000 1/ 1 ??% ??% ??,?% 0 0
video buffer full - dropping frame
A: 0.3 V: 0.5 A-V: -0.182 ct: 0.000 2/ 2 0% 2% 0.1% 0 0
video buffer full - dropping frame
video buffer full - dropping frame
A: 0.4 V: 0.5 A-V: -0.056 ct: 0.000 2/ 2 0% 2% 0.1% 0 0
video buffer full - dropping frame
video buffer full - dropping frame
A: 0.6 V: 0.5 A-V: 0.070 ct: 0.000 2/ 2 0% 2% 0.1% 0 0
video buffer full - dropping frame
video buffer full - dropping frame
video buffer full - dropping frame
A: 0.8 V: 0.6 A-V: 0.202 ct: 0.017 5/ 5 0% 2% 0.1% 0 0
video buffer full - dropping frame
A: 1.0 V: 1.1 A-V: -0.124 ct: 0.017 6/ 6 0% 1% 0.1% 0 0
video buffer full - dropping frame
A: 1.1 V: 1.1 A-V: 0.006 ct: 0.017 6/ 6 0% 1% 0.1% 0 0
video buffer full - dropping frame
video buffer full - dropping frame
A: 1.2 V: 1.1 A-V: 0.140 ct: 0.017 6/ 6 0% 1% 0.1% 0 0
video buffer full - dropping frame
A: 1.6 V: 1.7 A-V: -0.067 ct: 0.037 10/ 10 0% 1% 0.1% 0 0
video buffer full - dropping frame
video buffer full - dropping frame
video buffer full - dropping frame
A: 1.7 V: 1.7 A-V: 0.069 ct: 0.037 10/ 10 0% 1% 0.1% 0 0
video buffer full - dropping frame
video buffer full - dropping frame
A: 1.8 V: 1.7 A-V: 0.185 ct: 0.056 10/ 10 0% 1% 0.1% 0 0
video buffer full - dropping frame
video buffer full - dropping frame
A: 2.0 V: 1.9 A-V: 0.050 ct: 0.056 11/ 11 0% 1% 0.1% 0 0
video buffer full - dropping frame
video buffer full - dropping frame
A: 2.2 V: 2.0 A-V: 0.152 ct: 0.068 13/ 13 0% 1% 0.1% 0 0
video buffer full - dropping frame
A: 2.3 V: 2.4 A-V: -0.055 ct: 0.068 14/ 14 0% 1% 0.1% 0 0
video buffer full - dropping frame
video buffer full - dropping frame
video buffer full - dropping frame
A: 2.5 V: 2.4 A-V: 0.092 ct: 0.068 14/ 14 0% 1% 0.1% 0 0
video buffer full - dropping frame
A: 2.7 V: 2.8 A-V: -0.048 ct: 0.081 18/ 18 0% 1% 0.1% 0 0
video buffer full - dropping frame
video buffer full - dropping frame
video buffer full - dropping frame
A: 3.0 V: 2.9 A-V: 0.125 ct: 0.093 20/ 20 0% 1% 0.1% 0 0
video buffer full - dropping frame
A: 3.1 V: 3.0 A-V: 0.121 ct: 0.103 21/ 21 0% 1% 0.1% 0 0
video buffer full - dropping frame
A: 3.2 V: 3.2 A-V: 0.051 ct: 0.103 22/ 22 0% 1% 0.1% 0 0
video buffer full - dropping frame
A: 3.3 V: 3.2 A-V: 0.106 ct: 0.111 23/ 23 0% 1% 0.1% 0 0
video buffer full - dropping frame
A: 3.4 V: 3.3 A-V: 0.102 ct: 0.117 24/ 24 0% 1% 0.1% 0 0
video buffer full - dropping frame
A: 3.5 V: 3.4 A-V: 0.096 ct: 0.127 25/ 25 0% 1% 0.1% 0 0
video buffer full - dropping frame
A: 3.6 V: 3.6 A-V: 0.078 ct: 0.139 27/ 27 0% 1% 0.1% 0 0
video buffer full - dropping frame
A: 3.8 V: 3.9 A-V: -0.086 ct: 0.139 28/ 28 0% 1% 0.1% 0 0
video buffer full - dropping frame
video buffer full - dropping frame
video buffer full - dropping frame
A: 3.9 V: 3.9 A-V: 0.074 ct: 0.147 28/ 28 0% 1% 0.1% 0 0
Invalid frame duration value (3.963/3.909 => -0.054). Defaulting to 0.100 sec.
A: 4.0 V: 4.0 A-V: 0.067 ct: 0.153 29/ 29 0% 1% 0.1% 0 0
video buffer full - dropping frame
A: 4.3 V: 4.5 A-V: -0.189 ct: 0.167 32/ 32 0% 1% 0.1% 0 0
اینم تصویر برنامه mplayer
(http://sajjadi.xm.com/Screenshot.jpg)