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?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 2 of 2
Thread
-
-
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
Similar Threads
-
how can i mux to mp4 from h264/aac using ffmpeg
By DKhanh in forum Video ConversionReplies: 3Last Post: 24th Aug 2013, 11:50 -
How to mux .264 and .wav files to .m2ts or .mp4 using FFmpeg????
By rallymax in forum EditingReplies: 1Last Post: 31st Oct 2011, 17:04 -
Mux mpeg2 using ffmpeg
By juhani in forum EditingReplies: 9Last Post: 30th Sep 2008, 07:24 -
Using ffmpeg to mux an arbitrary number of streams from multiple files
By punmaster in forum Video ConversionReplies: 5Last Post: 4th Aug 2008, 00:14 -
Mux a FLV AVI + MP3 -> FLV with ffmpeg or mencoder?
By Colmino in forum Video ConversionReplies: 9Last Post: 29th Mar 2008, 22:11