#
1.??? [8??? ?]?.
2.??? [??? ??] ???.
3.??? [??] ??
4.???? [??]?.
5.?? [???? ????] ???.
1.必須睡8個小時
2.適當飲食
3.做適合自己的勞動
4.天天散步
5.年輕的心態(tài)
目前有很多視頻剪輯合并工具,其功能很強大.但是用起來很麻煩,一段一段需要手動處理.為了彌補這個弊端利用
批處理文件完成全自動剪輯和合并的功能.效率灰常高哈哈 通過配置文件輸入剪輯時間使用起來更加方便
__________________________________________________________
Conversion_Batch.bat 從 _Periods.ini 中讀取剪輯信息和時間
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
setlocal enabledelayedexpansion
echo @echo off>zCmd_tmp.bat
set /a count=0
rem Directory or file name contains an ! exclamation point problem
for /f "eol=# delims=" %%i in (_Periods.ini) do (
set /a count=!count!+1
if !count! EQU 1 (set ifn="%%i")
if !count! EQU 2 (set ofn=%%i)
if !count! EQU 3 (set extn=%%i
set mCmd=call Lib_Conversion !ifn! !ofn! !extn!)
if !count! GEQ 4 (
set /a newindex=!count!-3
if !newindex! LEQ 9 (set index=0!newindex!) else (set index=!newindex!)
set _time=%%i
rem echo !mCmd! !_time:~0,12! !_time:~13,12! !index!
echo !mCmd! !_time:~0,12! !_time:~13,12! !index!>>zCmd_tmp.bat ))
setlocal disabledelayedexpansion
call zCmd_tmp.bat
del zCmd_tmp.bat
__________________________________________________________________________
計算總時間 Lib_CalculateTotalTime.bat 01:02:03.400 04:03:10.510 [display]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo off
set start_pos_tmp=%1
set end_pos_tmp=%2
if "%start_pos_tmp:~1,1%"==":" set "start_pos_tmp=0%start_pos_tmp%"
if "%end_pos_tmp:~1,1%"==":" set "end_pos_tmp=0%end_pos_tmp%"
set hour=%start_pos_tmp:~0,2%
set min=%start_pos_tmp:~3,2%
set sec=%start_pos_tmp:~6,2%
set msec=%start_pos_tmp:~9,3%
rem --------for skip 08 09---------------
if %hour:~0,1%==0 set hour=%hour:~1,1%
if %min:~0,1%==0 set min=%min:~1,1%
if %sec:~0,1%==0 set sec=%sec:~1,1%
if %msec:~0,1%==0 set msec=%msec:~1,2%
if %msec:~0,1%==0 set msec=%msec:~1,1%
set /a hour=%hour%
set /a min=%min%
set /a sec=%sec%
set /a msec=%msec%
set /a start_millsec=%hour%*60*60+%min%*60+%sec%
set /a start_millsec=%start_millsec%*1000+%msec%
set ehour=%end_pos_tmp:~0,2%
set emin=%end_pos_tmp:~3,2%
set esec=%end_pos_tmp:~6,2%
set emsec=%end_pos_tmp:~9,3%
rem --------for skip 08 09---------------
if %ehour:~0,1%==0 set ehour=%ehour:~1,1%
if %emin:~0,1%==0 set emin=%emin:~1,1%
if %esec:~0,1%==0 set esec=%esec:~1,1%
if %emsec:~0,1%==0 set emsec=%emsec:~1,2%
if %emsec:~0,1%==0 set emsec=%emsec:~1,1%
set /a ehour=%ehour%
set /a emin=%emin%
set /a esec=%esec%
set /a emsec=%emsec%
set /a end_millsec=%ehour%*60*60+%emin%*60+%esec%
set /a end_millsec=%end_millsec%*1000+%emsec%
set /a total_time_millsec=%end_millsec%-%start_millsec%
rem echo %hour% %min% %sec% %msec%
rem echo %ehour% %emin% %esec% %emsec%
rem echo %start_millsec% %end_millsec% %total_time_millsec%
set /a tsec=%total_time_millsec%/1000
set /a tmsec=%total_time_millsec%-%tsec%*1000
set /a tmin=%tsec%/60
set /a tsec=%tsec%-%tmin%*60
set /a thour=%tmin%/60
set /a tmin=%tmin%-%thour%*60
if %thour% LEQ 9 (set thour=0%thour%)
if %tmin% LEQ 9 (set tmin=0%tmin%)
if %tsec% LEQ 9 (set tsec=0%tsec%)
if %tmsec% LEQ 9 (set tmsec=00%tmsec%) else (if %tmsec% LEQ 99 (set tmsec=0%tmsec%))
set total_time=%thour%:%tmin%:%tsec%.%tmsec%
if "%3"=="display" (echo [%start_pos_tmp% - %end_pos_tmp%] = %total_time%)
_______________________
轉(zhuǎn)換 Lib_Conversion.bat
~~~~~~~~~~~~~~~~~~~~~~~
@echo off
set h=%time:~0,2%
if "%h:~0,1%"==" " set "h=0%h:~1%"
set m=%time:~3,2%
set s=%time:~6,2%
set hms=%h%%m%%s%
rem ------------------------------input parameters-----------------------------
set inFile=%1
set outFile=%2_%hms%_%6.%3
set start_pos=%4
set end_pos=%5
rem set video_bit_rate=-b:v 1500k
rem set audio_bit_rate=-b:a 64k
rem set frame_size=-s 720x404
rem set aspect=-aspect 16:9
set logFileName=%2_conversion.log
rem for copy
set video_codec=-c:v copy
set audio_codec=-c:a copy
rem for H264
rem set video_codec=-c:v libx264
rem set audio_codec=-c:a libvo_aacenc
rem for mpeg4 xvid
rem set video_codec=-c:v mpeg4
rem set fourcc_tag_out=-tag:v XVID
rem set audio_codec=-c:a libmp3lame
rem set inFile="D:\TDDOWNLOAD\01.mp4"
rem set outFile="%hms%.avi"
rem set start_pos=00:40:10.000
rem set end_pos=00:40:11.000
rem ------------------------------calctime-------------------------------------
if "%end_pos%" NEQ "" (call Lib_CalculateTotalTime %start_pos% %end_pos% display)
if "%total_time%" NEQ "" (set total_time=-t %total_time%)
if "%start_pos%" NEQ "" (set start_pos=-ss %start_pos%)
rem ------------------------------make cmd-------------------------------------
set cmd=ffmpeg
set cmd=%cmd% %start_pos%
set cmd=%cmd% -y -i %inFile% %total_time%
set cmd=%cmd% %audio_codec% %audio_bit_rate%
set cmd=%cmd% %video_codec% %fourcc_tag_out% %video_bit_rate%
rem set cmd=%cmd% -g 12 -bf 2 -qcomp 0.2 -dc 10 -mbd 2 %frame_size% %aspect%
set cmd=%cmd% %frame_size% %aspect%
set cmd=%cmd% %outFile%
rem ------------------------------run cmd--------------------------------------
set begin_time=%date:~0,10% %time:~0,11%
@echo on
%cmd%
@echo off
set end_time=%date:~0,10% %time%
rem ------------------------------write to log---------------------------------
echo ---%date:~0,10% %time:~0,11%---------------------------------------------->>%logFileName%
echo %cmd%>>%logFileName%
echo.>>%logFileName%
echo inFile = %inFile%>>%logFileName%
echo outFile = %outFile%>>%logFileName%
if "%video_bit_rate%" NEQ "" (echo Video bit rate = %video_bit_rate:~5,10%>>%logFileName%)
if "%audio_bit_rate%" NEQ "" (echo Audio bit rate = %audio_bit_rate:~5,10%>>%logFileName%)
echo.>>%logFileName%
echo start_pos = %start_pos:~4,12%>>%logFileName%
echo end_pos = %end_pos%>>%logFileName%
echo total_time = %total_time:~3,12%>>%logFileName%
echo.>>%logFileName%
echo begin time = %begin_time%>>%logFileName%
echo end time = %end_time%>>%logFileName%
rem ------------------------------put message----------------------------------
echo -------The end of the conversion------------------------------------------
rem echo inFile = %inFile%
rem echo outFile = %outFile%
if "%video_bit_rate%" NEQ "" (echo video bit rate = [v:%video_bit_rate:~5,10%] [a:%audio_bit_rate:~5,10%])
echo video time = [%start_pos:~4,12% - %end_pos%] = %total_time:~3,12%
call Lib_CalculateTotalTime %begin_time:~11,11% %end_time:~11,11%
echo conversion time = [%begin_time:~11,11% - %end_time:~11,11% ] = %total_time:~0,12%
echo --------------------------------------------------------------------------
__________________
合并 Lib_Joins.bat
~~~~~~~~~~~~~~~~~~
@echo off
setlocal enabledelayedexpansion
dir *.avi/b/w/n/on>all_avi_name.txt
set aaf=mencoder
for /f %%i in (all_avi_name.txt) do (set aaf=!aaf! "%%i")
set aaf=!aaf! -oac copy -ovc copy -o join.avi
rem set aaf=!aaf! -oac pcm -ovc copy -o join.avi
echo %aaf%>>join.log
set begin_time=%date:~0,10% %time:~0,11%
%aaf%
set end_time=%date:~0,10% %time%
echo ------------ All video join are completed ------------
call Lib_CalculateTotalTime %begin_time:~11,11% %end_time:~11,11%
echo join time = [%begin_time:~11,11% - %end_time:~11,11%] = %total_time:~0,12%
echo ------------------------------------------------------
下載批處理
libavutil 51. 70.100
libavcodec 54. 54.100
libavformat 54. 25.104
libavdevice 54. 2.100
libavfilter 3. 13.101
libswscale 2. 1.101
libswresample 0. 15.100
libpostproc 52. 0.100
rem -c:v libx264 視頻解碼器
rem libvpx copy libxvid mpeg4 mpeg2video rawvideo
rem -b:v 2000k 視頻比特率 x264固定解碼率是正確 其他的都不正確
rem -c:a libmp3lame 音頻解碼器
rem -b:a 128k 音頻比特率
rem -q:v 1 固定視頻量化標度(VBR) 0.1-31 1高 31最差 這時-b:v無效 以前是 -qscale n格式
rem mpeg4時 0.1=4335k 1=3835k 2=3403k 3=2186k 4=1678k 5=1336k 6=1158k 7=1003k 31=286k
rem -qmin 1 最小視頻量化標度(VBR)
rem -qmax 1 最大視頻量化標度(VBR)
rem -qcomp 1.0 視頻量化標度壓縮(VBR) 0.0-1.0
rem -sameq 同樣視頻質(zhì)量 此時 -b:v -qscale 無效
rem -ss 00:20:00.000 轉(zhuǎn)換開始時間 不能在 -i 后面
rem -t 00:01:10.000 轉(zhuǎn)換總時間
rem -vframes 600 轉(zhuǎn)換振幅總數(shù)
rem -s 720x404 轉(zhuǎn)換分辨路
rem -aspect 16:9 設(shè)置橫縱比
rem -g gop_size 設(shè)置圖像組大小
rem -bf frames 使用frames B 幀,支持mpeg1,mpeg2,mpeg4
rem -qcomp compression 視頻量化標度壓縮(VBR)
rem -dc 設(shè)置dct的算法
rem -mbd 2 宏塊決策算法(高質(zhì)量模式) 0=mbcmp (default) 1=fewest bits 2=best rate distortion
rem 轉(zhuǎn)換某時間段
rem ffmpeg -y -ss 00:20:00.000 -i in_xxx.wmv -t 00:00:03.000 -c:a libmp3lame -b:a 128k -c:v mpeg4 -sameq -g 12 -bf 2 -qcomp 0.2 -dc 10 -mbd 2 -aspect 16:9 -f avi -s 720x404 out_xxx.avi
rem 全部轉(zhuǎn)換
rem ffmpeg -y -i in_xxx.wmv -c:a libmp3lame -b:a 128k -c:v mpeg4 -sameq -g 12 -bf 2 -qcomp 0.2 -dc 10 -mbd 2 -aspect 16:9 -f avi -s 720x404 out_xxx.avi
視頻合并
mencoder 001 002 003 -oac copy -ovc copy -o jion.avi
獲取攝像頭
ffmpeg -y -f vfwcap -i 0 -c:v mpeg4 -q:v 1 -qmin 1 -s 640x480 -r 24 -g 12 -bf 2 -qcomp 0.2 -dc 10 -mbd 2 -aspect 4:3 -f avi cap.avi
1.安裝wine
[xxx@localhost ~]$sudo yum install wine
You need to install cabextract first!
yum install wine cabextract
升級linux+wine中安裝IE
http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
在ies4linux-2.99.0.1/lib/install.sh 中修改corefonts下載地址
http://cdnetworks-kr-1.dl.sourceforge.net/project/corefonts/the%20fonts/final/andale32.exe
for font in $COREFONTS; do
#download "http://internap.dl.sourceforge.net/sourceforge/corefonts/$font"
download "http://cdnetworks-kr-1.dl.sourceforge.net/project/corefonts/the%20fonts/final/$font"
done
在install.sh 426行左右
subsection $MSG_CREATING_PREFIX
set_wine_prefix "$BASEDIR/ie1/"
wineprefixcreate &> /dev/null
clean_tmp
改為:
subsection $MSG_CREATING_PREFIX
set_wine_prefix "$BASEDIR/ie1/"
winepath &> /dev/null
clean_tmp
在functions.sh 242行左右
function create_wine_prefix {
if which wineprefixcreate &> /dev/null; then
( wineprefixcreate 2>&1 ) | debugPipe
else
error $MSG_ERROR_NO_WINEPREFIXCREATE
fi
}
改為:
function create_wine_prefix {
if which winepath &> /dev/null; then
( winepath 2>&1 ) | debugPipe
else
error $MSG_ERROR_NO_WINEPREFIXCREATE
fi
}
./ies4linux --no-gui --beta-install-ie7 --locale CN --install-corefonts
2.下載rar+迅雷deb版 for Linux 5.5 綠色版
http://dl-sh-ctc-2.pchome.net/0p/jh/rarlinux-4.2.0.tar.gz
解壓到一個目錄 運行 make install
http://dx.cr173.com//soft1/wine_thunder.rar 其他版本都運行不正常
Thunder.tar.gz 解壓到 /home/xxx/.wine/drive_c/Program Files/Thunder
3.配置wine中文環(huán)境
/home/xxx/.wine/drive_c/windows 下創(chuàng)建chinese_env.reg文件
文件內(nèi)容是
REGEDIT4
[KEY_LOCAL_MACHINE\\Software\\Microsoft\\Window NT\\CurrentVersion\FontSubstitutes]
"MS Shell Dlg"="SimSun.ttc,SimSun"
"MS Shell Dlg 2"="SimSun.ttc,SimSun"
SimSun.ttc字體文件拷貝到/home/xxx/.wine/drive_c/windows/Fonts
然后
[xxx@localhost ~]$cd /home/xxx/.wine/drive_c/windows
[xxx@localhost ~]$wine regedit.exe
在regedit菜單中選導(dǎo)入chinese_env.reg,退出wine.
[xxx@localhost ~]$export LANG=zh_CN.UTF-8
4.開始運行程序
[xxx@localhost ~]$wine filename 就可以運行中文界面的程序 這樣可以運行大部分程序
5.運行迅雷5出現(xiàn)問題,比如暫停死機、暫停下載重新下載時從零開始下載的問題時,如下操作就可以
首先把迅雷5程序拷貝到/xxx/.ies4linux/ie6/drive_c/Program Files/下面
[xxx@localhost ~]$ie6
運行ie6,然后在打開菜單中選擇迅雷5就可以運行,暫停死機的問題就解決了。
備注:ie6 運行比較正常,為了加快速度啟動把主頁改成about:blank,下次啟動ie6時比較快
這個版本的ie7有些問題,有些功能都沒有,Internet選項功能沒有,如何修改主頁呢?
文件->打開->regedit.exe 主頁修改成 about:blank
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Start Page
環(huán)境:Win系統(tǒng)
用liveusb-creator-3.11.7工具把Fedora-17-x86_64-Live-Desktop.iso文件寫入U盤安裝成功.
用liveusb-creator-3.11.7工具Fedora-17-i386-DVD.iso文件寫入U盤,進行安裝時寫分區(qū)信息時出現(xiàn)如下錯誤提示
An unhandled exception has occurred.This is most likely a bug.
Pleas save a copy of the detailed exception and file a bug report.
Live-Desktop只是應(yīng)用平臺,沒有開發(fā)平臺.
解決方法:
當然最簡單的是刻錄DVD就可以,沒有DVD光驅(qū)這么辦呢?
環(huán)境:Fedora系統(tǒng)
df -h #查看U盤的設(shè)備名稱 通常是 /dev/sdb1
umount U盤掛載目錄 #如 /run/media/xxx/xxx 制作安裝盤時不能掛載
su -c yum install livecd-tools
su -c livecd-iso-to-disk path_to/Fedora-17-i386-DVD.iso /dev/sdb1
備注:liveusb-creator-3.11.7工具有缺陷,只能用livecd-iso-to-disk命令,得出這個結(jié)果讓我浪費了好多時間

