LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2009, 03:26 AM   #1
jazpaisley
LQ Newbie
 
Registered: Jan 2009
Location: Alturas, California
Distribution: kubuntu 11.04
Posts: 21

Rep: Reputation: 0
video4linux Riddle


What is required for streaming video from a TV card tuner?
Why can't the mrl find v4l:/Tuner%201/61250 ?

It seem no matter what i do, I have no video from KMPlayer

Code:
james@linux-007:~$ dmesg | grep ivtv
[   15.018371] ivtv:  Start initialization, version 1.4.0
[   15.032585] ivtv0: Initializing card #0               
[   15.032597] ivtv0: Autodetected ASUS Falcon2 card (cx23416 based)
[   15.038346] ivtv 0000:02:02.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[   15.038362] ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
[   15.328096] cx25840 0-0044: cx25843-24 found @ 0x88 (ivtv i2c driver #0) 
[   15.693316] tuner 0-0043: chip found @ 0x86 (ivtv i2c driver #0)         
[   15.811659] tuner 0-0060: chip found @ 0xc0 (ivtv i2c driver #0)         
[   15.811751] m52790 0-0048: chip found @ 0x90 (ivtv i2c driver #0)        
[   20.223658] ivtv0: Registered device video0 for encoder MPG (4096 kB)    
[   20.223880] ivtv0: Registered device video32 for encoder YUV (2048 kB)   
[   20.224119] ivtv0: Registered device vbi0 for encoder VBI (1024 kB)      
[   20.224333] ivtv0: Registered device video24 for encoder PCM (320 kB)    
[   20.224546] ivtv0: Registered device radio0 for encoder radio            
[   20.224550] ivtv0: Initialized card #0: ASUS Falcon2                     
[   20.224727] ivtv:  End initialization                                    
[   30.755757] ivtv0: Loaded v4l-cx2341x-enc.fw firmware (376836 bytes)     
[   30.953138] ivtv0: Encoder revision: 0x02060039                          

james@linux-007:~$ v4l2-ctl --log-status

Status Log:

   [ 6359.909750] ivtv0: =================  START STATUS CARD #0  =================
   [ 6359.909763] ivtv0: Version: 1.4.0 Card: ASUS Falcon2
   [ 6359.913197] cx25840 0-0044: Video signal:              present
   [ 6359.913214] cx25840 0-0044: Detected format:           NTSC-M
   [ 6359.913220] cx25840 0-0044: Specified standard:        NTSC-M
   [ 6359.913224] cx25840 0-0044: Specified video input:     Composite 2
   [ 6359.913229] cx25840 0-0044: Specified audioclock freq: 48000 Hz
   [ 6359.920579] cx25840 0-0044: Detected audio mode:       mono
   [ 6359.920588] cx25840 0-0044: Detected audio standard:   BTSC
   [ 6359.920619] cx25840 0-0044: Audio muted:               no
   [ 6359.920624] cx25840 0-0044: Audio microcontroller:     running
   [ 6359.920629] cx25840 0-0044: Configured audio standard: automatic detection
   [ 6359.920635] cx25840 0-0044: Configured audio system:   BTSC
   [ 6359.920642] cx25840 0-0044: Specified audio input:     Tuner (In5)
   [ 6359.920647] cx25840 0-0044: Preferred audio mode:      stereo
   [ 6359.920657] tda9887 0-0043: Data bytes: b=0x14 c=0x30 e=0x44
   [ 6359.920665] tuner 0-0060: Tuner mode:      analog TV
   [ 6359.920671] tuner 0-0060: Frequency:       61.25 MHz
   [ 6359.920676] tuner 0-0060: Standard:        0x0000b000
   [ 6359.920707] m52790 0-0048: Switch 1: c0
   [ 6359.920712] m52790 0-0048: Switch 2: c0
   [ 6359.920719] ivtv0: Video Input:  Tuner 1
   [ 6359.920748] ivtv0: Audio Input:  Tuner 1
   [ 6359.920752] ivtv0: Tuner:  TV
   [ 6359.920758] ivtv0: Stream: MPEG-2 Program Stream
   [ 6359.920765] ivtv0: VBI Format: No VBI
   [ 6359.920770] ivtv0: Video:  720x480, 30 fps
   [ 6359.920776] ivtv0: Video:  MPEG-2, 4x3, Variable Bitrate, 6000000, Peak 8000000
   [ 6359.920786] ivtv0: Video:  GOP Size 15, 2 B-Frames, GOP Closure
   [ 6359.920793] ivtv0: Audio:  48 kHz, Layer II, 224 kbps, Stereo, No Emphasis, No CRC
   [ 6359.920802] ivtv0: Spatial Filter:  Manual, Luma 1D Horizontal, Chroma 1D Horizontal, 0
   [ 6359.920811] ivtv0: Temporal Filter: Manual, 8
   [ 6359.920841] ivtv0: Median Filter:   Off, Luma [0, 255], Chroma [0, 255]
   [ 6359.920847] ivtv0: Status flags:    0x00200000
   [ 6359.920853] ivtv0: Stream encoder MPG: status 0x0000, 0% of 4096 KiB (128 buffers) in use
   [ 6359.920886] ivtv0: Stream encoder YUV: status 0x0000, 0% of 2048 KiB (64 buffers) in use
   [ 6359.920893] ivtv0: Stream encoder VBI: status 0x0000, 0% of 1040 KiB (61 buffers) in use
   [ 6359.920900] ivtv0: Stream encoder PCM: status 0x0000, 0% of 324 KiB (72 buffers) in use
   [ 6359.920908] ivtv0: Read MPG/VBI: 68882368/0 bytes
   [ 6359.920913] ivtv0: ==================  END STATUS CARD #0  ==================
Any suggestion would be greatly appreciated

Last edited by jazpaisley; 01-29-2009 at 01:05 PM. Reason: Correction
 
Old 01-28-2009, 12:49 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Have you tried running kmplayer as root ? If it works then you have a permissions problem.

Have you tried any other apps such as xdtv ?
 
Old 01-29-2009, 12:50 AM   #3
jazpaisley
LQ Newbie
 
Registered: Jan 2009
Location: Alturas, California
Distribution: kubuntu 11.04
Posts: 21

Original Poster
Rep: Reputation: 0
I try running kmplayer as root, but still the same results
Secondly I downloaded xdtv-2.4.0.tar.gz , unpack it and ./configure, make, and make install.
does not work, something wrong with v4l-conf ?
The only command that does work for me is cat /dev/video0 > test.mpg or avi Hum...let see if there are other codecs I can use?

KMPlayer
Code:
callback is kmplayer-23508 KMPlayerCallback-0
media.video4linux.video_device=/dev/video0
trying video driver xv ..
trying audio driver alsa ..
play mrl: 'v4l:/Tuner%201/61250'
Unable to open mrl 'v4l:/Tuner%201/61250'
play mrl: 'v4l:/Tuner%201/61250'
stop
event_finished
event_listener 7
request quit
closing display
done
xdTV
Code:
This is xdtv 2.4.0 running on Linux/i686 (2.6.27-11-generic).
scandir: No such file or directory
filename = /home/james/.xdtv/xdtvrc
WARNING: xdtv_v4l-conf is compiled without DGA support.
/dev/video0 [v4l2]: no overlay support
xdtv_v4l-conf had some trouble, trying to continue anyway
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "star" to type Pixmap
wmhooks: netwm detected
wmhooks: netwm state above supported
wmhooks: netwm fullscreen supported
wmhooks: nothing found...
Warning: Cannot convert string "black" to type Pixmap
ioctl VIDIOC_G_FBUF: Invalid argument
classical overlay is disabled*** GRABBER DEVICE TYPE = v4l2
No available format on the card !!!

Last edited by jazpaisley; 01-29-2009 at 01:46 AM. Reason: update
 
Old 01-29-2009, 11:08 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by jazpaisley View Post
The only command that does work for me is cat /dev/video0 > test.mpg or avi Hum...let see if there are other codecs I can use?

First, make sure to read everything here:
http://ivtv.sourceforge.net/FAQ.html
and
http://ivtvdriver.org/index.php/Howto

If dumping video that way works, then it should be installed properly. For audio, does it have an audio input on the card or do you have to use the mic port on your sound card ?
 
Old 01-29-2009, 01:00 PM   #5
jazpaisley
LQ Newbie
 
Registered: Jan 2009
Location: Alturas, California
Distribution: kubuntu 11.04
Posts: 21

Original Poster
Rep: Reputation: 0
Yes video and audio work fine, when I use cat /dev/video0
Code:
james@linux-007:~$ v4l2-ctl --all
Driver Info:                     
        Driver name   : ivtv     
        Card type     : ASUS Falcon2
        Bus info      : 0000:02:02.0
        Driver version: 66560       
        Capabilities  : 0x01070051  
                Video Capture       
                VBI Capture         
                Sliced VBI Capture  
                Tuner               
                Audio               
                Radio               
                Read/Write          
Format Video Capture:               
        Width/Height  : 768/576     
        Pixel Format  : MPEG        
        Field         : Interlaced  
        Bytes per Line: 0           
        Size Image    : 131072      
        Colorspace    : Broadcast NTSC/PAL (SMPTE170M/ITU601)
Format Sliced VBI Capture:                                   
        Service Set    :                                     
        Service Line  0:          /                          
        Service Line  1:          /                          
        Service Line  2:          /                          
        Service Line  3:          /                          
        Service Line  4:          /                          
        Service Line  5:          /                          
        Service Line  6:          /
        Service Line  7:          /
        Service Line  8:          /
        Service Line  9:          /
        Service Line 10:          /
        Service Line 11:          /
        Service Line 12:          /
        Service Line 13:          /
        Service Line 14:          /
        Service Line 15:          /
        Service Line 16:          /
        Service Line 17:          /
        Service Line 18:          /
        Service Line 19:          /
        Service Line 20:          /
        Service Line 21:          /
        Service Line 22:          /
        Service Line 23:          /
        I/O Size       : 0
Format VBI Capture:
        Sampling Rate   : 27000000 Hz
        Offset          : 248 samples (9.18519e-06 secs after leading edge)
        Samples per Line: 1440
        Sample Format   : GREY
        Start 1st Field : 10
        Count 1st Field : 12
        Start 2nd Field : 273
        Count 2nd Field : 12
Crop Capability Video Output:
        Bounds      : Left 0, Top 0, Width 720, Height 480
        Default     : Left 0, Top 0, Width 720, Height 480
        Pixel Aspect: 10/11
Video input : 0 (Tuner 1)
Audio input : 0 (Tuner 1)
Frequency: 980 (61.250000 MHz)
Video Standard = 0x00001000
        NTSC-M
Tuner:
        Capabilities         : 62.5 kHz multi-standard stereo lang1 lang2
        Frequency range      : 44.0 MHz - 958.0 MHz
        Signal strength      : 99%
        Current audio mode   : stereo
        Available subchannels: mono
 
Old 01-29-2009, 01:26 PM   #6
jazpaisley
LQ Newbie
 
Registered: Jan 2009
Location: Alturas, California
Distribution: kubuntu 11.04
Posts: 21

Original Poster
Rep: Reputation: 0
Other thoughts: could it be a cross platform problem, that KMPlayer is a KDE application and Im using KDE4

Programs I've tried (TVtime, xawTV, vlc, kdeTV) none of them worked.

except for zapping I have video with some problems (green translusent bars over the picture) and no audio.
 
Old 01-29-2009, 01:56 PM   #7
jazpaisley
LQ Newbie
 
Registered: Jan 2009
Location: Alturas, California
Distribution: kubuntu 11.04
Posts: 21

Original Poster
Rep: Reputation: 0
Image from cat /dev/video0
Attached Thumbnails
Click image for larger version

Name:	snap1.jpeg
Views:	23
Size:	82.3 KB
ID:	51  
 
Old 01-29-2009, 02:08 PM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by jazpaisley View Post
Image from cat /dev/video0
I don't see anything wrong with that ... what green bars ?
 
Old 01-29-2009, 03:07 PM   #9
jazpaisley
LQ Newbie
 
Registered: Jan 2009
Location: Alturas, California
Distribution: kubuntu 11.04
Posts: 21

Original Poster
Rep: Reputation: 0
Sorry for mis-understanding that's KMPlayer playing my test.mpg file, through cat /dev/video0 > test.mpg
 
Old 01-29-2009, 03:16 PM   #10
jazpaisley
LQ Newbie
 
Registered: Jan 2009
Location: Alturas, California
Distribution: kubuntu 11.04
Posts: 21

Original Poster
Rep: Reputation: 0
This is zapping TV viewer program image, and another with vbi subtitle.
Attached Thumbnails
Click image for larger version

Name:	snapshot2.jpeg
Views:	18
Size:	41.1 KB
ID:	52   Click image for larger version

Name:	snapshot3.jpeg
Views:	17
Size:	63.7 KB
ID:	53  

Last edited by jazpaisley; 01-29-2009 at 05:10 PM. Reason: adding another snapshot
 
Old 01-29-2009, 04:11 PM   #11
jazpaisley
LQ Newbie
 
Registered: Jan 2009
Location: Alturas, California
Distribution: kubuntu 11.04
Posts: 21

Original Poster
Rep: Reputation: 0
More information from udevinfo
Code:
james@linux-007:~$ sudo udevinfo --path=/class/video4linux/video0 --attribute-walk

Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device 
found, all possible attributes in the udev rules key format.     
A rule to match, can be composed by the attributes of the device 
and the attributes from one single parent device.                

  looking at device '/devices/pci0000:00/0000:00:1e.0/0000:02:02.0/video4linux/video0':
    KERNEL=="video0"                                                                   
    SUBSYSTEM=="video4linux"                                                           
    DRIVER==""                                                                         
    ATTR{name}=="ivtv0 encoder MPG"                                                    
    ATTR{index}=="0"                                                                   

  looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:02:02.0/video4linux':
    KERNELS=="video4linux"                                                             
    SUBSYSTEMS==""                                                                     
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:02:02.0':
    KERNELS=="0000:02:02.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="ivtv"
    ATTRS{vendor}=="0x4444"
    ATTRS{device}=="0x0016"
    ATTRS{subsystem_vendor}=="0x1043"
    ATTRS{subsystem_device}=="0x4b66"
    ATTRS{class}=="0x040000"
    ATTRS{irq}=="22"
    ATTRS{local_cpus}=="ffffffff,ffffffff"
    ATTRS{local_cpulist}=="0-63"
    ATTRS{modalias}=="pci:v00004444d00000016sv00001043sd00004B66bc04sc00i00"
    ATTRS{enable}=="1"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}==""

  looking at parent device '/devices/pci0000:00/0000:00:1e.0':
    KERNELS=="0000:00:1e.0"
    SUBSYSTEMS=="pci"
    DRIVERS==""
    ATTRS{vendor}=="0x8086"
    ATTRS{device}=="0x244e"
    ATTRS{subsystem_vendor}=="0x0000"
    ATTRS{subsystem_device}=="0x0000"
    ATTRS{class}=="0x060400"
    ATTRS{irq}=="0"
    ATTRS{local_cpus}=="ffffffff,ffffffff"
    ATTRS{local_cpulist}=="0-63"
    ATTRS{modalias}=="pci:v00008086d0000244Esv00000000sd00000000bc06sc04i00"
    ATTRS{enable}=="1"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}=="1"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

james@linux-007:~$ udevinfo --version
124
 
Old 01-30-2009, 11:00 AM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Looks like a problem with zapping to me. Maybe it's misconfigured ?
 
Old 01-30-2009, 03:15 PM   #13
jazpaisley
LQ Newbie
 
Registered: Jan 2009
Location: Alturas, California
Distribution: kubuntu 11.04
Posts: 21

Original Poster
Rep: Reputation: 0
Now I'm thinking the ivtvctl version 1.2.0 and ivtv drivers 1.4.0 should be the same version for the ioctl to function properly.

I need ivtv-utils 1.4.0 for this to work...

Last edited by jazpaisley; 01-30-2009 at 10:40 PM. Reason: correction
 
Old 02-17-2009, 02:26 AM   #14
Saedelaere
LQ Newbie
 
Registered: Jun 2008
Posts: 23

Rep: Reputation: 15
Quote:
Originally Posted by jazpaisley View Post
Now I'm thinking the ivtvctl version 1.2.0 and ivtv drivers 1.4.0 should be the same version for the ioctl to function properly.

I need ivtv-utils 1.4.0 for this to work...
You could also try to use this software to watch tv with your device.

Regards
 
Old 06-14-2009, 02:29 AM   #15
jazpaisley
LQ Newbie
 
Registered: Jan 2009
Location: Alturas, California
Distribution: kubuntu 11.04
Posts: 21

Original Poster
Rep: Reputation: 0
VLC works

Im using Kubuntu 9.04 and VLC works on my Falcon2 TV tuner card
finaly I can watch TV on Kubuntu.
 
  


Reply

Tags
ivtv, v4l2, video4linux, vlc



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with a riddle phntm31 General 10 09-29-2006 02:09 PM
Most Difficult Game/Riddle Ever. halo14 General 26 06-11-2005 03:36 PM
Riddle me this on 2.6.10 aufomechanic Linux - General 2 02-09-2005 02:56 AM
A riddle: can you solve it? qanopus General 53 03-27-2004 06:42 AM
riddle for you all SlippySlappy General 9 10-07-2003 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration