[FFmpeg-user] Fw: Mixing wav audio and mp4 video

Moritz Barsnick barsnick at gmx.net
Mon Feb 3 17:34:05 CET 2014


On Fri, Jan 31, 2014 at 06:44:04 -0800, Zack Thevenot wrote:
> Here is the full output log file

And that's why it's so important to include this! Because your
description of the issue may just not suffice.

Summary of your log:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\FFRProjects\proj1\Camera2\temp_video.mp4':
    Stream #0:0(eng), 6, 1/48000: Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
    Stream #0:1(eng), 1, 1/60: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 5891 kb/s, 29.92 fps, 30 tbr, 60 tbn, 60 tbc (default)
Input #1, wav, from 'E:\FFRProjects\proj1\Camera2\temp_audio.wav':
    Stream #1:0, 22, 1/8000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono, s16, 128 kb/s

Output #0, mp4, to 'E:\FFRProjects\proj1\Camera2\Cam2_01-31-2014_08-41-37.mp4':
    Stream #0:0(eng), 0, 1/90000: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 127 kb/s (default)
    Stream #0:1, 0, 1/90000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input

Take not of the input and output streams. Your MP4 file is not
audio-less, and you're trying to mix AAC and PCM into one MP4 file,
instead of H.264 and PCM.

That may not even be the issue (see Carl Eugen's answers), but it won't
achieve what you're trying to do. :-)

Moritz


More information about the ffmpeg-user mailing list