user17792: I just want to know if it's possible to encode audio & video at the
 same time by FFmpeg
-c:a libfaac  for  audio
 &
 x264.exe for video.
and any example! 

user1871: To pipe to x264 and encode to AAC file in the same command, use
ffmpeg -i in.mp4 -map v -f yuv4mpegpipe - -map a -c:a libfaac v.aac | x264 --demuxer y4m --crf 18 --output "v.mp4" -

Then you can mux it via
mp4box -add v.mp4 -add v.aac -new va.mp4


17792: <p>I just want to know if it's possible to encode audio &amp; video at the
 same time by FFmpeg</p>

<p>-c:a libfaac  for  audio
 &amp;
 x264.exe for video.</p>

<p>and any example! </p>
 1871: <p>To pipe to x264 and encode to AAC file in the same command, use</p>

<pre><code>ffmpeg -i in.mp4 -map v -f yuv4mpegpipe - -map a -c:a libfaac v.aac | x264 --demuxer y4m --crf 18 --output "v.mp4" -
</code></pre>

<p>Then you can mux it via</p>

<pre><code>mp4box -add v.mp4 -add v.aac -new va.mp4
</code></pre>
