<p><br>
On Mar 4, 2012 7:12 PM, &quot;Robin Gareus&quot; &lt;<a href="mailto:robin@gareus.org">robin@gareus.org</a>&gt; wrote:<br>
&gt;<br>
&gt; On 03/04/2012 07:48 PM, James Stone wrote:<br>
&gt; &gt; Hi List,<br>
&gt; &gt;<br>
&gt; &gt; I have a video which needs a bit of eq&#39;ing on the audio side. Can<br>
&gt; &gt; anyone point me in the direction of how to split the file into audio<br>
&gt; &gt; and video so I can apply some treatment to the audio, and then combine<br>
&gt; &gt; them back together again? The video is wmv at the moment, but mplayer<br>
&gt; &gt; doesn&#39;t seem to have any problem with it.<br>
&gt; &gt;<br>
&gt;<br>
&gt; #extract audio<br>
&gt; ffmpeg -i orig_video.wmv audio_out.wav<br>
&gt;<br>
&gt; #replace audio<br>
&gt; ffmpeg \<br>
&gt;  -i orig_video.wmv \<br>
&gt;  -i new_audio.wav \<br>
&gt;  -vcodec copy \<br>
&gt;  -map 0.0 -map 1.0 \<br>
&gt;  new_video.wmv<br>
&gt;<br>
&gt;<br>
&gt; Details:  The &quot;map&quot; may be different depending on the .wmv file.<br>
&gt; run `ffprobe` to see which is the video-track in the .wmv file<br>
&gt; usually this is &quot;0.0&quot;.<br>
&gt;    Stream #0.0: Video:...<br>
&gt;    Stream #0.1: Audio: ..<br>
&gt; and &quot;1.0&quot; corresponds to the 2nd input file - your new audio.<br>
&gt;<br>
&gt; You may want to add &quot;-acodec wmav2&quot; and &quot;-ar 128k&quot; options for 128kbit/s<br>
&gt; Windows Media Audio 2 or whatever audio-codec/quality your want. `ffmpeg<br>
&gt; -codecs | grep &quot;EA&quot;` gives you a list of available codecs for Encoding<br>
&gt; Audio.<br>
&gt;</p>
<p>Thanks. It is 0:0 and 0:1 and -b:a=192k I found, but I have some sync problems after recombining tho. Any other ideas?<br><br><br></p>
<p>&gt; BTW. Ardour3 with videotimeline patch can do all this for you.<br>
&gt; import,extract,re-encode using ffmpeg.<br>
&gt;<br>
&gt; robin<br>
</p>