ppmtompeg

Encode an MPEG-1 stream. More information: <https://netpbm.sourceforge.net/doc/ppmtompeg.html>.

Install

All systems
curl cmd.cat/ppmtompeg.sh
Debian Debian
apt-get install netpbm
Ubuntu
apt-get install netpbm
Arch Arch Linux
pacman -S netpbm
image/svg+xml Kali Linux
apt-get install netpbm
CentOS
yum install netpbm-progs
Fedora
dnf install netpbm
Windows (WSL2)
sudo apt-get update sudo apt-get install netpbm
OS X
brew install netpbm
Raspbian
apt-get install netpbm

Encode an MPEG-1 stream. More information: <https://netpbm.sourceforge.net/doc/ppmtompeg.html>.

  • Produce an MPEG-1 stream using the parameter file to specify inputs and outputs:
    ppmtompeg path/to/parameter_file
  • Encode the GOP with the specified number only:
    ppmtompeg -gop gop_num path/to/parameter_file
  • Specify the first and last frame to encode:
    ppmtompeg -frames first_frame last_frame path/to/parameter_file
  • Combine multiple MPEG frames into a single MPEG-1 stream:
    ppmtompeg -combine_frames path/to/parameter_file

© tl;dr; authors and contributors