VideoHelp Forum
+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. hi,

    i have an m2v mpeg ES video and 2 uncompressed pcm audiotracks, and i'm trying to produce a mov output by muxing them together with ffmpeg. problem is, it doesn't recognise the second audiotrack for some reason. the mov output would be vital, also, i must solve this issue without reencoding anything.

    ffmpeg produces the following output:



    root@editor:/home/thunder/_work# ffmpeg -i video/videoES.m2v -vcodec copy -i audio/s1.wav -acodec copy -i audio/s2.wav -acodec copy -f mov output.mov -newaudio
    FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    configuration: --extra-version=4:0.5.1-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
    libavutil 49.15. 0 / 49.15. 0
    libavcodec 52.20. 1 / 52.20. 1
    libavformat 52.31. 0 / 52.31. 0
    libavdevice 52. 1. 0 / 52. 1. 0
    libavfilter 0. 4. 0 / 0. 4. 0
    libswscale 0. 7. 1 / 0. 7. 1
    libpostproc 51. 2. 0 / 51. 2. 0
    built on Mar 4 2010 12:41:55, gcc: 4.4.3

    Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1)
    Input #0, mpegvideo, from 'video/videoES.m2v':
    Duration: 00:05:00.04, bitrate: 49999 kb/s
    Stream #0.0: Video: mpeg2video, yuv422p, 1920x1080 [PAR 1:1 DAR 16:9], 50000 kb/s, 25 tbr, 1200k tbn, 50 tbc
    Input #1, wav, from 'audio/s1.wav':
    Duration: 00:05:00.00, bitrate: 1536 kb/s
    Stream #1.0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    Input #2, wav, from 'audio/s2.wav':
    Duration: 00:05:00.00, bitrate: 1536 kb/s
    Stream #2.0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    Output #0, mov, to 'output.mov':
    Stream #0.0: Video: mpeg2video, yuv422p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 50000 kb/s, 90k tbn, 25 tbc
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    Stream #0.2: Audio: 0x0000, 48000 Hz, stereo, s16, 64 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #1.0 -> #0.1
    Stream #2.0 -> #0.2
    Unsupported codec for output stream #0.2
    root@editor:/home/thunder/_work#


    the first time it sees that s2.wav is a pcm audio, but the second time it fails with unsupported codec. and only for the second audiotrack, with the first it goes fine. what am i doing wrong?
    Quote Quote  
  2. well, turns out when they mean 'If you want to specify parameters, do so before "-newaudio" ' in the manual they meant RIGHT BEFORE ...

    this is the right way:

    ffmpeg -i video/videoES.m2v -vcodec copy -i audio/s1.wav -acodec copy -i audio/s2.wav -f mov output.mov -acodec copy -newaudio
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!