1. 程式人生 > >office文檔、圖片、音/視頻格式轉換工具

office文檔、圖片、音/視頻格式轉換工具

ria 變量 ora lis window emoji 格式轉換 ffi stand

1、音頻/視屏轉換工具VLC
  • https://wiki.videolan.org/Mp3/#Container_formats 技術分享
  • http://wenku.baidu.com/view/ba73ac5c804d2b160b4ec05a.html?re=view
  • https://wiki.videolan.org/How_to_Batch_Encode/
  • https://wiki.videolan.org/Transcode/

VLC supported video format to MP4 (H.264)

In MacOS

$ vlc -I dummy -q i.flv --sout=#transcode{vcodec=h264, acodec=mp4a, aenc=ffmpeg{strict=-2}}:std{access=file, mux=mp4,dst=o.mp4}
vlc://quit

In Windows

vlc -I dummy -q -vvv a.avi --sout=#transcode{vcodec=h264,acodec=mp4a,aenc=ffmpeg{strict=-2}}:standard{access=file,mux=mp4,dst=b.mp4} vlc://quit

VLC supported audio format to MP3

In MacOS

$ vlc -I dummy -q i.wav --sout=#transcode{acodec=mp3}:std{access=file,mux=raw,dst=o.mp3}
vlc://quit

In Windows

vlc -I dummy -q -vvv a.wav --sout=#transcode{acodec=mp3}:standard{access=file,mux=raw,dst=b.mp3} vlc://quit

2、
文檔轉換:OfficeToPDF
  • http://officetopdf.codeplex.com/documentation
officetopdf.exe %1 %2 /bookmarks /readonly /print /markup /pdfa

3、圖片轉換:ImageMagick
  • http://www.imagemagick.org/script/convert.php
convert -auto-orient input.jpg output.png

PS:VLC和OfficeToPDF須要配置環境變量PATH。代碼都寫到bat文件裏,然後再C#程序中直接調用。

office文檔、圖片、音/視頻格式轉換工具