Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Input takes a video, any format/fps, converts to PPM and sends to a pipe with CFR:
  2. [i] video.c: cmd= ffmpeg -loglevel quiet -i input.mp4 -pix_fmt gray -s 960x540 -vcodec rawvideo -vf vflip -f image2pipe -r 30 -vsync cfr -
  3.  
  4. Program processes frames and outputs to a pipe for encoding:
  5. [i] mp4.c: cmd= ffmpeg -loglevel quiet -re -vcodec ppm -f image2pipe -i pipe: -vcodec libx264 -pix_fmt yuv420p -r 30 -vsync cfr output.mp4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement