ffserver.conf의 설정에 따라 다르지만

Format status 항목의 이름에 따른 페이지로 접속하면된다.
기본값은 stat.html로 되어있다.

<Stream stat.html>
Format status

ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255


위와 같은 화면이 나오게 되면 일단 서버는 이상없이 돌아가는 건데..
희한하게 여전히.. 스트리밍에는 오류가 나네 ㅠ.ㅠ


2009/11/25 추가
곰 플레이어나 / 윈도우 미디어 플레이어에서 잘 안되면
일단  VLC로 확인 해보는것이 좋음. 곰에서는 잘 연결이 안됨.
Posted by 구차니

kscope 기본적으로 *.c와 *.h에 대한 검색을 사용합니다.


Project Properties를 보면 Filetype에 기본값으로는 *.c와 *.h만 있는데
개발시에 Makefile 등의 다른 파일도 추가해야 한다면
우측의 Available Types의 Editbox에 원하는 확장자를 입력하고 "<< Add"를 누르면 This Project에 추가가 됩니다.


추가 후 Add/Remove files 의 Filter에 추가된 확장자를 확인하실 수 있습니다.

'프로그램 사용 > ctags & cscope' 카테고리의 다른 글

ctags 제약사항  (0) 2011.10.28
kscope 프로젝트 생성하기  (0) 2009.08.20
ctags format - CTAGS 출력 포맷/양식  (0) 2009.06.14
ctags  (0) 2009.01.07
Posted by 구차니

셋업파일 인증서 내용으로는
2009년 10월 29일 목요일 오전 4:08:40 에 작성된 것으로 보인다.


가장 큰 눈에 띄는 차이점은
어떤 GPU 사용중인지

2009-11-04 오전 12:22:05        NVIDIA GPU 0: GeForce 8600 GT (driver version 19107, CUDA version 2030, compute capability 1.1, 256MB, 76 GFLOPS peak)

메시지에 이렇게 성능을 표시해 준다는 것이다.

Posted by 구차니
The server is too busy to serve your request at this time.

The bandwidth being served (including your stream) is 3758kbit/sec, and this exceeds the limit of 1000kbit/sec.
http://localhost:8090/feed1.ffm 로 접속하니 위와 같은 에러가 난다.

<Stream test.asf>
Feed feed1.ffm
Format asf
VideoFrameRate 30
VideoSize 320x240
VideoBitRate 1872
VideoBufferSize 4000
VideoGopSize 30
AudioBitRate 1886
StartSendOnKey
</Stream>
ffserver.conf의 설정은 video가 1872kb / audio 가 1886kb 였고
합쳐서 3758kb 인데 이는 1000kbit의 데이터 폭을 넘어선다는 에러인 듯 하다.


아무튼 http://localhost:8090/test.asf로 접속하면


위와 같은 화면이 뜬다.
(아직 스트리밍은 실패 ㅠ.ㅠ)
Posted by 구차니
우분투 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 구차니
제목이 조금 낚시인가?
윈도우에서 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 구차니

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 구차니
첫째... 삼바 계정 공유에 쓰기 권한이 없는 경우...
둘째... 삼바 계정과 공유한 디렉토리의 소유권이 다른 경우.
세째... 삼바 계정이 해당 공유 디렉토리에 쓰기 권한 없는 경우

[링크 : http://kldp.org/node/64194]
Posted by 구차니
프로그램 사용/vi2009. 10. 29. 15:17
FC6 사용자인데(응?)
root로 들어가서 vi를 하면 아무리 해도 Syntax High light가 작동하지를 않는다.
물론 whereis로 검색을 해봐도 vi는 하나뿐인데 왜그런가 해서 검색을 해봤더니



Ok, I fixed it... all I had to do was to add an alias for vi pointing to /usr/bin/vim in my /root/.bashrc file. Root was using /bin/vi which is the Small version, while other accounts were aliasing vi as vim, which is why it was working... I was also able to get syntax to work as root by using just "vim filename" instead of vi... Silly me... Thanks for pointing me in the right direction Tony! :)

[링크 : http://www.nabble.com/Unable-to-get-syntax-highlighting-to-work-for-root-account-td15767467.html]

$ alias
alias l.='ls -d .* --color=tty'
alias ll='ls -l --color=tty'
alias ls='ls --color=tty'
alias mc='. /usr/share/mc/bin/mc-wrapper.sh'
alias vi='vim'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'

일반 유저에서 alias를 실행해보니, vi가 설정되어 있었다.
그런데 root는 이러한 부분이 없었다.

# alias
alias cp='cp -i'
alias l.='ls -d .* --color=tty'
alias ll='ls -l --color=tty'
alias ls='ls --color=tty'
alias mc='. /usr/share/mc/bin/mc-wrapper.sh'
alias mv='mv -i'
alias rm='rm -i'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'

root는 안전을 위해 rm이나 mv에 -i(interative) 옵션을 기본으로 붙이게 해놨다.

'프로그램 사용 > vi' 카테고리의 다른 글

vi 에서 명령어 실행하기  (0) 2010.01.28
vi set commands  (0) 2010.01.27
vimdiff  (0) 2009.10.29
VI 자동 줄 정렬  (0) 2009.10.06
vi auto indent  (0) 2009.10.06
Posted by 구차니