So hopefully you all can help me out with this. Currently i can encode video 
from a usb camera and write the encoded data to a file. I can read that file 
and decoded it with the libav-api and play it back with sdl.

The code i posted a couple days ago is trying to skip the saving to file part 
and do both steps in the same program. I am getting the video buffer sending it 
to the encoder and then sending the encoded data to the decoder and displaying 
it with sdl. I am getting distorted video. The image is split in half and both 
sides are the same. Each side is right image on top of left image.

What is the difference when libav reads a raw h264 file?? How can i get this to 
work?

Thanks!
Sent from my iPhone

> On Jun 8, 2016, at 08:35, Luca Barbato <[email protected]> wrote:
> 
>> On 07/06/16 21:41, Kiara Forman wrote:
>> Ok the formats both happen to be AV_PIX_FMT_YUV420P.
>> 
>> with AV_PIX_FMT_YUV420P im seeing 2 left half images purple and green 
>> 
>> with AV_PIX_FMT_NV12 and AV_PIX_FMT_NV21 im seeing 2 left half images blue 
>> and green
> 
> If avplay renders the video correctly I'm afraid there is something else
> overlooked, could you please paste the code you are using?
> 
> lu
> _______________________________________________
> libav-api mailing list
> [email protected]
> https://lists.libav.org/mailman/listinfo/libav-api
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to