Skip to content

Lossless conversion from an image to a video #2322

@Phuc-Hong-Tran

Description

@Phuc-Hong-Tran

I'm trying to convert an image to a video using the following settings:

  recorder.videoCodec = avcodec.AV_CODEC_ID_FFV1
  recorder.pixelFormat = AV_PIX_FMT_RGB24;
  recorder.videoCodecName = "libx264rgb";
  recorder.videoQuality = 0.0;
  recorder.format = "avi"
  recorder.frameRate = 1.0
  recorder.videoBitrate = 2000000

The result came out is blurry and have different colours compare to the original image. The original image is a JPEG with RGB colour format, its size is about 67KB. May anyone suggest why this is the case? Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions