Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- thanks to Donald Feury / https://youtube.com/Dak4251
- https://www.youtube.com/watch?v=fXdaNnAe_MA
- to strip the audio
- (CMD) (-AN = mute audio) (-i input file) (-c copy for codec - copymeans use existing codec) (output file)
- ffmpeg -an -i boris_video.mp4 -c copy boris_altered_video.mp4
- you can use similar to strip video by changing "-AN" to "-VN"
- ffmpeg -vn -i boris_audio.mp4 -c copy boris_altered_audio.mp4
- then to amalgamate these two files together
- ffmpeg -i boris_altered_video.mp4 -i boris_altered_audio.mp4 -c copy boris_merged.mp4
- HOWEVER there is a better way (do it all in one go)
- ffmpeg -an -i boris_altered_video.mp4 -vn -i boris_altered_audio.mp4
- (with its so far)
- using the MAP command we will use the "1st input 0 (as computers look at 0 as being the first number) as the video input
- and the "2nd input 1 (as discussed computers are weird) as the audio input
- -map 0:v
- -map 1:a
- then the codec command
- -c copy boris_altered_speech.mp4
- togther this looks like
- ffmpeg -an -i boris_altered_video.mp4 -vn -i boris_altered_audio.mp4 -map 0:v -map 1:a -c copy boris_altered_speech.mp4
- final output https://twitter.com/CallMeDougan/status/1259792512413204480?s=20
Advertisement
Add Comment
Please, Sign In to add comment