如何將MP4格式轉換成AVI格式,謝謝
uj5u.com熱心網友回復:
WinAVI All in One Converteruj5u.com熱心網友回復:
代碼的話,可以用苦力的ffvcl,ffmpeguj5u.com熱心網友回復:
呼叫外部命令列 ffmpeg 行不?
uj5u.com熱心網友回復:
--經過驗證,失敗了,壓縮率小不了多少,而且也不能直接播放,需要h264ffmpeg -i test.mp4 -threads 4 -vcodec mpeg4 -b:v 1000k test_A1.mp4
ffmpeg -i test.mp4 -threads 8 -vcodec mpeg4 -b:v 800k test_A2.mp4
ffmpeg -i test.mp4 -threads 8 -vcodec mpeg4 -b 200k test_A3.mp4
--效果和上面A差不多,廢棄。開啟8個執行緒,壓縮碼率-crf越小清晰度越高
ffmpeg -i test.mp4 -threads 8 -crf 22 -y -vcodec mpeg4 -strict experimental test_B1.mp4
ffmpeg -i test.mp4 -threads 8 -crf 26 -y -vcodec mpeg4 -strict experimental test_B2.mp4
ffmpeg -i test.mp4 -threads 8 -crf 28 -y -vcodec mpeg4 -strict experimental test_B3.mp4
ffmpeg -i test.mp4 -threads 8 -crf 30 -y -vcodec mpeg4 -strict experimental test_B4.mp4
--壓縮生成flv,壓縮率不高,甚至壓縮完比原來的檔案還大1/3
ffmpeg -i test.mp4 -threads 8 -ab 56 -ar 22050 -r 15 -s 640x360 test_F1.flv
ffmpeg -i test.mp4 -threads 8 test_F2.flv
ffmpeg -i test.mp4 -b 300k test_F3.flv
--生成縮略圖
ffmpeg -i test.mp4 -y -f image2 -ss 8 -t 0.001 -s 320x240 test.jpg
--轉h264。-s 640*360,-moveflags faststart的把moov都前置了,就支持邊下載邊播放。
--老吳用的:ffmpeg -i test.mp4 -c:v libx264 -b 600k -r 25 -s 640*360 -ab 48k -strict -2 test_ok.mp4
ffmpeg -i test.mp4 -threads 8 -c:v libx264 -movflags faststart -b 200k -r 25 -ab 48k -strict -2 test_C1.mp4
ffmpeg -i test.mp4 -c:v libx264 -movflags faststart -b 600k -r 25 -ab 48k -strict -2 test_C2.mp4
ffmpeg -i test.mp4 -threads 2 -c:v libx264 -movflags faststart -b 600k -r 25 -ab 48k -strict -2 test_C3.mp4
--發現threads加了沒什么用,反而感覺有點慢似的
ffmpeg -i test.mp4 -c:v libx264 -movflags faststart -b 600k -r 25 -s 640*360 -ab 48k -strict -2 test_C4.mp4
ffmpeg -i C:\Users\guestAdmin\Desktop\K空檔案夾\A00000592C0B5B\20180610\IMG_20180610104643.mp4 -c:v libx264 -b 600k -r 25 -s 1280*720 -ab 48k -strict -2 test_C5.mp4
ffmpeg -i DreamItPossible.mp4 -c:v libx264 -movflags faststart -b 300k -r 25 -s 640*360 -ab 48k -strict -2 test_C5.mp4
ffmpeg -i DreamItPossible.mp4 -threads 8 -c:v libx264 -movflags faststart -b 300k -r 25 -s 320*240 -ab 48k -strict -2 test_C6.mp4
--支持邊下載邊放:
qt-faststart test_c4.mp4 test_D1.mp4
qt-faststart DreamItPossible.mp4 test_D2.mp4
-- -movflags faststart
-- http://saas.ihaihong.cn/YinShiPin/upload/FTP/862107034362822/20180615/filesIMG_20180615193440.mp4
ffmpeg -i 862107034362822\20180615\filesIMG_20180615193440-old.mp4 -c:v libx264 862107034362822\20180615\filesIMG_20180615193440-264.mp4
qt-faststart 862107034362822\20180615\filesIMG_20180615193440-264.mp4 862107034362822\20180615\filesIMG_20180615193440.mp4
ffmpeg -i test.mp4 -c:v libx264 -movflags faststart -y test_E1.mp4
--轉h264,300M的變形金剛壓縮后69M,解析度不變,碼率降下來了,太模糊
ffmpeg -i test.mp4 -c:v libx264 -movflags faststart -b 300k -y test_E2.mp4
--轉h264,解析度沒變,碼率加到600
ffmpeg -i test.mp4 -c:v libx264 -movflags faststart -b 600k -y test_E3.mp4
--轉h264,解析度縮小,碼率也縮小到300
ffmpeg -i test.mp4 -c:v libx264 -movflags faststart -b 300k -s 640x360 -y test_E4.mp4
--測驗轉執法儀
ffmpeg -i C:\Users\guestAdmin\Desktop\K空檔案夾\執法儀原生.mp4 -c:v libx264 -movflags faststart -b 300k -y test_E5.mp4
ffmpeg -i 海康.mp4 -c:v libx264 -movflags faststart -b 300k -y test_E6.mp4
--轉出來沒聲音,解決聲音問題。高版本的ffmpeg支持
ffmpeg -i hk.mp4 -c:v libx264 -movflags faststart -b 300k -y test_F2.mp4
--轉帶空格的檔案
ffmpeg.exe -i "D:\音視頻\a 1 2 345.wmv" -c:v libx264 -movflags faststart -y -b 300k "D:\音視頻\a 1 2 345.mp4"
--這個用螢屏錄像專家錄的avi,轉成mp4之后只有聲音沒有影像
ffmpeg.exe -i "xp-ip.avi" -c:v libx264 -movflags faststart -y -b 300k "xp-ip.mp4"
ffmpeg.exe -i "xp-ip.avi" -c:v libx264 -strict -2 -movflags faststart -y -b 300k "xp-ip.mp4"
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/39520.html
上一篇:求助c語言問題
下一篇:佇列實作電話簿操作
