删除视频中的音频流
Sometimes I want to display live motion without the audio, since the audio is either bad quality or it's just extra load, which is especially important on mobile. You could probably argue converting the video to GIF is more appropriate, but GIFs can be larger and more taxing on the device. You also cannot pause or control animated GIFs.
有时我想在没有音频的情况下显示实时运动,因为音频质量不好或只是额外的负载,这在移动设备上尤其重要。 您可能会争辩说将视频转换为GIF更合适,但是GIF可能更大,并且设备负担更大。 您也无法暂停或控制动画GIF。
The better solution may be to remove the audio from a video:
更好的解决方案可能是从视频中删除音频:
./ffmpeg -i MusicVideo.webm -vcodec copy -an MusicVideoNoAudio.webm
The -an
option removes the the audio from the input file, producing a video without any audio. The sample file below went from 5.4MB
to 4.1MB
and now you don't hear the annoying wind in the background.
-an
选项从输入文件中删除音频,从而生成没有任何音频的视频。 下面的示例文件从5.4MB
到4.1MB
,现在您不会在后台听到烦人的声音。
删除视频中的音频流