标题: 转换SWF到MP4 作者: bluerust 链接: https://scz.617.cn/misc/201704281730.txt 有些在线网站提供转换SWF到MP4的服务,比如: https://convertio.co/swf-mp4/ https://convertio.co/zh/swf-converter/ 但我手头有一批陈北雁的英文学习SWF,用这些在线网站转换得到的MP4实际上只有音 频没有视频。后来bluerust找到一种方案满足了我的原始需求。 -------------------------------------------------------------------------- JPEXS Free Flash Decompiler https://www.free-decompiler.com/flash/ https://www.free-decompiler.com/flash/download/ https://www.free-decompiler.com/flash/download/ffdec_10.0.0.zip https://github.com/jindrapetrik/jpexs-decompiler/releases/download/version10.0.0/ffdec_10.0.0.zip FFmpeg https://ffmpeg.org/ https://ffmpeg.org/download.html http://ffmpeg.org/releases/ffmpeg-3.3.tar.bz2 http://ffmpeg.zeranoe.com/builds/ (Windows版) http://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-20170425-b4330a0-win64-static.zip Cannot join mp3 file and avi file with ffmpeg http://stackoverflow.com/questions/26899871/cannot-join-mp3-file-and-avi-file-with-ffmpeg -------------------------------------------------------------------------- 命令行导出视频和音频: $ java -jar ffdec.jar -format frame:avi,sound:mp3_wav -export frame,sound "x:\out" "in.swf" 也可以在GUI上操作 $ tree /f /a x:\out | +---frames | frames.avi | \---sounds 0.mp3 合并视频和音频: $ ffmpeg -i x:\out\frames\frames.avi -i x:\out\sounds\0.mp3 -map 0 -map 1:a -c copy -shortest "x:\out\out.avi" 将AVI转成MP4: $ ffmpeg -y -i "in.avi" -s 736x584 -b:v 1167k -ac 2 -r 25 -c:v mpeg4 -ar 44100 -b:a 128k -c:a aac -aspect 5:4 "out.mp4" 上述参数只适用于陈北雁这种SWF。图省事,还是用狸窝、格式工厂之类的软件吧。 格式工厂实际在调用ffmpeg。 2017-05-03 12:49 bluerust 黄生晓梦说魔影工厂可以完成转换。 我比较怀疑他说的这类软件,因为那些在线网站也能转很多SWF,但转不了我这种。 bluerust分析了一下我这种SWF,发现与普通SWF不太一样,是靠脚本播放图片完成视 频的。 但是,经bluerust实测,魔影工厂可以完成陈北雁这种SWF到MP4的转换。看似它是通 过录制输出来转换的,所以需要从头到尾播放一遍,但不失为一种万能的转换方法。