markdown FFmpeg的
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown FFmpeg的相关的知识,希望对你有一定的参考价值。
## Convert
### To HAP Alpha
`ffmpeg -i in.mp4 -vcodec hap -format hap_alpha out.mov`
### To HEVC (x265) GPU
`ffmpeg -hwaccel cuvid -i in.mkv -c:v hevc_nvenc -preset slow -b:v 8M -maxrate:v 8.5M -pix_fmt yuv420p out.mkv`
<br><br>
## Extract
### Aiff from H264
`ffmpeg -i in.mp4 out.aiff`
<br><br>
## Probe
`ffprobe -i in.mkv -show_format -hide_banner`
<br><br>
## Other
### Concat SRT
`ffmpeg -i "concat:in-0.srt|in-1.srt" -c copy out.srt`
### Mapping (Convert Video, copy Audio and Subtitles)
`ffmpeg -i in.mkv -map 0:0 -map 0:2 -map 0:30 -c:v hap -format hap_alpha -c:a copy -c:s copy out.mkv`
### Remove Chapters
`-map_chapters -1`
### Trim without encoding
`-ss 00:00:00 -t 00:00:03`
1st timecode: start time / 2nd timecode;
### 'too many packets buffered for output' bug
`-max_muxing_queue_size 1024`
<br><br>
## Examples
### To HEVC with chapter selection and max muxing
`ffmpeg -hwaccel cuvid -i in.mkv -max_muxing_queue_size 1024 -map 0:0 -map 0:30 -map 0:31 -c:v hevc_nvenc -preset slow -b:v 8M -maxrate:v 8.5M -pix_fmt yuv420p -c:a copy -c:s copy -map_chapters -1 out.x265-Hubris.mkv`
### Trim without encoding
`ffmpeg -i in.mov -ss 00:00:00 -t 00:00:03 -async 1 -c copy out.mov`
以上是关于markdown FFmpeg的的主要内容,如果未能解决你的问题,请参考以下文章
markdown FFmpeg的
markdown FFmpeg的
markdown 命令使用ffmpeg查找和转换
markdown 使用xargs生成多个ffmpeg进程
markdown FFMPEG Comandos
markdown ffmpeg.md