STEP1.下載MinGW-full-20101119.7z 2010-11-19 63.6MB 解壓到C:/MinGW下
http://sourceforge.net/projects/mplayer-ww/files/MinGW-full/
STEP2.下載源碼
https://gitorious.org/mplayer-ww
下載的部分
A.patch for mplayer ww
B.x264 support pictiming in pmp files.
C.mplayer-ww
D.ffmpeg-ww
---------------------------------------
E.F.是VS2010編寫的配置可視化程序可以忽略
E.meditor2 - Configure file editor for mplayer ww
F.dshownative - Direct Show Native Wrapper for mplayer
備注:git下載方法 Source tree -> Commint log -> Download master as tar.gz
STEP3.進行編譯
A.下載的4個包都解壓到/MinGW/home/
B.把mplayer-ww-mpatch的所有文件覆蓋到mplayer-ww-mplayer-ww目錄下
C.編譯mplayer-ww-x264-pmp,該目錄下的automk.sh自動編譯
D.編譯mplayer-ww-ffmpeg-ww,該目錄下的automk.sh自動編譯[編譯時間較長]
E.編譯mplayer-ww-mplayer-ww,該目錄下的automk.sh自動編譯
STEP4.運行測試
A.ffmpeg-ww\bin\*.dll 拷貝到mplayer-ww-mplayer-ww/release/
B.下載MPlayer-ww運行程序,最新Revision 35130 2012-08-31
http://sourceforge.net/projects/mplayer-ww/files/MPlayer_Release/
安裝目錄下的[*.ini meditor2.exe meditor.exe skin]拷貝到mplayer-ww-mplayer-ww/release/
運行mplayer.exe
安裝VS2010之前安裝了VS6,這是環(huán)境變量是
include=C:\Program Files\Microsoft Visual Studio\VC98\atl\include;C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include
lib=C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib
MSDevDir=C:\Program Files\Microsoft Visual Studio\Common\MSDev98
Path=C:\Program Files\Real\RealProducer Plus 11;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files\T58KTV\9158VirtualCamera\Package\bpl;C:\Program Files\T58KTV\9158VirtualCamera\bin;C:\Program Files\9158VirtualCamera\bin;C:\QtSDK\Desktop\Qt\4.8.1\mingw\bin;C:\Program Files\svn-win32-1.6.6\bin;C:\Program Files\GTK2-Runtime\bin;C:\Program Files\TortoiseGit\bin;c:\mingw\bin;C:\MinGW\bin;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\DownLoads\doxygen\bin;D:\DownLoads\Graphviz 2.28\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin
安裝VS2010后,創(chuàng)建MFC工程,編譯就出現(xiàn)
afxglobals.h(375): error C2143錯誤
這是因為include和lib目錄有缺陷。
VS2010->Property Pages->VC++ Directories->Debug[Release]->
Microsoft.Cpp.Win32.user->Include and Library設(shè)置正確的路徑。
VS2010之前的VC++ Directories目錄是全局共享的。VS2010后VC++ Directories是每個工程單獨設(shè)置,沒有全局共享模式。
特別提示:默認VC++ Directories雖然沒有設(shè)置全局的界面,但是通過
Microsoft.Cpp.Win32.user->這個操作可以修改默認的VC++ Directories設(shè)置。
修改方法
STEP1.修改環(huán)境
VS2010默認安裝中Microsoft SDKsv7.0A,#include "SDKDDKVer.h"這個就在SDK中,配置時一定要SDK的目錄。
C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat這個批處理是自動配置VS2010的環(huán)境變量
DevEnvDir=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\
INCLUDE=C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE;C:\Program Files\Microsoft Visual Studio 10.0\VC\ATLMFC\INCLUDE;C:\Program Files\Microsoft SDKs\Windows\v7.0A\include;
LIB=C:\Program Files\Microsoft Visual Studio 10.0\VC\LIB;C:\Program Files\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB;C:\Program Files\Microsoft SDKs\Windows\v7.0A\lib;
LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\Program Files\Microsoft Visual Studio 10.0\VC\LIB;C:\Program Files\Microsoft Visual Studio 10.0\VC\ATLMFC\LIB;
WindowsSdkDir=C:\Program Files\Microsoft SDKs\Windows\v7.0A\
VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 10.0\
Path=C:\Program Files\Microsoft F#\v4.0\;C:\Program Files\Microsoft Visual Studio 10.0\VSTSDB\Deploy;C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\Program Files\Microsoft Visual Studio 10.0\VC\VCPackages;C:\Program Files\HTML Help Workshop;C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Performance Tools;C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools;C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin;
SETP2.修改VC++ Directories
在創(chuàng)建的工程中,Property Pages->VC++ Directories->
Microsoft.Cpp.Win32.user->Include中增加$(include) Library中增加$(lib);$(libpath)
這樣配置完成了,這樣VS6.VS2005.VS2010可以一起使用。
如果覺得修改環(huán)境變量麻煩,就在VC++ Directories中正確的配置絕對路徑也可以。
MPlayer源代碼從SVN還是GIT下載的代碼,在MinGW+WIN下編譯不會出現(xiàn)圖形界面。折騰好久發(fā)現(xiàn)如下調(diào)整就可以。
./configure ... 之后修改 config.h config.mak
config.h
#undef CONFIG_GTK2
#define CONFIG_GUI 1
config.mak
EXTRALIBS_MPLAYER = -Wl,--enable-auto-import -lopengl32 -lgdi32 -lwinmm -lgdi32
-lcomctl32
GUI =
yes
GUI_GTK =
GUI_WIN32 =
yes
編譯之后還要skin文件 ./mplayer/skins/目錄下面 下載地址 http://www.mplayerhq.hu
然后運行mplayer.exe -gui 這樣圖形界面出來后,可以運行g(shù)mplayer.exe可以不帶參數(shù)。
LLVM 與 Clang 介紹
LLVM 是 Low Level Virtual Machine 的簡稱,這個庫提供了與編譯器相關(guān)的支持,能夠進行程序語言的編譯期優(yōu)化、鏈接優(yōu)化、在線編譯優(yōu)化、代碼生成。
Clang 是一個 C++ 編寫、基于 LLVM、發(fā)布于 LLVM BSD 許可證下的 C/C++/Objective C/Objective C++ 編譯器,其目標(之一)就是超越 GCC。
Clang 的特性
快 內(nèi)存占用小 診斷信息可讀性強 GCC 兼容性 設(shè)計清晰簡單,容易理解,易于擴展增強 基于庫的模塊化設(shè)計
官方主頁 http://llvm.org/
LLVM 3.1 Release Notes http://llvm.org/releases/3.1/docs/ReleaseNotes.html
Clang 3.1 Release Notes http://llvm.org/releases/3.1/docs/ClangReleaseNotes.html
下載地址 http://llvm.org/releases/download.html
Experimental Clang Binaries for Mingw32/x86 (69M)下載地址
http://llvm.org/releases/3.1/clang+llvm-3.1-i386-mingw32-EXPERIMENTAL.tar.bz2
若感興趣的可以下載源代碼自己重新編譯,不過需要很長時間
./configure --prefix=/mingw --enable-optimized --disable-assertions
make
make install
測試寫個hello.c
#include "stdio.h"
int main(){
printf("Hello Clang!!");
return 0;}
clang -v hello.c

可以編輯到一個振幅的非常優(yōu)秀的工具
Avidemux is a free video editor designed for simple cutting, filtering and encoding tasks. It supports many file types, including AVI, DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated using projects, job queue and powerful scripting capabilities.
Avidemux is available for Linux, BSD, Mac OS X and Microsoft Windows under the GNU GPL license. The program was written from scratch by Mean, but code from other people and projects has been used as well. Patches, translations and even bug reports are always welcome.
http://www.avidemux.org/
http://avidemux.razorbyte.com.au/#download
http://sourceforge.net/projects/avidemux-mswin/
http://sourceforge.net/projects/avidemux-mswin/files/