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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3932427/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 07:16:48  来源:igfitidea点击:

convert .mov to .m4v with mac terminal

macosterminal

提问by Pavan

What do I need to type into the mac terminal to be able to convert my .movfiles to .m4a?

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

回答by Paul

With ffmpeg installed:

安装 ffmpeg 后:

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

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

This will perform an exact copy of both the audio and video streams into the new file.

这会将音频和视频流精确复制到新文件中。

回答by dariod

I guess I am little late in the game, but researching on the very same topic today, I found nowadays MacOS ships with avconvert:

我想我在游戏中有点晚了,但是今天研究相同的主题,我发现现在 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

回答by crdx

Have a look at ffmpeg:

看看ffmpeg:

http://ffmpeg.org/

http://ffmpeg.org/

回答by godblessstrawberry

1.get brew

1.开始酿造

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

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

2.get ffmpeg

2.获取ffmpeg

brew install ffmpeg

brew install ffmpeg

3a.convert audio only with ffmpeg

3a. 仅使用 ffmpeg 转换音频

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

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

3b.convert both video & audio with ffmpeg

3b. 使用 ffmpeg 转换视频和音频

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

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