Questions tagged [yuv]

YUV is a color space typically used as part of a color image pipeline.

784 questions
0
votes
2 answers

YUV420P to JPEG by ffmpeg

My task: Convert YUV Frame data to jpeg images by ffmpeg. What I have: Data of every plane and linesize for each one; I tried to create empty AVFrame and fill it's data and linesize with this information, but after encoding it with CODEC_ID_MJPEG…
mmmaaak
  • 803
  • 1
  • 18
  • 38
-1
votes
0 answers

Convert grayscale YUV to an image (2D matrix)

I'm trying to convert a grayscale yuv frame (from a video) to an image. So I extracted the y component, which is a 2D matrix and saved it, but the result was not the image. I guess there should be some kind of transformation in order to get the…
user3265447
  • 123
  • 2
  • 9
-1
votes
1 answer

A ffplay Error :"Failed to set value 'yuv420p' for option 'pix_fmt': Option not found"

I was trying to play a video by ffplay. Here’s my command: ffplay -f rawvideo -pix_fmt yuv420p -video_size 640x360 Resources/video.h264 but I got this error: Failed to set value 'yuv420p’ for option 'pix_fmt: Option not found So l used another…
DavisTao
  • 3
  • 2
-1
votes
1 answer

Get center pixel from image with format YUV

I made image converting from YUV(NV21 Android) to RGB And i tried get color of pixel by x,y cordinates. For example i tried get pixel from center. But i get color from wrong place. Collect image YUV ByteBuffer yBuff =…
lirugo
  • 41
  • 4
-1
votes
1 answer

In Android Camera2 API. Can I use a image reader (YUV_420_888) for processing and another(JPEG) for capture still image?

I try but preview freeze when I press the capture button and no image created. Any suggestion ? How many imagereader can I use in one Camera2 project?
-1
votes
1 answer

YUV/PCM Visualizer to measure Lip Sync

I have a two dump files of raw video and raw audio from an encoder and I want to be able to measure the "Lip-sync". Imagine a video of a hammer striking an anvil. I want to go frame by frame and see that when the hammer finally hits the anvil, there…
cjserio
  • 2,857
  • 7
  • 29
  • 29
-1
votes
1 answer

Trouble Decoding H264 Frames with FFMpeg

I'm trying to decode a H264 raw stream with FFMPeg. I've got the saved video and ran into the FFMpeg with the command: ffmpeg -i 20161201-090322.264 -pixel_format yuv420p -filter:v fps=fps=600/60 $filename%03d.raw And got the frames from the Video…
-1
votes
1 answer

Yet another YUV viewer source code?

There used to be source code for Yay (Yet another YUV viewer) that had support 4:2:2, 4:2:0 and 4:0:0 (Y-only) files. The one on Github is the much older version with only 4:2:0 support. Does anyone still have the source code for the newer release?…
guraaf
  • 163
  • 4
  • 12
-1
votes
2 answers

ffmpeg for reducing ratio and quality of YUV to any other format

I have HD 1920x1080 YUV format videos. I would like to compress them to 640x480and other convert to other format(mp4/avi..) I used the follwing command: ffmpeg -f rawvideo -pix_fmt yuv420p -s:v 1920x1080 -r 25 -i input.yuv -c:v libx264…
mrana
  • 1,008
  • 3
  • 10
  • 16
-1
votes
2 answers

Why iOS uses less RAM if we are loading jpeg image?

Recently we noticed that we can load about 50 2448 x 3264 (iphone camera size) images into UIImageViews that are on the screen and currently visible. So all 50 images are decoded. We know on iphone memory size per app is about 500 MB (RAM and VRAM…
hsafarya
  • 1,043
  • 1
  • 10
  • 21
-1
votes
1 answer

Access violation exception when reading file

I'm doing some computing on raw video YUV file. The idea is to move a 8x8 window accross the entire frame, pixel by pixel. Here's my code: while ( (frameNumber < maxFrame) && (fread_s(frame1, frameSize, 1, frameSize, file1)==…
xbilek18
  • 93
  • 1
  • 11
-1
votes
1 answer

What is FFMPEG? How can I use it for fomat conversion?

How can I use it to convert yuv files to avi files? And back. I am currenlty working on a project that needs to process a yuv video into matlab. I only know how to load an avi file by using mmreader. Is there any other way to read yuv files in…
mc8
  • 315
  • 7
  • 21
-1
votes
1 answer

why to minus 128 from u,v compent of yuv420p for converting it from yuv420p to rgb888?

i am converting my yuv420p file format to rgb888 so i took reference from http://en.wikipedia.org/wiki/YUV but code give in section "Java source code used on Android" (at last section of wiki page) their are 2 statements u = u-128; v = v-128; I…
-1
votes
1 answer

android BitmapFactory.decodeByteArray() image type?

does anybody know what pixel type does BitmapFactory.decodeByteArray() returns? basicly i'm using this snippet on the camera preview callback: YuvImage img = new YuvImage(mLastFrame, ImageFormat.NV21, mPreviewSize.width, mPreviewSize.height,…
Vlad
  • 735
  • 2
  • 10
  • 19
-2
votes
1 answer

FFmpeg decode and convert RGB sws_scale error

I have a problem with my code. I want convert YUV to RGB, but sws_scale returns 0 always and data is filled 00000000..NULL I tried googling, but I could not find any problems. Do I need AVPicture or QImage? Can anyone point out my problem? pVFrame…
Birds
  • 65
  • 2
  • 13
1 2 3
52
53