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

Pav*_*van 18 macos terminal

我需要输入mac终端才能将我的.mov文件转换为.m4a

Pau*_*aul 43

安装了ffmpeg:

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

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

  • 最简单的方法是从命令行安装Homebrew(http://mxcl.github.com/homebrew/),执行`brew install ffmpeg` (11认同)
  • 该命令总是会导致错误。下面对我有用。`ffmpeg -I 输入.MOV 输出.mp4` (2认同)

dar*_*iod 5

我想我的游戏还不算晚,但是今天在研究相同的主题时,我发现如今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
Run Code Online (Sandbox Code Playgroud)

  • 这是使用标准 macOS 工具的正确答案。 (3认同)
  • 这个答案需要一些认真的搜索引擎优化。当我搜索“mac Native tool Convert video Formats”时,这实际上是互联网上唯一可以找到“avconvert”的地方。 (2认同)