Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Ubuntu Help
Reload this Page Cam server can not serve streams
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Ubuntu Help Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Reply
 
Thread Tools Display Modes
Old 07-03-2008   #1 (permalink)
juiev
Just Joined!
 
Join Date: Jul 2008
Posts: 1
Question Cam server can not serve streams

I have two PCs. I want to use one of them as a Cam server. I'll call this as mac_S. So i installed Ubuntu Server 8.04 on mac_S. I will use other machine (that i call as mac_K) to connecting over LAN for control and install packages on mac_S. I am using Kubuntu 8.04 on mac_K.

I've got two cams on mac_S. One of them is a webcam installed via usb2 port. And other is a ccd dome security cam which is installed via internal PCI DVR Card. The webcam recognized by kernel as /dev/video0 and the other cam reconized as /dev/video3.
IP address of mac_K on is 192.168.0.50 on LAN.


Information about mac_S:
Quote:
mac_S~[/color]$ uname -a
Linux ubuntu 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686 GNU/Linux
mac_S~$ lsmod | grep spca
gspca 643280 0
videodev 29312 3 gspca,saa7134
usbcore 146028 4 gspca,ehci_hcd,uhci_hcd
mac_S~$ lsmod | grep vide
videobuf_dma_sg 15108 1 saa7134
videobuf_core 18820 2 saa7134,videobuf_dma_sg
videodev 29312 3 gspca,saa7134
v4l2_common 18304 2 saa7134,videodev
v4l1_compat 15492 2 saa7134,videodev
mac_S~$ lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 004: ID 0733:1314 ViewQuest Technologies, Inc.
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
mac_S~$ dmesg | tail -n 25
[ 59.184664] saa7134: card=117 -> Avermedia Super 007 1461:f01d
[ 59.184686] saa7130[3]: subsystem: 1131:0000, board: UNKNOWN/GENERIC [card=0,autodetected]
[ 59.184742] saa7130[3]: board init: gpio is 10000
[ 59.291759] saa7130[3]: Huh, no eeprom present (err=-5)?
[ 59.291947] saa7130[3]: registered device video3 [v4l2]
[ 59.292059] saa7130[3]: registered device vbi3
[ 61.602582] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-server/media/gspcav1/gspca_core.c: USB GSPCA camera found.Sunplus FW 2
[ 61.620574] usbcore: registered new interface driver gspca
[ 61.620603] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-server/media/gspcav1/gspca_core.c: gspca driver 01.00.20 registered
[ 67.115141] loop: module loaded
[ 67.422228] lp: driver loaded but no devices found
[ 68.523535] Adding 1004020k swap on /dev/sda1. Priority:-1 extents:1 across:1004020k
[ 69.129125] EXT3 FS on sda2, internal journal
[ 70.317349] NET: Registered protocol family 10
[ 70.318609] lo: Disabled Privacy Extensions
[ 71.959235] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 80.589015] eth0: no IPv6 routers present
[ 4010.298947] usb 3-1: USB disconnect, address 2
[ 4952.821260] usb 3-1: new full speed USB device using uhci_hcd and address 3
[ 4953.019825] usb 3-1: configuration #1 chosen from 1 choice
[ 4953.021867] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-server/media/gspcav1/gspca_core.c: USB GSPCA camera found.Sunplus FW 2
[ 5024.256972] usb 3-1: USB disconnect, address 3
[ 5514.276948] usb 3-1: new full speed USB device using uhci_hcd and address 4
[ 5514.475485] usb 3-1: configuration #1 chosen from 1 choice
[ 5514.477385] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-server/media/gspcav1/gspca_core.c: USB GSPCA camera found.Sunplus FW 2
I did not see any problem above. Did you? So i will explain process step by step that i made.

I did not installed X on mac_S. Because mac_S has Intel Celeron 400 and 256 MB RAM and it's going slow when X starts while serving. So i'm going to send cam streams on port 5000 to mac_K (As written in this article http://ivtvdriver.org/index.php/Howto:Netcat_streaming ). I connected to mac_S over ssh with mac_K.

Before I wrote on mac_K
Code:
mac_K~$ nc -l -p 5000 | mplayer -
And wrote on mac_S
Code:
mac_S~$ cat /dev/video0 | nc 192.168.0.50 5000
mac_K shows this error message:
Code:
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
.
.
.
Cannot seek backward in linear streams!
Seek failed
Then i tried it for other cam (/dev/video3) and i saw same message.

If cams are not work! May be. I remove webcam on mac_S and put on mac_K:
Code:
mac_K~$ cat /dev/video0 | mplayer -
It's working on mac_K. The problem is not cams fault.

Is this a connection problem over port 5000?
Code:
mac_K~$ nc -l -p
Code:
mac_S~$ ls -goal | nc 192.168.0.50 5000
Output of mac_K
Quote:
total 3004
drwxr-xr-x 3 4096 2008-07-02 12:17 .
drwxr-xr-x 3 4096 2008-06-30 13:09 ..
drwx------ 2 4096 2008-07-02 13:29 .aptitude
-rw------- 1 2662 2008-07-02 12:29 .bash_history
-rw-r--r-- 1 220 2008-06-30 13:09 .bash_logout
-rw-r--r-- 1 2928 2008-06-30 13:09 .bashrc
-r--r--r-- 1 8434 2008-07-02 11:58 .fishsrv.pl
-rwxrwxrwx 1 1744217 2008-07-02 12:08 kerman.flv
-rw-r--r-- 1 1279106 2008-07-02 12:17 .locate
-rw-r--r-- 1 586 2008-06-30 13:09 .profile
-rw-r--r-- 1 0 2008-06-30 13:16 .sudo_as_admin_successful
It's not port connection problem

May another problem is, not to steaming video over network?

Code:
mac_K~$  nc -l -p 5000 | mplayer -
Code:
mac_S~$ cat kerman.flv | nc 192.168.0.50 5000
Output of mac_S:
Quote:
Playing -.
Reading from stdin...
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [FLV1] 320x240 0bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
xscreensaver_disable: Could not find XScreenSaver window.
================================================== ========================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video)
================================================== ========================
================================================== ========================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 22050 Hz, 1 ch, s16le, 8.0 kbit/2.27% (ratio: 1000->44100)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
================================================== ========================
AO: [pulse] Failed to connect to server: Connection refused
AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 320x240 => 320x240 Planar YV12
A: 14.7 V: 19.6 A-V: -4.932 ct: -1.635 491/491 2% 0% 1.5% 0 0
Video file is streaming over network. So it is not a streaming problem.

I can't find any way to solve this problem. Do you?

Shortly my problem is to use mac_S as cam (especially over dvr)streaming server. I used mac_S before to serve webcam over ZoneMinder. But i can't take cam streams now. What may be the problem? I can't find sufficient resources abuot dvr cam streaming. Do you know?

I'm waiting for your help! And sorry about weak english.
juiev is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 10:02 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0