Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: MKV audio + AVI vide -> NEW AVI (Read 3149 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

MKV audio + AVI vide -> NEW AVI

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: [Select]
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: [Select]
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 @ 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/
s
Unknown decoder 'copy'

Any ideas on what I'm doing wrong?