[Libav-user] avcodec_encode_video2 usage question
Arthur Muller
muller at vki.com
Wed Sep 2 00:05:50 CEST 2015
Hi Talgorn,
I found a way to make it work but dont really know why this is the case.
The original example had emit one intra frame every frame at most, with
c->gop_size = 12.
I changed that to 1, and everything seems to work just fine.
Also, I have a bitmap image of each frame. I convert each image to YUV
format which I verify with yuvplayer. Since the change above seems to have
made it all work out, this is probably what needed to be done. But I would
appreciate it if somebody could give me a brief explanation or point me to
one.
Thanks.
Arthur Muller
Visual Kinematics, Inc.
14395 Saratoga Avenue, Suite 110
Saratoga, CA 95070
(408) 867-6285 (voice)
(408) 867-7218 (fax)
Skype: vki-arthur
<mailto:muller at vki.com> mailto:muller at vki.com
<http://www.vki.com/> http://www.vki.com
From: Libav-user [mailto:libav-user-bounces at ffmpeg.org] On Behalf Of Talgorn
François-Xavier
Sent: Tuesday, September 01, 2015 2:06 PM
To: This list is about using libavcodec, libavformat, libavutil, libavdevice
and libavfilter. <libav-user at ffmpeg.org>
Subject: Re: [Libav-user] avcodec_encode_video2 usage question
Hi,
Based on what you describe, it seems that you proceed the right way.
I understood that you encode from a set of YUV file, right ?
How do you read these images before encoding them ?
muxing.c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20150901/09765f76/attachment.html>
More information about the Libav-user
mailing list