2013年10月1日 星期二

H.264 sps/pps online parser

Input SPS/PPS in base64 encoded form, and press go.Then you can get the detail information of SPS/PPS.


Test Now
SPS:
PPS:

H.264 sps/pps parser

I write a simple javascript to parse sps/pps.

If you are interested the implementation, you can find the source code in my github.

Usage
  1. Download the html from here 
  2. Use browser to open the html
  3. Input sps and pps
  4. Press go and then the result will show in the same pages

2013年9月22日 星期日

FFMPEG -- WMA 轉換為 AAC 並存檔為 MP4

台灣地區的網路線上廣播,一般都是採用微軟的方式,其方法主要有兩個重點
  • 透過 MMS(Microsoft Media Server) 協定來傳送音樂
  • 使用 WMA(Windows Media Audio) 的格式來封裝音樂

2013年9月18日 星期三

ONVIF -- WS-Discovery spec

WS-Discovery 全名為 Web Service Dynamic Discovery

本篇將針對 WS-Discovery spec 作一整理,並介紹 ONVIF 使用 WS-Discovery 時,需做的一些變更,另外此處也介紹該如何使用 gSOAP 來進行實作。

一、WS-Discovery 定義三個角色

  • Client
  • Target Service
  • Discovery Proxy

ONVIF -- WS-Discovery implementation

Here is a guide to teach you how to implement WS-Discovery by gSOAP. You can also find sample code here.

1. Xml Schema of WS-Discovery 

Use the typemap.dat file located in "\gsoap-2.8\gsoap\wsdl\".
WS-Discovery is already defined in typemap.dat.
 1 # WS-Discovery 1.1 and 1.0
 2 
 3 wsdd = <http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01>
 4 wsdd10 = <http://schemas.xmlsoap.org/ws/2005/04/discovery>
 5 
 6 wsdd10__HelloType  = | wsdd__HelloType
 7 wsdd10__ByeType   = | wsdd__ByeType
 8 wsdd10__ProbeType  = | wsdd__ProbeType
 9 wsdd10__ProbeMatchesType = | wsdd__ProbeMatchesType
10 wsdd10__ProbeMatchType  = | wsdd__ProbeMatchType
11 wsdd10__ResolveType  = | wsdd__ResolveType
12 wsdd10__ResolveMatchesType = | wsdd__ResolveMatchesType
13 wsdd10__ResolveMatchType = | wsdd__ResolveMatchType
14 wsdd10__ScopesType  = | wsdd__ScopesType
15 wsdd10__SecurityType  = | wsdd__SecurityType
16 wsdd10__SigType   = | wsdd__SigType
17 wsdd10__AppSequenceType  = | wsdd__AppSequenceType

2013年9月11日 星期三

ONVIF -- Support Customized Event

If you want to support a customized event which not belong to ONVIF spec.
You can follow below setup to re-generate your gSoap code by gSOAP.

1. Revise WS-typemap.dat to add customized namespace
tnsMy = <http://www.avigilon.com/onvif/ver10/topics>

2013年9月3日 星期二

iOS -- Packet Tracing

當我們在 iOS Device 撰寫網路相關的 APP 時,時常需要分析網路上所傳送/接收的封包,由於 iOS 本身並沒有直接支援擷取封包的功能,因此需要使用其他方法來擷取網路封包。以下參考 developer.apple.com,整理封包擷取的方法。