首页 > 代码库 > office文档、图片、音/视频格式转换工具

office文档、图片、音/视频格式转换工具

 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文档、图片、音/视频格式转换工具