1
hyq 2013-02-01 23:05:16 +08:00 2
用命令行的ffmpeg可以合并
1. 用ffmpeg -i <文件名>查看所需音频和视频在文件中的流id 2. ffmpeg -i <音频文件> -i <视频文件> -c copy -map 0:<音频流在文件中的id> -map 1:<视频文件在流中的id> <合并后的文件> 如果lz找不到其他办法,可以试试这个 |
2
chemhack 2013-02-01 23:15:40 +08:00
把视频播放器静音,再开一个播放器放音轨。数3 2 1 同时按开始
|
4
supersheep OP @hyq
➜ ~ ffmpeg -i ~/Movies/Cloud.Atlas.2012.BluRay.720p.AC3.x264-CHD.mkv ffmpeg version 1.1.1-tessus Copyright (c) 2000-2013 the FFmpeg developers built on Jan 20 2013 23:17:33 with llvm-gcc 4.2.1 (LLVM build 2336.1.00) configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --disable-ffserver --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype --enable-libass --enable-filters --enable-runtime-cpudetect libavutil 52. 13.100 / 52. 13.100 libavcodec 54. 86.100 / 54. 86.100 libavformat 54. 59.106 / 54. 59.106 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 32.100 / 3. 32.100 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, matroska,webm, from '/Users/spud/Movies/Cloud.Atlas.2012.BluRay.720p.AC3.x264-CHD.mkv': Metadata: creation_time : 2012-12-19 01:36:13 Duration: 02:52:07.33, start: 0.000000, bitrate: 6747 kb/s Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x544, SAR 1:1 DAR 40:17, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 384 kb/s (default) (forced) At least one output file must be specified 这里面哪里有stream id啊?@@ |
5
supersheep OP 喔喔,试出来了,多谢多谢。理解了之后就觉得似乎很容易了=v=
|
6
alexrezit 2013-02-02 15:44:33 +08:00
@supersheep
-i 是指 input 不是 info 啊亲... - - |
7
supersheep OP @alexrezit 嗯,help了一下发现了= = 现在已经搞好了嘿嘿,多谢指教
|