우분투 8.04에서 Logitech Quickcam Pro 4000으로 스트리밍 서버 만드는 방법이다.

$ ffserver -f ./ffserver.conf
$ ffmpeg -y -f video4linux -r 30 -s 160x120 -i /dev/video0 http://localhost:8090/feed1.ffm
웹브라우저 http://xxx.xxx.xxx.xxx:8090/stream.asf

[링크 : http://sound79.tistory.com/105]

머.. ffmpeg 홈페이지의 ffserver 문서와 다를 내용은 그리 없지만

As a simple test, just run the following two command lines where INPUTFILE is some file which you can decode with ffmpeg:

./ffserver -f doc/ffserver.conf &
./ffmpeg -i INPUTFILE http://localhost:8090/feed1.ffm

At this point you should be able to go to your Windows machine and fire up Windows Media Player (WMP). Go to Open URL and enter

    http://<linuxbox>:8090/test.asf

아무튼.. wmv 중요한건 저게 아니라 /etc/ffserver.conf 파일의 내용일 듯 하다.


ffmpeg 홈페이지의 ffserver.conf 예제파일

# Port on which the server is listening. You must select a different
# port from your standard HTTP web server if it is running on the same
# computer.
Port 8090

# Address on which the server is bound. Only useful if you have
# several network interfaces.
BindAddress 0.0.0.0

# Number of simultaneous HTTP connections that can be handled. It has
# to be defined *before* the MaxClients parameter, since it defines the
# MaxClients maximum limit.
MaxHTTPConnections 2000

# Number of simultaneous requests that can be handled. Since FFServer
# is very fast, it is more likely that you will want to leave this high
# and use MaxBandwidth, below.
MaxClients 1000

# This the maximum amount of kbit/sec that you are prepared to
# consume when streaming to clients.
MaxBandwidth 1000

# Access log file (uses standard Apache log file format)
# '-' is the standard output.
CustomLog -

# Suppress that if you want to launch ffserver as a daemon.
NoDaemon


##################################################################
# Definition of the live feeds. Each live feed contains one video
# and/or audio sequence coming from an ffmpeg encoder or another
# ffserver. This sequence may be encoded simultaneously with several
# codecs at several resolutions.

<Feed feed1.ffm>

# You must use 'ffmpeg' to send a live feed to ffserver. In this
# example, you can type:
#
# ffmpeg http://localhost:8090/feed1.ffm

# ffserver can also do time shifting. It means that it can stream any
# previously recorded live stream. The request should contain:
# "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
# a path where the feed is stored on disk. You also specify the
# maximum size of the feed, where zero means unlimited. Default:
# File=/tmp/feed_name.ffm FileMaxSize=5M
File /tmp/feed1.ffm
FileMaxSize 200K

# You could specify
# ReadOnlyFile /saved/specialvideo.ffm
# This marks the file as readonly and it will not be deleted or updated.

# Specify launch in order to start ffmpeg automatically.
# First ffmpeg must be defined with an appropriate path if needed,
# after that options can follow, but avoid adding the http:// field
#Launch ffmpeg

# Only allow connections from localhost to the feed.
ACL allow 127.0.0.1

</Feed>


##################################################################
# Now you can define each stream which will be generated from the
# original audio and video stream. Each format has a filename (here
# 'test1.mpg'). FFServer will send this stream when answering a
# request containing this filename.

<Stream test1.mpg>

# coming from live feed 'feed1'
Feed feed1.ffm

# Format of the stream : you can choose among:
# mpeg       : MPEG-1 multiplexed video and audio
# mpegvideo  : only MPEG-1 video
# mp2        : MPEG-2 audio (use AudioCodec to select layer 2 and 3 codec)
# ogg        : Ogg format (Vorbis audio codec)
# rm         : RealNetworks-compatible stream. Multiplexed audio and video.
# ra         : RealNetworks-compatible stream. Audio only.
# mpjpeg     : Multipart JPEG (works with Netscape without any plugin)
# jpeg       : Generate a single JPEG image.
# asf        : ASF compatible streaming (Windows Media Player format).
# swf        : Macromedia Flash compatible stream
# avi        : AVI format (MPEG-4 video, MPEG audio sound)
Format mpeg

# Bitrate for the audio stream. Codecs usually support only a few
# different bitrates.
AudioBitRate 32

# Number of audio channels: 1 = mono, 2 = stereo
AudioChannels 1

# Sampling frequency for audio. When using low bitrates, you should
# lower this frequency to 22050 or 11025. The supported frequencies
# depend on the selected audio codec.
AudioSampleRate 44100

# Bitrate for the video stream
VideoBitRate 64

# Ratecontrol buffer size
VideoBufferSize 40

# Number of frames per second
VideoFrameRate 3

# Size of the video frame: WxH (default: 160x128)
# The following abbreviations are defined: sqcif, qcif, cif, 4cif, qqvga,
# qvga, vga, svga, xga, uxga, qxga, sxga, qsxga, hsxga, wvga, wxga, wsxga,
# wuxga, woxga, wqsxga, wquxga, whsxga, whuxga, cga, ega, hd480, hd720,
# hd1080
VideoSize 160x128

# Transmit only intra frames (useful for low bitrates, but kills frame rate).
#VideoIntraOnly

# If non-intra only, an intra frame is transmitted every VideoGopSize
# frames. Video synchronization can only begin at an intra frame.
VideoGopSize 12

# More MPEG-4 parameters
# VideoHighQuality
# Video4MotionVector

# Choose your codecs:
#AudioCodec mp2
#VideoCodec mpeg1video

# Suppress audio
#NoAudio

# Suppress video
#NoVideo

#VideoQMin 3
#VideoQMax 31

# Set this to the number of seconds backwards in time to start. Note that
# most players will buffer 5-10 seconds of video, and also you need to allow
# for a keyframe to appear in the data stream.
#Preroll 15

# ACL:

# You can allow ranges of addresses (or single addresses)
#ACL ALLOW <first address>

# You can deny ranges of addresses (or single addresses)
#ACL DENY <first address>

# You can repeat the ACL allow/deny as often as you like. It is on a per
# stream basis. The first match defines the action. If there are no matches,
# then the default is the inverse of the last ACL statement.
#
# Thus 'ACL allow localhost' only allows access from localhost.
# 'ACL deny 1.0.0.0 1.255.255.255' would deny the whole of network 1 and
# allow everybody else.

</Stream>


##################################################################
# Example streams


# Multipart JPEG

#<Stream test.mjpg>
#Feed feed1.ffm
#Format mpjpeg
#VideoFrameRate 2
#VideoIntraOnly
#NoAudio
#Strict -1
#</Stream>


# Single JPEG

#<Stream test.jpg>
#Feed feed1.ffm
#Format jpeg
#VideoFrameRate 2
#VideoIntraOnly
##VideoSize 352x240
#NoAudio
#Strict -1
#</Stream>


# Flash

#<Stream test.swf>
#Feed feed1.ffm
#Format swf
#VideoFrameRate 2
#VideoIntraOnly
#NoAudio
#</Stream>


# ASF compatible

<Stream test.asf>
Feed feed1.ffm
Format asf
VideoFrameRate 15
VideoSize 352x240
VideoBitRate 256
VideoBufferSize 40
VideoGopSize 30
AudioBitRate 64
StartSendOnKey
</Stream>


# MP3 audio

#<Stream test.mp3>
#Feed feed1.ffm
#Format mp2
#AudioCodec mp3
#AudioBitRate 64
#AudioChannels 1
#AudioSampleRate 44100
#NoVideo
#</Stream>


# Ogg Vorbis audio

#<Stream test.ogg>
#Feed feed1.ffm
#Title "Stream title"
#AudioBitRate 64
#AudioChannels 2
#AudioSampleRate 44100
#NoVideo
#</Stream>


# Real with audio only at 32 kbits

#<Stream test.ra>
#Feed feed1.ffm
#Format rm
#AudioBitRate 32
#NoVideo
#NoAudio
#</Stream>


# Real with audio and video at 64 kbits

#<Stream test.rm>
#Feed feed1.ffm
#Format rm
#AudioBitRate 32
#VideoBitRate 128
#VideoFrameRate 25
#VideoGopSize 25
#NoAudio
#</Stream>


##################################################################
# A stream coming from a file: you only need to set the input
# filename and optionally a new format. Supported conversions:
#    AVI -> ASF

#<Stream file.rm>
#File "/usr/local/httpd/htdocs/tlive.rm"
#NoAudio
#</Stream>

#<Stream file.asf>
#File "/usr/local/httpd/htdocs/test.asf"
#NoAudio
#Author "Me"
#Copyright "Super MegaCorp"
#Title "Test stream from disk"
#Comment "Test comment"
#</Stream>


##################################################################
# RTSP examples
#
# You can access this stream with the RTSP URL:
#   rtsp://localhost:5454/test1-rtsp.mpg
#
# A non-standard RTSP redirector is also created. Its URL is:
#   http://localhost:8090/test1-rtsp.rtsp

#<Stream test1-rtsp.mpg>
#Format rtp
#File "/usr/local/httpd/htdocs/test1.mpg"
#</Stream>


##################################################################
# SDP/multicast examples
#
# If you want to send your stream in multicast, you must set the
# multicast address with MulticastAddress. The port and the TTL can
# also be set.
#
# An SDP file is automatically generated by ffserver by adding the
# 'sdp' extension to the stream name (here
# http://localhost:8090/test1-sdp.sdp). You should usually give this
# file to your player to play the stream.
#
# The 'NoLoop' option can be used to avoid looping when the stream is
# terminated.

#<Stream test1-sdp.mpg>
#Format rtp
#File "/usr/local/httpd/htdocs/test1.mpg"
#MulticastAddress 224.124.0.1
#MulticastPort 5000
#MulticastTTL 16
#NoLoop
#</Stream>


##################################################################
# Special streams

# Server status

<Stream stat.html>
Format status

# Only allow local people to get the status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255

#FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico
</Stream>


# Redirect index.html to the appropriate site

<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>


http://www.ffmpeg.org/

아무튼 적절한 코덱을 지원하는 동영상을 찾아서 테스트 해봐야 하겠지만,
해상도는 16의 배수, 프레임은 1이상 이어야 하는 것으로 보인다.
Posted by 구차니
Posted by 구차니
개소리 왈왈2009. 11. 3. 11:33
춥지 않다!!!!



역시 사람은 자고로 머리는 차갑고
발은 따스하게 하면 된다고 했지만.. 이정도일 줄이야 -ㅁ-!

'개소리 왈왈' 카테고리의 다른 글

티스토리 DDoS 공격 ㅠ.ㅠ  (2) 2009.11.05
헉! 바보짓!!  (8) 2009.11.04
블리자드, 너마저!  (4) 2009.11.02
파이어 폭스 3.5.4 & 부가기능 업데이트 오류  (6) 2009.11.01
잘가 샤인폰  (7) 2009.10.30
Posted by 구차니
제목이 조금 낚시인가?
윈도우에서 net view 라고 명령창에서 치면 현재 사용가능한 네트워크 목록이 나오는데
특정 호스트를 nbtstat -a [hostname] 으로 하면 목록이 나오는데,
거기에 <1D> 라는 녀석이 있는게 (로컬) 마스터 브라우저이다.

C:\>nbtstat -a localhost

로컬 영역 연결:
Node IpAddress: [192.168.10.96] Scope Id: []

           NetBIOS Remote Machine Name Table

       Name               Type         Status
    ---------------------------------------------
    LOCALHOST      <00>  UNIQUE      Registered
    LOCALHOST      <03>  UNIQUE      Registered
    LOCALHOST      <20>  UNIQUE      Registered
    WORKGROUP      <1E>  GROUP       Registered
    WORKGROUP      <00>  GROUP       Registered

    MAC Address = 00-00-00-00-00-00


workgroup
or
nt_domain
<1B> unique Domain Master Browser
This name identifies the Domain Master Browser (DMB).

A Samba server can behave as a DMB without also being a Primary Domain Controller (PDC). The existence of a PDC promotes the Workgroup to NT Domain status, in which case we write nt_domain<1B> instead of workgroup<1B>. If there is a PDC, it must provide the DMB service for the NT Domain.

Domain Controllers (both Primary and Backup) register the nt_domain<1C> Internet Group name. Registration of the nt_domain<1B> name effectively distinguishes the PDC from all of the other DCs in the domain. The NBNS will ensure that the IP address of the (unique) <1B> name is the first in the list of IP addresses

nt_domain <1C> Internet group Domain Controller
Every domain controller in the NT Domain will register this group name. The NBNS (WINS server) is expected to store all of the IP addresses associated with the name, though it will report at most 25 IP addresses in a NAME QUERY RESPONSE.

The first entry in the list should be the IP address of the Primary Domain Controller (PDC). The rest of the IPs are ordered most recent first. This is atypical handling for group names under WINS. WINS (and, therefore, any NBNS which is WINS-compatible) will usually report only the limited broadcast address (255.255.255.255) when queried for a group name.

workgroup <1D> LAN unique Local Master Browser
This name identifies the Local Master Browser (LMB, sometimes called simply "Master Browser") for a subnet. WINS servers (and any NBNS which is WINS-compatible) will accept registration for <1D> unique names, but when queried will always reply with a NEGATIVE NAME QUERY RESPONSE. As a result, the LMB name is unique within its local subnet only.
workgroup <1E> group Browser Election Service
Every node that is capable of acting as a browser registers this group name so that it can listen for election announcements.
\x01\x02__MSBROWSE__\x02 <01> group Local Master Browser
This group name is registered by all Local Master Browsers (LMBs). It allows LMBs on a local LAN to find one another in order to exchange Browse Lists. This is how Browse Lists for multiple Workgroups and/or NT Domains are combined.


[링크 : http://www.antionline.com/showthread.php?t=247089]
[링크 : http://ubiqx.org/cifs/Appendix-C.html]
Posted by 구차니
개소리 왈왈2009. 11. 2. 15:42
(부르투스 너마저! 어감으로 읽으면 감동 20배)


잠수 타고 자빠져 있던 길마 갑자기 말을 걸었다

길마 : 바쁘냐?
         나 부활의 두루마리 시전좀 해바바

바쁘냐? 에서 순간 피싱인줄 알았다.

아무튼, Firefox에서 하는데.. 계속 에러나고 ㄱ-
결국에는 IE에서 했는데 겨우겨우 했다..




블리자드 뒤질래열?


네놈들에게 이걸 써버리겠다!!!!

'개소리 왈왈' 카테고리의 다른 글

헉! 바보짓!!  (8) 2009.11.04
90도 돌려잤을 뿐인데!  (2) 2009.11.03
파이어 폭스 3.5.4 & 부가기능 업데이트 오류  (6) 2009.11.01
잘가 샤인폰  (7) 2009.10.30
메신저 피싱의 장점  (2) 2009.10.27
Posted by 구차니

deadtime (G)


The value of the parameter (a decimal integer) represents the number of minutes of inactivity before a connection is considered dead, and it is disconnected. The deadtime only takes effect if the number of open files is zero.

This is useful to stop a server's resources being exhausted by a large number of inactive connections.

Most clients have an auto-reconnect feature when a connection is broken so in most cases this parameter should be transparent to users.

Using this parameter with a timeout of a few minutes is recommended for most systems.

A deadtime of zero indicates that no auto-disconnection should be performed.

Default: deadtime = 0

Example: deadtime = 15



keepalive (G)


The value of the parameter (an integer) represents the number of seconds between keepalive packets. If this parameter is zero, no keepalive packets will be sent. Keepalive packets, if sent, allow the server to tell whether a client is still present and responding.

Keepalives should, in general, not be needed if the socket has the SO_KEEPALIVE attribute set on it by default. (see socket options). Basically you should only use this option if you strike difficulties.

Default: keepalive = 300

Example: keepalive = 600



[링크 : http://us1.samba.org/samba/docs/man/manpages-3/smb.conf.5.html]

아래의 문서에서 keepalive 와 deadtime 발견
[링크 : http://xbmc.org/forum/showthread.php?t=312]

deadtime은 분단위로,
keepalive는 초단위로 설정한다.


Posted by 구차니
Microsoft/Windows2009. 11. 2. 10:07
C:\>net use /help
이 명령에 대한 구문:


NET USE
[장치이름| *] [\\컴퓨터이름\공유이름[\볼륨] [암호| *]]
        [/USER:[도메인이름\]사용자이름]
        [/USER:[점있는 도메인이름\]사용자이름]
        [/USER:[사용자이름@점있는 도메인이름]
        [/SMARTCARD]
        [/SAVECRED]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {장치이름 | *} [암호 | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]


NET USE는 컴퓨터를 공유되는 리소스에 연결시키거나 연결을 끊습니다.
옵션 없이 사용될 경우에는 해당 컴퓨터의 연결 상태를 열거해 줍니다.

장치이름        리소스에 연결시킬 이름을 설정하거나 연결을 끊을 장치를
                지정합니다. 장치는 두 종류인데  하나는 디스크 드라이브
                (D: 에서 Z:까지)이고 다른 하나는 프린터(LPT1:에서 LPT3:까지)
                입니다. 다음 차례의 사용 가능한 장치이름를 지정하고 싶을
                경우 특정 장치이름 대신 *를 치면 됩니다.
\\컴퓨터이름    공유 리소스를 제어하는 컴퓨터의 이름입니다.
                컴퓨터이름에 공백이 있을 경우, \\(두개의 백슬래시)와 컴퓨터
                이름을 인용부호(" ") 안에 넣어줍니다. 컴퓨터이름은 1에서 15자
                까지 쓸 수 있습니다.
\공유이름       공유되고 있는 리소스의 네트워크이름입니다.
\볼륨           서버상의 NetWare 볼륨을 지정합니다.  NetWare 서버에 연결되기
                위해서는 NetWare용 클라이언트 서비스(Windows 워크스테이션)
                혹은 NetWare용 게이트웨이 서비스(Windows 서버)가 설치되어
                실행되고 있어야 합니다.
암호            공유 리소스에 연결하는 데 필요한 암호입니다.
*               암호를 칠 수 있는 프롬프트 상태를 만들어줍니다. 암호 프롬프트
                에서는 암호를 쳐도 암호가 보이지 않습니다.
/USER           연결에 사용할 다른 사용자 이름을 지정합니다.
도메인이름      다른 도메인을 지정합니다. 도메인을 생략하면 현재 로그온
                되어있는 도메인이 사용됩니다.
사용자이름      로그온할 때 쓸 사용자이름을 지정합니다.
/SMARTCARD      연결이 스마트 카드의 자격 증명을 사용함을 지정합니다.
/SAVECRED       사용자 이름과 암호를 저장하도록 지정합니다.
                명령어가 사용자 이름과 암호를 물어보지 않으면 이 스위치는
                무시됩니다. 이 옵션은 Windows XP Home Edition에서는 사용
                할 수 없으며, 무시됩니다.
/HOME           사용자를 홈 디렉터리에 연결시킵니다.
/DELETE         네트워크 연결을 취소시키고 영구 연결 목록에서 연결을 삭제
                합니다.
/PERSISTENT     영구적인 네트워크 연결의 사용을 제어합니다. 기본 설정은
                이전에 사용된 설정입니다.
YES             이루어진 연결을 저장하여 다음 번 로그온시 연결을 복원합니다.
NO              이루어진 연결 혹은 후속 연결을 저장하지 않습니다. 기존의
                연결은 다음번 로그온시 복원됩니다. 영구 연결을 제거하려면
                /DELETE 스위치를 사용합니다.
 NET HELP 명령 | MORE은 도움말을 한번에 한 화면씩 보여줍니다.


윈도우에서 접속하듯 커맨드 라인에서 접속하기 위해서는

net use [공유명]을 해주고

끊으려면

net use [공유명] /delete를 해주면 된다.


----
2011.10.29 추가

저장된 패스워드를 삭제하려면 아래와 같이한다.
C:\>net use /persistent:no

[링크 : http://linuxunixserver.blogspot.com/2007/01/blog-post.html

Posted by 구차니
Linux/Ubuntu2009. 11. 2. 01:10
업데이트 관리자에서 상단의 업그레이드를 누르면 9.10 으로 업그레이드를 한다.

이러한 릴리즈 정보도 뿌려주고


머.. 이런 단계로 넘어가기도 하고


912M를 다운받는 엄청난 용량 -ㅁ-
아무튼 받고 지우고 알아서 잘~한다

총 업그레이드 소요 시간
다운로드 대략 15분 / 설치 1시간 / 삭제 20분 정도
대략 1시간 30분

근데 한글.. 어쩔?


일단 사용하는 컴퓨터 사양은
P4-2.66Ghz / 512MB / 내장 그래픽 / EIDE 80GB 하드

아무튼 메모리가 적어서 인지 모르겠지만
부팅시에 10초 잡아 먹는 것을 제외하고도
1분 30초 가량 부팅에 소요되고(하드 멈출때까지)
종료에는 10초 정도 소요된다.

Posted by 구차니
Linux/Ubuntu2009. 11. 2. 00:57
예전 draco 님의 블로그에서 보고 졸라서 알아낸 정보인데


상단의 패널에 이런식의 온도 정보를 넣고 쓰시길래 물어 봤더니...
기본 기능이라고 하시길래 찾아 봤다.

아무튼, 저 빈칸에서 우클릭 - 패널에 추가를 해주면 되고
적당한 것을 골라서 넣어주면 된다.

Computer Temperature Monitor나
Hardware Sensors Monitor를 선택해주면 위의 화면과 같이 패널에 추가된다.



Posted by 구차니
개소리 왈왈2009. 11. 1. 15:36
오늘 Firefox를 켜보니 업데이트 하라고 하니까 해줬다 -ㅁ-

이건.. 얼마전 부터 생긴 오류인데, 아마도 mozila.org 홈페이지 오류인듯 싶다.

[링크 : http://forums.mozilla.or.kr/viewtopic.php?p=40601]

'개소리 왈왈' 카테고리의 다른 글

90도 돌려잤을 뿐인데!  (2) 2009.11.03
블리자드, 너마저!  (4) 2009.11.02
잘가 샤인폰  (7) 2009.10.30
메신저 피싱의 장점  (2) 2009.10.27
헉 내 인생 내 머리!  (0) 2009.10.24
Posted by 구차니