Questions tagged [swscale]

Libswscale is a library for image/video scaling and colorspace/pixelformat conversion routines.

39 questions
0
votes
1 answer

sws_scale PAL8 to RGBA returns image that isn't clear

I'm using sws_scale to convert images and videos from every format to RGBA, using an SWSContext created thus: auto context = sws_getContext(width, height, pix_fmt, width, height, AV_PIX_FMT_RGBA, SWS_BICUBIC, nullptr,…
nihohit
  • 498
  • 3
  • 23
0
votes
1 answer

sws_scale() does not convert image simply copying it from source to target

Trying to read arbitrary video as plain RGB24 pixels so convert frame with sws_scale() this way: //... AVFrame* pic_out = av_frame_alloc(); pic_out->format = AV_PIX_FMT_RGB24; pic_out->width = 1920; pic_out->height = 1080; …
Slaus
  • 2,086
  • 4
  • 26
  • 41
0
votes
0 answers

Process GIF using FFmpeg libraries - can't find parser at av_parser_init

I am playing with ffmpeg libs, namely libswscale and libavcodec for now. My goal is resize GIF files. From my ridiculous understanding, I think I need to decode the GIF and get an AVFrame process the frame with libswscale encode again into GIF But…
natario
  • 24,954
  • 17
  • 88
  • 158
0
votes
1 answer

x264 stream color shift

I was using swscale + x264 to encode a sequence of RGB images to an h264 stream. When the RGB values in the input image (in red) are all (255, 0, 0), the YUV outputted by swscale + x264 is (81, 90, 240). By using swscale, this YUV value can be…
useprxf
  • 269
  • 1
  • 3
  • 13
0
votes
1 answer

error: swscale headers not found! Install FFmpeg or Libav

I want to compile OpenMCU.ru on my Ubuntu box, when I run ./configure command, following error appears: checking for swscale.h... no checking for libswscale/swscale.h... no checking for ffmpeg/swscale.h... no checking for libav/swscale.h...…
Reza Ghodsi
  • 120
  • 6
0
votes
1 answer

FFmpeg sws_scale on changed area

I was using sws_scale to convert a group of RGB32 images to YUV420 format. Each image is very similar to the previous one and they only differ on a rectangle region Q. My question is how to utilize Q to speed up the conversion process? An additional…
useprxf
  • 269
  • 1
  • 3
  • 13
0
votes
0 answers

FFMPEG swscale 1920x1080 UYVY422 down to odd width produces incorrect colors

I am using libswscale (from FFMPEG) to scale a 1920x1080 UYVY422 image to a size that is decided programmatically, based on what size window we are rendering to. When resizing my "canvas", I noticed that the color of the image would change back and…
Paul Knopf
  • 9,568
  • 23
  • 77
  • 142
0
votes
1 answer

How to encode the input images from camera into H.264 stream?

I'm trying to encode the input images from MacBook Pro's built-in FaceTime HD Camera into an H.264 video stream in real time using the libx264 on Mac OS X 10.9.5. Below are the steps I took: Get 1280x720 32BGRA images from camera at 15fps using…
kuu
  • 815
  • 1
  • 7
  • 16
-1
votes
1 answer

FFMPEG - AVFrame to per channel array conversion

I am looking to copy an AVFrame into an array where pixels are stored one channel at a time in a row-major order. Details: I am using FFMPEG's api to read frames from a video. I have used avcodec_decode_video2 to fetch each frame as an AVFrame as…
ahmadh
  • 1,582
  • 2
  • 18
  • 28
1 2
3