Files
tldr/pages.zh/common/ppmtompeg.md

20 lines
565 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ppmtompeg
> 编码一个 MPEG-1 流。
> 更多信息:<https://netpbm.sourceforge.net/doc/ppmtompeg.html>。
- 使用参数文件指定输入和输出,生成一个 MPEG-1 流:
`ppmtompeg {{路径/到/参数文件}}`
- 仅编码指定数量的 GOP
`ppmtompeg -gop {{gop_num}} {{路径/到/参数文件}}`
- 指定要编码的第一帧和最后一帧:
`ppmtompeg -frames {{first_frame}} {{last_frame}} {{路径/到/参数文件}}`
- 将多个 MPEG 帧合并为一个单一的 MPEG-1 流:
`ppmtompeg -combine_frames {{路径/到/参数文件}}`