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