[vlc] setting the card with ioctls done by hand

Eric Talavéra etalavera at sympatico.ca
Sat Jan 3 19:27:05 CET 2004


Hi everybody, and happy new year ...

I run under RH9 in a pentium III 733mhz 640mb RAM, and compile 
vlc-0.6.2-2.src.rpm with the --enable-pvr option.
My setup is probably O.K. because I can make the ¨cat /dev/video0 > 
/tmp/test.mpg¨ and read the result with vlc.

I try to use vlc for streaming directly from my WinTV pvr250 (by the 
s-video input) to my local network.

After some unsuccessful test, I read in this mailing list :
 >This  should work,  the only  "problem" would  be that  it is
 >currently impossible to have the  pvr input set the card in
 >order to capture from the  composite/SVideo input.  This
 >should be  fixed,  well... soon  ;-)
 >However, you can still  use VLS or VLC to stream,
 >setting the card with ioctls done by hand...
 >                                                                               
 >--
 >$(echo "BigBen")

So I just want to try it, and I use those commands (I use IVTV drivers 
and utilities):
#test_ioctl -u 0x3000
ioctl: VIDIOC_S_STD
Standard set to 00003000

#test_ioctl -p 6
ioctl: VIDIOC_S_INPUT
Input set to 6

#test_ioctl -f width=720,height=480
ioctl: VIDIOC_S_FMT
        Before:
        Type   : Video Capture
        Width  : 720
        Height : 480
 
        After:
        Type   : Video Capture
        Width  : 720
        Height : 480

#test_ioctl -e
ioctl: VIDIOC_G_FMT
        Type   : Video Capture
        Width  : 720
        Height : 480

In fact, I set it for ntsc, 720x480, s-video port ...

But I'm surely misunderstanding something and when I start vlc, the card 
setup is change for another configuration (secam I think) with the use 
of a frequency for the tuner. How can I told at vlc to not use his 
default setup? I try :

vlc -vvv pvr:/dev/video0
vlc -vvv pvr:/dev/video0 --sout udp:localhost
vlc -vvv 
pvr:/dev/video0:norm=ntsc:size=720x480:bitrate=3000000:maxbitrate=4500000 
--sout udp:localhost

The debug output is something like:

# vlc -vvv pvr:/dev/video0
VideoLAN Client 0.6.2 Trevelyan
[00000000] main root debug: VLC media player - version 0.6.2 Trevelyan - 
(c) 1996-2003 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure 
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu 
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr 
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include 
--libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var 
--sharedstatedir=/usr/com --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-release --enable-dvdread 
--enable-dvdplay --enable-dvbpsi --enable-v4l --enable-vcd --enable-pvr 
--enable-mad --enable-ffmpeg --with-ffmpeg=/usr --enable-faad 
--enable-xvid --enable-dv --enable-flac --enable-theora --enable-x11 
--enable-xvideo --disable-qte --disable-directx --enable-fb --enable-aa 
--without-wingdi --enable-oss --enable-esd --enable-arts --enable-alsa 
--disable-waveout --enable-gtk --disable-familiar --enable-gnome 
--enable-qt --enable-kde --disable-opie --disable-macosx --disable-qnx
--disable-intfwin --enable-ncurses --enable-xosd --enable-lirc 
--enable-pth --disable-st
[00000001] main vlc debug: translation test: code is "C"
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet
[00000000] main root debug: checking builtin modules
[00000000] main root debug: checking plugin modules
[00000000] main root debug: recursively browsing `modules'
[00000000] main root debug: recursively browsing `/usr/lib/vlc'
[00000000] main root warning: cannot open 
`/usr/lib/vlc/gui/libqt_plugin.so' (/usr/lib/vlc/gui/libqt_plugin.so: 
undefined symbol: static_QUType_int)
[00000000] main root debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 157 modules
[00000001] main vlc debug: opening config file /root/.vlc/vlcrc
[00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet
[00000001] main vlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE FPU
[00000001] main vlc debug: looking for memcpy module
[00000001] main vlc debug: probing 3 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000176] main playlist debug: waiting for thread completion
[00000176] main playlist debug: thread 1123150640 (playlist) created at 
priority 0 (src/playlist/playlist.c:80)
[00000176] main playlist debug: adding playlist item ? pvr:/dev/video0 ? 
( pvr:/dev/video0 )
[00000176] main playlist debug: creating new input thread
[00000177] main input: playlist item `pvr:/dev/video0'
[00000177] main input debug: waiting for thread completion
[00000177] main input debug: access `pvr', demux `', name `/dev/video0'
[00000177] main input debug: looking for access module
[00000177] main input debug: probing 9 candidates
[00000177] pvr input debug: device: /dev/video0, standard: 7f0000, size: 
720x576, frequency: 567250, framerate: 25, bitrate: 3000000/4000000
[00000177] main input debug: thread 1131543344 (input) created at 
priority 0 (src/input/input.c:180)
[00000177] main input debug: playing at normal rate
[00000178] main interface debug: looking for interface module
[00000178] main interface debug: probing 7 candidates
[00000118] main module debug: using interface module "wxwindows"
[00000178] main interface debug: interface initialized
[00000178] main interface debug: thread 1139936048 (manager) created at 
priority 0 (src/interface/interface.c:118)
[00000030] main module debug: using access module "pvr"
[00000030] main module debug: unlocking module "pvr"
[00000177] main input debug: thread 1131543344 joined 
(src/input/input.c:214)


I try also vls (by following the Howto example) from the loopback 
interface and have something to see inside vlc, but the resources of the 
machine fall very low and the machine freeze after some minutes.


Thank you for your help ...

Eric Talavera (new paranoid father ...)

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc mailing list