原创 ieda11的代碼生成快捷鍵

Idea是我最喜歡用的java開發工具之一,平常喜歡用一些代碼快捷鍵,分享一下。 打開idea,點setting--> Live Templates即可。 如果你想寫一個if 某一個對象是否爲null 可以輸入ifn 然後按tab鍵 會

原创 Nginx添加proxy_cache模塊

爲Nginx添加proxy_cache模塊,對視頻進行緩存 Nginx是高性能的HTTP服務器,通過Proxy Cache可以使其對視頻進行緩存。 其原理就是把視頻按照一定的規則存在本地硬盤,並且會在內存中緩存常用的資源,從而加快視

原创 ffmpeg基本用法

FFmpeg FFmpeg 基本用法 本課要解決的問題 1.FFmpeg的轉碼流程是什麼? 2.常見的視頻格式包含哪些內容嗎? 3.如何把這些內容從視頻文件中抽取出來? 4.如何從一種格式轉換爲另一種格式? 5.如何放大和縮小視頻? 6

原创 用yamdi和ffmpeg把mp4文件轉換爲flv 並且加上metadata信息

#/bin/sh #################################################################### # Mp4 file convert to flv. # $1 source f

原创 java IntelliJ IDEA 13 註冊碼 IDEA序列號 License Key

java IntelliJ IDEA 13 註冊碼 IDEA序列號 License Key   Username: [email protected] License: 282971-M1NWC-FP97E-MHFRO-

原创 用Eclipse搭建VLC SDK開發環境

最近研究FFmpeg,看到用FFmpeg寫的VLC播放器很牛X,我打算學習一下,網上找了很多的資料發現都是在VS IDE基礎上開發的,本人對VS IDE不感冒,因爲一直從事java開發,對eclipse還是很有偏愛的,打算用eclips

原创 jquery easyui三級聯動

直接上代碼: //省市區三級聯動 var $province = $('#userAttrArea'); var $city = $('#userAttrCity'); var $County = $('#use

原创 Executors的Thread table can't grow past 16383 threads異常

在使用executors併發編程時候需要注意,如果出現Thread table can't grow past 16383 threads異常,詳情如下: [WARN ] Thread table can't grow past 163

原创 Springmvc3 攔截器excludeUrlPattern

在用springmvc3時經常會碰到登錄攔截這種需求,最新想到的辦法是用攔截器,但在用攔截器時想讓某些靜態文件和某些url不需要攔截,實現如下: spring-servlet.xml: <mvc:resources mapping="/

原创 tomcat memory leak

  tomcat memory leak   Mar 18, 2010 11:13:07 PM org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: s

原创 運行mplayer時候出錯shared libraries: /usr/lib/libmpg123.so.0: cannot restore segment p

在linux下運行mplyer是出錯: [root@localhost MPlayer-1.1]# mencoder mencoder: error while loading shared libraries: /usr/lib/li

原创 SpringMvc3中@RequestParam獲取GET請求參數亂碼

RT,解決辦法修改tomcat6/conf/server.xml中的  Connector ,新增“URIEncoding="UTF-8"”即可 如下:  <Connector port="8080" prot

原创 ffmpeg點滴

ffmpeg: missing argument for option 'vf' ref: http://stackoverflow.com/questions/13271099/unrecognized-option-vf-in-ff

原创 ffmpeg截圖

ffmpeg按楨截圖: ffmpeg -ss 10 -i input.flv -y -f image2 -vframes 100 -s 352x240 b-%03d.jpg    參數解釋: -i  輸入文件 -y  覆蓋 -f  生

原创 linux安裝ffmpeg/mencoder/mplayer

前提:必須已經安裝過yum 1.yum install ffmpeg ffmpeg-devel 如果找不到包,請把下面的內容加入到/etc/yum.repos.d/rhel-debuginfo.repo 文件中   [dag] name