最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

使用 ffmpeg 生成白噪聲/粉噪聲/棕噪聲/藍噪聲等

2023-02-18 16:25 作者:窮人小水滴  | 我要投稿

# 使用 ffmpeg 生成白噪聲/粉噪聲/棕噪聲/藍噪聲/紫噪聲/絲絨噪聲 使用的 ffmpeg 版本: ``` > ffmpeg -version ffmpeg version n5.1.2 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 12.2.0 (GCC) configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-version3 --enable-vulkan libavutil???57. 28.100 / 57. 28.100 libavcodec???59. 37.100 / 59. 37.100 libavformat??59. 27.100 / 59. 27.100 libavdevice??59.?7.100 / 59.?7.100 libavfilter???8. 44.100 /?8. 44.100 libswscale???6.?7.100 /?6.?7.100 libswresample??4.?7.100 /?4.?7.100 libpostproc??56.?6.100 / 56.?6.100 ```

## 生成命令 + **白噪聲** ?``` ?ffmpeg -f lavfi -i anoisesrc=c=0 -t 2s 0.wav ?``` ?示例: ?``` ?> ffmpeg -f lavfi -i anoisesrc=c=0 -t 2s 0.wav ?ffmpeg version n5.1.2 Copyright (c) 2000-2022 the FFmpeg developers ??built with gcc 12.2.0 (GCC) ??configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-version3 --enable-vulkan ??libavutil???57. 28.100 / 57. 28.100 ??libavcodec???59. 37.100 / 59. 37.100 ??libavformat??59. 27.100 / 59. 27.100 ??libavdevice??59.?7.100 / 59.?7.100 ??libavfilter???8. 44.100 /?8. 44.100 ??libswscale???6.?7.100 /?6.?7.100 ??libswresample??4.?7.100 /?4.?7.100 ??libpostproc??56.?6.100 / 56.?6.100 ?Input #0, lavfi, from 'anoisesrc=c=0': ??Duration: N/A, start: 0.000000, bitrate: 3072 kb/s ??Stream #0:0: Audio: pcm_f64le, 48000 Hz, mono, dbl, 3072 kb/s ?Stream mapping: ??Stream #0:0 -> #0:0 (pcm_f64le (native) -> pcm_s16le (native)) ?Press [q] to stop, [?] for help ?Output #0, wav, to '0.wav': ??Metadata: ???ISFT??????: Lavf59.27.100 ??Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s16, 768 kb/s ???Metadata: ????encoder?????: Lavc59.37.100 pcm_s16le ?size=???188kB time=00:00:02.00 bitrate= 768.3kbits/s speed= 649x?? ?video:0kB audio:188kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.040625% ?``` + **粉噪聲** ?``` ?ffmpeg -f lavfi -i anoisesrc=c=1 -t 2s 1.wav ?``` + **棕噪聲** ?``` ?ffmpeg -f lavfi -i anoisesrc=c=2 -t 2s 2.wav ?``` + **藍噪聲** ?``` ?ffmpeg -f lavfi -i anoisesrc=c=3 -t 2s 3.wav ?``` + **紫噪聲** ?``` ?ffmpeg -f lavfi -i anoisesrc=c=4 -t 2s 4.wav ?``` + **絲絨噪聲** ?``` ?ffmpeg -f lavfi -i anoisesrc=c=5 -t 2s 5.wav ?``` ## 命令參數(shù)解釋 `ffmpeg -f lavfi -i anoisesrc=c=0 -t 2s 0.wav` + `ffmpeg` ?運行 ffmpeg 程序. + `-f lavfi` ?使用 libavfilter. ?這個參數(shù)是為了使用后面的 `-i anoisesrc`. + `-i anoisesrc=c=0` ?使用 `anoisesrc` 生成噪聲, 其中 `c=0` 表示噪聲類型, `0` 是白噪聲. ?修改這個參數(shù)還可以生成粉噪聲, 棕噪聲等. + `-t 2s` ?時長, 此處是 2 秒. + `0.wav` ?輸出文件名, `wav` 后綴表示使用無壓縮的聲音文件格式. ?ffmpeg 會自動根據(jù)文件名后綴選擇相應的文件格式. ## 幫助信息 ``` > ffmpeg -h filter=anoisesrc ffmpeg version n5.1.2 Copyright (c) 2000-2022 the FFmpeg developers ?built with gcc 12.2.0 (GCC) ?configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-version3 --enable-vulkan ?libavutil???57. 28.100 / 57. 28.100 ?libavcodec???59. 37.100 / 59. 37.100 ?libavformat??59. 27.100 / 59. 27.100 ?libavdevice??59.?7.100 / 59.?7.100 ?libavfilter???8. 44.100 /?8. 44.100 ?libswscale???6.?7.100 /?6.?7.100 ?libswresample??4.?7.100 /?4.?7.100 ?libpostproc??56.?6.100 / 56.?6.100 Filter anoisesrc ?Generate a noise audio signal. ??Inputs: ????none (source filter) ??Outputs: ????#0: default (audio) anoisesrc AVOptions: ??sample_rate????????..F.A...... set sample rate (from 15 to INT_MAX) (default 48000) ??r?????????????..F.A...... set sample rate (from 15 to INT_MAX) (default 48000) ??amplitude????????..F.A...... set amplitude (from 0 to 1) (default 1) ??a????????????..F.A...... set amplitude (from 0 to 1) (default 1) ??duration???????..F.A...... set duration (default 0) ??d???????????..F.A...... set duration (default 0) ??color???????????..F.A...... set noise color (from 0 to 5) (default white) ???white??????0??????..F.A...... ???pink??????1??????..F.A...... ???brown??????2??????..F.A...... ???blue??????3??????..F.A...... ???violet?????4??????..F.A...... ???velvet?????5??????..F.A...... ??colour??????????..F.A...... set noise color (from 0 to 5) (default white) ???white??????0??????..F.A...... ???pink??????1??????..F.A...... ???brown??????2??????..F.A...... ???blue??????3??????..F.A...... ???violet?????4??????..F.A...... ???velvet?????5??????..F.A...... ??c?????????????..F.A...... set noise color (from 0 to 5) (default white) ???white??????0??????..F.A...... ???pink??????1??????..F.A...... ???brown??????2??????..F.A...... ???blue??????3??????..F.A...... ???violet?????4??????..F.A...... ???velvet?????5??????..F.A...... ??seed??????????..F.A...... set random seed (from -1 to UINT32_MAX) (default -1) ??s????????????..F.A...... set random seed (from -1 to UINT32_MAX) (default -1) ??nb_samples????????..F.A...... set the number of samples per requested frame (from 1 to INT_MAX) (default 1024) ??n?????????????..F.A...... set the number of samples per requested frame (from 1 to INT_MAX) (default 1024) ``` 參考文檔: + ## LICENSE `CC BY-SA 4.0` 許可: 創(chuàng)意共享-署名-相同方式共享 2023-02-18

使用 ffmpeg 生成白噪聲/粉噪聲/棕噪聲/藍噪聲等的評論 (共 條)

分享到微博請遵守國家法律
天津市| 乌鲁木齐县| 绿春县| 临邑县| 东源县| 日喀则市| 丹棱县| 平南县| 肃宁县| 岳阳市| 隆回县| 锡林郭勒盟| 塔城市| 太保市| 新民市| 新昌县| 怀仁县| 乌兰浩特市| 腾冲县| 玉山县| 许昌县| 盐津县| 应城市| 平湖市| 大荔县| 诸暨市| 绥化市| 宁武县| 田林县| 虹口区| 崇明县| 德惠市| 新巴尔虎左旗| 蓬莱市| 潢川县| 西充县| 青龙| 和政县| 来宾市| 屯留县| 根河市|