原创 tutorial05.c 和tutorial06.c

tutorial05 是要把音頻可以同步到視頻,也爲下一步快進,快退做準備。  因爲是音頻所以不是簡單的delay,需要進行音頻緩衝的管理,synchronize_audio 返回的是一個同步好的緩衝區。   tutorial06.c 是

原创 Vertasent infrastructure code------ Windows platform migrate

1. Code base is Windows The code originally could be compile and build in Microsoft Visual Studio 7.0 2. Compile and b

原创 使用CodeBlocks和MSys搭建FFMPEG調試系統

SVN下載最新的代碼 安裝Msys對代碼進行編譯,編譯參數configuration: --disable-optimizations --disable-ipv6 --enable-shared --disabl e-static -

原创 Conversation with senior CTO leader ------- George.

1. Loss product but now market 2. Learn from your experience 3. Seperate stream and content 4. Big company has complica

原创 ffserver 拆解

1.配置文件: <Stream test1-sdp.mpg>Format rtp#Feed feed1.ffmFile "/home/teddy_linux/1.avi"MulticastAddress 224.124.0.1#Multi

原创 Java NIO 實踐經驗總結

總的來講,java NIO 就是一個調用select的無限循環。如果,有消息接受或者發送或者連接關閉或者打開,select都會返回這個事件。但是,在寫selector循環,要注意以下幾個事情 1.發送事件是因爲一個packet過大,一次沒

原创 More effective C++ List

 最近正在讀者本書,感覺受益匪淺。在這裏把標題列出來,一目瞭然。其實,每一條包含很多內容。值得長考。 3. 基礎議題.............................................................

原创 ArcGIS 和TopMap的聯合開發

一、整體流程。 1. Web界面        |       // 2.  Extjs        |       // 3. Java method call (with parame

原创 值得注意的算法問題,“兩次減法操作”竟然比“一次2倍乘法和一次加法”要慢一秒

  今天玩topcoder, 發現“兩次減法操作”竟然比“一次2倍乘法和一次加法”要慢一秒。下面是例程。     package practice; import java.util.Calendar; public class Gues

原创 Tutorial 04 和 Tutorial05的實踐

Tutorial 04: Spawning Threads   沒什麼大問題,就是新建了一個數據VideoState數據結構,然後生成兩個新的Thread分別, 把音視頻從文件取出,和一個專門視頻解碼的線程。用SDL的一個自動刷新功能

原创 如何讓一個系統崩潰

1. 改動它的系統時間。 2. 改動它的密碼。   看看他的系統強壯性,這兩個問題對一般的軟件。簡直就是災難

原创 FFMpeg tutorial01 --- tutorial03 小結

FFMpeg的嚮導對於學習FFMpeg有很大的幫助,出處:   原始:http://www.dranger.com/ffmpeg/tutorial01.html 翻譯:http://home.chinavideo.org/space.ph

原创 LanMsg 代碼分析

UsersOpt.cs 介紹: readyLogin() 入口 private void DataArrival(byte[] Data, System.Net.IPAddress Ip, int Port) 這是收到消息的處理函數,裏面

原创 How to check health of Linux OS

I learned some experience while Nanjing found 0x03 error. At begining, we don't know why our GSRM(a linux process) hang

原创 C++讀書歷程

C++讀書歷程: 最近,在看一本Modern C++ Design Generic Programming and Design Patterns Applied的書。但是,感覺越來越看不下去了。這時候感覺到我對C++的一無所知。還是,從