Saturday, March 10, 2012

FFMPEG Convert AVI to JPEG

$ ffmpeg -i input.avi -qscale 1 -qcomp 0 file-%03d.jpg


  • qscale[:stream_specifier] q (output,per-stream)’
    • Use fixed quality scale (VBR). The meaning of q is codec-dependent.
    • qscale constant quality buf variable bitrate. n = 1 for best quality, n = 31 for worst quality
  • qcomp compression
    • video quantizer scale compression (VBR) (default 0.5). Constant of ratecontrol equation. Recommended range for default rc_eq: 0.0-1.0
  • qblur blur
    • video quantizer scale blur (VBR) (range 0.0 - 1.0)
    • Previously tested with qblur option of 0 and 1, and outputs were exactly the same

3 comments:

  1. works fedora 16

    does anyone know how to call this using python subprocess.call(["ffmpeg", ???? then what?

    ReplyDelete
    Replies
    1. I used to use os.system. I have not used subprocess.call. According the documentation, the format is subprocess.call(args, *, stdin=None, stdout=None, stderr=None, shell=False)

      I will try it when I get back to FFMPEG.

      Delete
  2. wao thanks for sharing this stuff here ............ keep up the good work


    Khurram Shahzad
    Alaziz Online

    ReplyDelete