프로그램 사용/VLC2009. 11. 25. 17:50
0.8.6 버전과

1.0.3 버전은

모양이 매우 다르다.
udp나 rtp로 전송시 서버에서는 재생할 client의 ip를 넣어주고
client에서는 ip대신 @를 넣어주면 동영상을 스트리밍한다.

일반 아이피를 넣을 경우에는 RTP/UDP Unicast로 작동하는 것으로 보인다.

udp://localhost 로는 작동되지 않으며, 반드시
udp://@ 로 해야지 작동이 되는 것으로 보인다.

[링크 : http://wiki.videolan.org/Control_VLC_via_a_browser]


Exception

An exception to these rules appears to be with UDP/RTP streams, where it may look like:
 udp://@:portnumber

 # Example:
 #   udp://@:1234
 #
 # Apparently the @ has a meaning like localhost, though
 #   udp://localhost:1234
 # doesn't seem to work in this circumstance, for some reason.

[링크 : http://wiki.videolan.org/MRL]

머..@는 그냥 localhost의 의미랜다 -ㅁ-
Posted by 구차니
프로그램 사용/VLC2009. 11. 25. 17:47

[링크 : http://www.videolan.org/streaming-features.html]


UDP is only valid with TS

unsupported muxer type for RTP (only TS/PS)

TS가 만세다(웬만한건 다 TS는 기본으로 지원된다)
UDP / RTP 등은 ASF로는 지원하지 않고 TS로 해야지 에러가 발생하지 않는다.




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

VLC를 이용한 웹캠보기  (0) 2009.12.02
VLC 네트워크 플레이 옵션  (4) 2009.11.25
VLC 한글 자막 출력하기 - VLC for windows  (2) 2009.11.24
VLC Streaming  (0) 2009.11.24
VLC web interface(웹 인터페이스)  (6) 2009.11.24
Posted by 구차니
프로그램 사용/VLC2009. 11. 24. 21:35
예전에 받아 놓은 애니들을 보다가,
곰 플레이어 에서는 보이지 않던 자막들이 보이길래 먼가 해서 의아해 하다 보니,
동영상 자체에 들어 있는 자막이었다.



아무튼, 각설하고 VLC는 기본값으로는 한글 자막을 지원하지 않는다.
smi 자막은 사용가능 하지만 폰트가 없어서 한글이 전부 □로 나오는데
이를 해결 하기 위해서는 약간의 번거로운 작업을 해야한다.

위의 메뉴에서 필요한 설정은 텍스트 렌더링 모듈에서 Freetype2 폰트 렌더러로 설정해주는 것이다.

그리고 글꼴에 직접 입력을 해준다. (찾아보기로 해도 파일이 선택이 안된다)
c:\windows\fonts\gulim.ttc
마지막으로 글꼴 크기를 30으로 입력해준다.(이유는 모르겠지만, 30이하는 글씨가 깨져 보인다.)

[링크 : http://hanury.net/wp/archives/177]
[링크 : http://qaos.com/article.php?sid=2132]





2009.12.16 수정
1.0.3 버전에서는 다른것들 설정할 필요없이
글꼴 c:\windows\fonts\gulim.ttc
글꼴 크기 (픽셀단위) 30
만 입력해주면 된다.
Posted by 구차니
Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
CustomLog -
NoDaemon

<Feed feed1.ffm>
    File /tmp/feed1.ffm
    FileMaxSize 200K
    ACL allow 127.0.0.1
</Feed>

<Stream test1.mpg>
    Feed feed1.ffm
    Format mpeg
    AudioBitRate 32
    AudioChannels 1
    AudioSampleRate 44100
    VideoBitRate 64
    VideoBufferSize 40


#    VideoIntraOnly
    VideoGopSize 12
#    NoAudio
#    NoVideo
#    VideoQMin 3
#    VideoQMax 31
#    Preroll 15
#    ACL ALLOW <first address>
#    ACL DENY <first address>
</Stream>

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

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

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

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

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

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

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

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

#<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>

File 이 들어 가는건 VLC에서 트랜스코딩이 비활성화 된 스트림이라고 생각된다.





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

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

<Stream stat.html>
    Format status
    ACL allow localhost
    ACL allow 192.168.0.0 192.168.255.255
</Stream>

<Redirect index.html>
    URL http://www.ffmpeg.org/
</Redirect>
Posted by 구차니
프로그램 사용/VLC2009. 11. 24. 16:18
VLC는 ffserver로 스트리밍 하듯, 자체적으로 스트리밍 서버를 제공한다.


== 서버 ==

VLC Player의 미디어 메뉴에서 스트리밍을 클릭한다.

파일 이름은 레드썬~
추가 버튼을 눌러 파일을 추가하고
아래의 스트림 버튼을 누른다.

여기서는 그냥 다음 버튼을 눌러준다.

다음을 누르면 기본으로 파일로 출력 / H.264로 되어있으니 손을 본다.

스트리밍하면 만만한게 바로 WMV(Window Media Video)
출력은 위에서 파일 대신 HTTP 선택 후 추가를 누른다.
그리고 트랜스코딩에서 Video - WMV + WMA (ASF) 를 선택한 다음, 다음을 클릭한다.

별 다른건 없으니 그냥 스트림을 클릭한다.


== 클라이언트 ==




다른 pc에서 http://serverip:8080 으로 접속하면 스트리밍 되어 나온다.
Posted by 구차니
프로그램 사용/VLC2009. 11. 24. 15:18
VLC는 ffmpeg 의 GUI FrontEnd 인데
ffmpeg 가지고 놀다가, 문득 VLC에서 설정하면 어딘가 ffserver.conf 와 유사한 파일이 생성되지 않을까?
라는 생각이 이것저것 가지고 놀다보니, 신기한 것을 발견하게 되었다.


바로 웹 인터페이스!

가동시킨 컴퓨터의 ip와 8080 포트로 접속하면 웹에서 VLC를 원격제어 할 수 있다.
첫 페이지인 main VLC interface의 화면은 VLC 모습과 유사하다.

파일 열기를 선택하면 위와 같은 텍스트 기반의 파일 선택 창이 나오고

귀차니즘에 Browse를 누르니 목록이 뜬다.(물론 원격지의 파일이다)

두번째 페이지인 VLM interface 페이지.
VLM은 VideoLan Manager 의 약자이고, 스트리밍등의 VOD 서비스를 제어한다.
[링크 : http://wiki.videolan.org/Documentation:Streaming_HowTo/VLM]

세번째 페이지인 Mosaic wizard

1.0.3 버전의 스냅샷이지만, 0.8.6 버전에서도 지원된다.(Flash Based remote playback 제외)


2009/11/25 추가

0.8.6 버전에서는 외부에서도 접속이 가능했지만, 보안상의 문제인지 1.0.3 에서는
기본값으로 localhost 에서만 접속을 허용한다.

Access control

Access control - specific IPs or ranges of IP addresses - to the http interface can be done globally by editing "/usr/share/vlc/http/.hosts" (or "%PROGRAMFILES%\VideoLAN\VLC\http\.hosts" for Windows).

[링크 : http://wiki.videolan.org/Web_Interface]

Posted by 구차니
이번에 닥친일은 ethaddr 중 특정 부분을 추출하는 일인데
sed를 써야 하나? shell에서 해야 하나? 이래저래 테스트 하는데..

sh 에서는.. busybox의 ash 라서 그런지 $(string:n:m) 방식의 추출이 되지 않았고
유일하게 되는게 $(string#substr) 로 일치하는 스트링을 삭제하는 것 뿐이었다.
그리고 sed는 .. 라인단위로 하다 보니. 일치하는 문자만을 삭제하려니.. OTL

그런 이유로 tr이라는 녀석이 걸려 나오게 되었다.
tr은 translate or delete characters 라는데.. 도대체 r은 어디서 튀어 나온 녀석일까 ㄱ-




아무튼, uboot 에서 사용하는 예약어인 ethaddr 에서 MAC 부분을 추출하려고 하면
fw_printenv 와 쉘 그리고 tr을 조합하면 된다.

일단 fw_printenv의 값은
 ethaddr=00:00:00:00:00:00
으로 출력되고 이 값을 변수에 넣어준다.

ETH_TEMP=`fw_printenv ethaddr`
ETH_ADDR=echo ${ETH_TEMP#ethaddr=} | tr -d :

그러면 간단하게 ethaddr= 뒤의 MAC 어드레스가 : 없이 나오게 된다.


[링크 : http://k.daum.net/qna/view.html?qid=2f8nN&l_cid=Q&l_st=1] tr
[링크 : http://linux.die.net/man/1/tr] tr man page
[링크 : http://www.faqs.org/docs/abs/HTML/string-manipulation.html]  sh 에서 스트링
[링크 : http://www.ibm.com/developerworks/kr/library/l-sed1.html]      sed 사용법
Posted by 구차니
XP에서는 윈도98에서 설정하던 공유폴더의 암호 메뉴가 없습니다 네트워크 사용자를
인증하는데 사용자가 서버와 아이디만 같으면 인증이 됩니다 많이 허술하지요.

XP홈의 경우는 네트워크 사용자를 Guest로 인증하기에 Guset에 암호를 설정해줍니다
아래와같이 해주면 다음부터 사용자계정에 Guest의 암호변경 및 제거 메뉴가 생깁니다
그리고 네트워크에서 공유폴더에 접근하면 암호를 묻게 됩니다

[링크 : http://manian.paran.com/?mid=B0204004&page=8&document_srl=1081380]

흐음.. 그래도 삼바에서 기본계정 guest, 패스워드 없음으로 해도..
왜 윈도우에서 접속할때 계정/암호를 물어볼까?
Posted by 구차니






nmbd와 smbd가 사용하는 파일들은 주로
/usr/local/samba/var 와
/usr/local/samba/private에 집중되어 있다. (물론 그렇게 구조를 잡았으니 -ㅁ-)

Posted by 구차니
프로그램 사용2009. 11. 13. 17:50

open source / LGPL 기반의 프로그램이며 콘솔 기반의 windows binary를 제공한다.

Source code license

This code is "open source", and is released under the LGPL. This allows you to use these libraries (via linking) inside closed-source products. It also allows you to make closed-source binary extensions to these libraries - for instance, to support proprietary media codecs that subclass the existing "liveMedia" class hierarchy. Nonetheless, we hope that subclass extensions of these libraries will also be developed under the LGPL, and contributed for inclusion here. We encourage developers to contribute to the development and enhancement of these libraries.


The "LIVE555 Media Server" is a complete RTSP server application. It can stream several kinds of media file (which must be stored in the current working directory - i.e., the directory from which you launch the application.):
  • A MPEG Transport Stream file (with file name suffix ".ts")
  • A MPEG-1 or 2 Program Stream file (with file name suffix ".mpg")
  • A MPEG-4 Video Elementary Stream file (with file name suffix ".m4e")
  • A MPEG-1 or 2 (including layer III - i.e., 'MP3') audio file (with file name suffix ".mp3")
  • A WAV (PCM) audio file (with file name suffix ".wav")
  • An AMR audio file (with file name suffix ".amr")
  • An AAC (ADTS format) audio file (with file name suffix ".aac")

[링크 : http://live555.com/]
Posted by 구차니