代码之家  ›  专栏  ›  技术社区  ›  Pavan

用mac终端将.mov转换为.m4v

  •  16
  • Pavan  · 技术社区  · 15 年前

    我需要在mac终端中键入什么才能转换我的 .mov 文件到 .m4a ?

    3 回复  |  直到 12 年前
        1
  •  44
  •   Paul    15 年前

    安装了ffmpeg后:

    ffmpeg -i input.mov -acodec copy -vcodec copy output.m4v

    这将执行音频和视频流到新文件中的精确副本。

        2
  •  6
  •   crdx    15 年前
        3
  •  6
  •   dariod    7 年前

    我想我在游戏中已经有点晚了,但是今天我对同一个主题进行了研究,我发现现在的MacOS与 avconvert

    AVCONVERT(1)              BSD General Commands Manual             AVCONVERT(1)
    
    NAME
         avconvert -- movie conversion tool
    
    SYNOPSIS
         avconvert [-hvq] --p <preset_name> --s <source_media> --o <output_movie>
    
    DESCRIPTION
     avconvert can be used to compress video media to different types for sharing on the
     web or loading onto devices.
    
     -h       prints usage information and available presets
    
     -v       sets the console output to verbose
    
     -q       sets the console output to quiet
    
     -prog    shows progress during the export (default with -v)
    
     -p | --preset name
              converts the source media to an output file using the specified preset. Use
              --listPresets to get the full list. Common presets are:
    
              PresetAppleM4VCellular
              PresetAppleM4ViPod
              PresetAppleM4VWiFi
              PresetAppleM4VAppleTV
              PresetAppleM4V480pSD
              PresetAppleM4V720pHD
              PresetAppleM4V1080pHD
              PresetAppleM4A
    
        4
  •  0
  •   godblessstrawberry    6 年前

    一。 喝啤酒

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    2。 获取ffmpeg

    brew install ffmpeg

    三甲。

    ffmpeg -i input.mov -acodec copy output.m4a

    3b段。 使用ffmpeg转换视频和音频

    ffmpeg -i input.mov -acodec copy -vcodec copy output.m4v