bytedeco/javacv

Lossless conversion from an image to a video

Open

#2322 aperta il 8 mar 2025

Vedi su GitHub
 (13 commenti) (0 reazioni) (0 assegnatari)Java (1583 fork)batch import
help wantedquestion

Metriche repository

Star
 (6985 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor