Home ffmpeg - cli
Post
Cancel

ffmpeg - cli

ffmpeg命令录制音频

  • mp3转换为wav格式
1
ffmpeg a.mp3 -i a.wav
  • 查看设备
1
ffmpeg | ffplay | ffprobe -devices
1
ffmpeg | ffplay | ffprobe -list_devices true -f avfoundation -i dummy
  • 获取帮助

    1
    2
    
    ffmpeg | ffplay | ffprobe -h [long | full]
    ffmpeg | ffplay | ffprobe -h type=name
    
    1
    
    ffmpeg -h demuxer=avfoundation -i dummy
    
  • 录制音频

    Mac

    1
    
    ffmpeg -f avfoundation -i :0 output.wav
    

    Windows

    1
    
    ffmpeg -f dshow -i audio="" output.wav
    
This post is licensed under CC BY 4.0 by the author.