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
officetopdf.exe
%1 %2 /bookmarks /readonly /print /markup /pdfa
3、图片转换:ImageMagick
convert
-auto-orient input.jpg output.png
PS:VLC和OfficeToPDF须要配置环境变量PATH。代码都写到bat文件里,然后再C#程序中直接调用。