MKV audio + AVI vide -> NEW AVI |
![]() ![]() |
MKV audio + AVI vide -> NEW AVI |
Apr 14 2012, 00:52
Post
#1
|
|
|
Group: Developer (Donating) Posts: 2332 Joined: 28-June 02 From: Argentina Member No.: 2425 |
I have two files: old.avi, and old.mkv.
I want to take the video stream from old.avi (XVID) and an audio stream from old.mk (aac) and create a new AVI file. Since I have to do it repatedly I want to use ffmpg, and I have been trying to understand the parameters, and this is the one I understand it should work: ffmpeg -i old.avi -vcodec copy -i old.mkv -acodec libmp3lame new.avi ffmpeg -i old.avi -c:v copy -i old.mkv -c:a libmp3lame new.avi But I get Unknown decoder 'copy': CODE c:\ffmpeg>ffmpeg -i old.avi -vcodec copy -i old.mkv -acodec libmp3lame new.avi ffmpeg version N-39664-g6bfb304 Copyright (c) 2000-2012 the FFmpeg developers built on Apr 9 2012 20:32:46 with gcc 4.6.3 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable -libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libope njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable- libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --e nable-zlib libavutil 51. 46.100 / 51. 46.100 libavcodec 54. 14.101 / 54. 14.101 libavformat 54. 3.100 / 54. 3.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 67.101 / 2. 67.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 10.100 / 0. 10.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg4 @ 0000000001edf8e0] Invalid and inefficient vfw-avi packed B frames detec ted Input #0, avi, from 'old.avi': Metadata: encoder : VirtualDubMod 1.5.10.1 (build 2439/release) Duration: 00:47:08.56, start: 0.000000, bitrate: 1027 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv 420p, 512x288 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 32 kb/s Unknown decoder 'copy' CODE c:\ffmpeg>ffmpeg -i old.avi -vcodec copy -i old.mkv -acodec libmp3lame new.avi sffmpeg version N-39664-g6bfb304 Copyright (c) 2000-2012 the FFmpeg developers built on Apr 9 2012 20:32:46 with gcc 4.6.3 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable -libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libope njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable- libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --e nable-zlib libavutil 51. 46.100 / 51. 46.100 libavcodec 54. 14.101 / 54. 14.101 libavformat 54. 3.100 / 54. 3.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 67.101 / 2. 67.101 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 10.100 / 0. 10.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg4 @ 000000000037f8e0] Invalid and inefficient vfw-avi packed B frames detec ted Input #0, avi, from 'old.avi': Metadata: encoder : VirtualDubMod 1.5.10.1 (build 2439/release) Duration: 00:47:08.56, start: 0.000000, bitrate: 1027 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv 420p, 512x288 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 32 kb/ Unknown decoder 'copy' Any ideas on what I'm doing wrong? This post has been edited by kwanbis: Apr 15 2012, 06:04 -------------------- MAREO: http://www.webearce.com.ar
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 11:30 |