本文介绍了FFMPEG-苹果720p30环绕MP4 H.264 AAC立体声;杜比数码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要与之匹配的FFmpeg cli设置(这是一个手刹预设)
i would like the FFmpeg cli settings which will match this (this is a handbrake preset)
这是预设文件,我不知道这些对于ffmpeg来说是什么.
Here is the presetting file, I dont understand what these would be for ffmpeg.
{
"AlignAVStart": false,
"AudioCopyMask": [
"copy:aac",
"copy:ac3",
"copy:dtshd",
"copy:dts",
"copy:mp3",
"copy:truehd",
"copy:flac",
"copy:eac3"
],
"AudioEncoderFallback": "ac3",
"AudioLanguageList": [],
"AudioList": [
{
"AudioBitrate": 160,
"AudioCompressionLevel": 0.0,
"AudioDitherMethod": null,
"AudioEncoder": "av_aac",
"AudioMixdown": "stereo",
"AudioNormalizeMixLevel": false,
"AudioSamplerate": "auto",
"AudioTrackQualityEnable": false,
"AudioTrackQuality": -1.0,
"AudioTrackGainSlider": 0.0,
"AudioTrackDRCSlider": 0.0
},
{
"AudioBitrate": 640,
"AudioCompressionLevel": 0.0,
"AudioDitherMethod": null,
"AudioEncoder": "copy:ac3",
"AudioMixdown": "none",
"AudioNormalizeMixLevel": false,
"AudioSamplerate": "auto",
"AudioTrackQualityEnable": false,
"AudioTrackQuality": -1.0,
"AudioTrackGainSlider": 0.0,
"AudioTrackDRCSlider": 0.0
}
],
"AudioSecondaryEncoderMode": true,
"AudioTrackSelectionBehavior": "first",
"ChapterMarkers": true,
"ChildrenArray": [],
"Default": false,
"FileFormat": "av_mp4",
"Folder": false,
"FolderOpen": false,
"Mp4HttpOptimize": false,
"Mp4iPodCompatible": false,
"PictureAutoCrop": true,
"PictureBottomCrop": 0,
"PictureLeftCrop": 0,
"PictureRightCrop": 0,
"PictureTopCrop": 0,
"PictureDARWidth": 0,
"PictureDeblockPreset": "off",
"PictureDeblockTune": "medium",
"PictureDeblockCustom": "strength=strong:thresh=20:blocksize=8",
"PictureDeinterlaceFilter": "decomb",
"PictureCombDetectPreset": "default",
"PictureCombDetectCustom": "",
"PictureDeinterlacePreset": "default",
"PictureDeinterlaceCustom": "",
"PictureDenoiseCustom": "",
"PictureDenoiseFilter": "off",
"PictureDenoisePreset": "light",
"PictureDenoiseTune": "none",
"PictureSharpenCustom": "",
"PictureSharpenFilter": "off",
"PictureSharpenPreset": "medium",
"PictureSharpenTune": "none",
"PictureDetelecine": "off",
"PictureDetelecineCustom": "",
"PictureItuPAR": false,
"PictureKeepRatio": true,
"PictureLooseCrop": false,
"PictureModulus": 2,
"PicturePAR": "auto",
"PicturePARWidth": 0,
"PicturePARHeight": 0,
"PictureRotate": null,
"PictureWidth": 1280,
"PictureHeight": 720,
"PictureForceHeight": 0,
"PictureForceWidth": 0,
"PresetDescription": "H.264 video (up to 720p30), AAC stereo audio, and Dolby Digital (AC-3) surround audio, in an MP4 container. Compatible with Apple iPhone 4, 4S, and later; iPod touch 4th, 5th Generation and later; iPad 1st Generation, iPad 2, and later; Apple TV 2nd Generation and later.",
"PresetName": "Apple 720p30 Surround",
"Type": 0,
"UsesPictureFilters": true,
"UsesPictureSettings": 1,
"SubtitleAddCC": false,
"SubtitleAddForeignAudioSearch": true,
"SubtitleAddForeignAudioSubtitle": false,
"SubtitleBurnBehavior": "foreign",
"SubtitleBurnBDSub": false,
"SubtitleBurnDVDSub": false,
"SubtitleLanguageList": [],
"SubtitleTrackSelectionBehavior": "none",
"VideoAvgBitrate": 3000,
"VideoColorMatrixCode": 0,
"VideoEncoder": "x264",
"VideoFramerate": "30",
"VideoFramerateMode": "pfr",
"VideoGrayScale": false,
"VideoScaler": "swscale",
"VideoPreset": "medium",
"VideoTune": "",
"VideoProfile": "high",
"VideoLevel": "3.1",
"VideoOptionExtra": "",
"VideoQualityType": 2,
"VideoQualitySlider": 21.0,
"VideoQSVDecode": false,
"VideoQSVAsyncDepth": 4,
"VideoTwoPass": true,
"VideoTurboTwoPass": false,
"x264Option": null,
"x264UseAdvancedOptions": false
},
推荐答案
ffmpeg -i input.mp4 -c:v libx264 -crf 21 -preset medium -vf scale=-2:720 -r 30 -c:a aac -ac 2 output.mp4
-c:v libx264 | 选择视频编码器 libx264 输出H.264视频 |
-crf 21 | 选择质量 |
-预设媒体 | 选择x264编码预设 |
-vf scale = -2:720 | 使用缩放过滤器将视频设置为720px高,自动缩放宽度以匹配长宽比 |
-r 30 | 将帧频设置为30 fps |
-c:aac | 选择音频编码器 aac 输出AAC音频 |
-ac 2 | 输出立体声音频 |
-c:v libx264 | selects video encoder libx264 to output H.264 video |
-crf 21 | chooses quality |
-preset medium | chooses x264 encoding preset |
-vf scale=-2:720 | uses scale filter to make video 720px high, autoscale width to match aspect |
-r 30 | sets frame rate to 30 fps |
-c:a aac | selects audio encoder aac to output AAC audio |
-ac 2 | output stereo audio |
更多信息:
这篇关于FFMPEG-苹果720p30环绕MP4 H.264 AAC立体声;杜比数码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!