Re: [LAU] splitting video/audio and recombining

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: James Stone <jamesmstone@...>
Cc: A list for linux audio users <Linux-audio-user@...>
Date: Sunday, March 4, 2012 - 7:12 pm

On 03/04/2012 07:48 PM, James Stone wrote:

#extract audio
ffmpeg -i orig_video.wmv audio_out.wav

#replace audio
ffmpeg \
-i orig_video.wmv \
-i new_audio.wav \
-vcodec copy \
-map 0.0 -map 1.0 \
new_video.wmv

Details: The "map" may be different depending on the .wmv file.
run `ffprobe` to see which is the video-track in the .wmv file
usually this is "0.0".
Stream #0.0: Video:...
Stream #0.1: Audio: ..
and "1.0" corresponds to the 2nd input file - your new audio.

You may want to add "-acodec wmav2" and "-ar 128k" options for 128kbit/s
Windows Media Audio 2 or whatever audio-codec/quality your want. `ffmpeg
-codecs | grep "EA"` gives you a list of available codecs for Encoding
Audio.

BTW. Ardour3 with videotimeline patch can do all this for you.
import,extract,re-encode using ffmpeg.

robin
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] splitting video/audio and recombining, James Stone, (Sun Mar 4, 6:48 pm)
Re: [LAU] splitting video/audio and recombining, Robin Gareus, (Sun Mar 4, 7:12 pm)
Re: [LAU] splitting video/audio and recombining, James Stone, (Mon Mar 5, 7:18 am)
Re: [LAU] splitting video/audio and recombining, Robin Gareus, (Mon Mar 5, 8:45 am)
Re: [LAU] splitting video/audio and recombining, Brett McCoy, (Sun Mar 4, 7:00 pm)
Re: [LAU] splitting video/audio and recombining, James Stone, (Sun Mar 4, 7:06 pm)