[FFmpeg-devel] muxing-example.c - libx264
Michael Niedermayer
michaelni at gmx.at
Fri Dec 2 23:32:10 CET 2011
On Fri, Dec 02, 2011 at 10:50:04PM +0100, Michael Niedermayer wrote:
> On Fri, Dec 02, 2011 at 09:48:30AM -0200, Germán Milano wrote:
> > Hi everyone,
> >
> > I'm using muxing-example.c to create an mp4 file using libx264. Since
> > muxing-example.c is made for MPEG, I made following changes on it:
> > http://libav-users.943685.n4.nabble.com/output-example-h264-and-mp4-td944149.html
> >
> > but still doesn't work. Is there an updated version adapted for h264???
> >
> >
> >
> > One of the problems I'm having is that everytime function
> > write_video_frame(AVFormatContext *oc, AVStream *st) is called, the
> > following line always returns a value of zero:
> >
> > out_size = avcodec_encode_video(c, video_outbuf, video_outbuf_size,
> > picture);
> >
> > Since this value is always zero, compressed video data is never stored.
>
> > Can't find what causes this issue. Any help will be appreciated.
>
> here the muxing example with test.mp4 produces a clear error message
ive fixed the example code to support libx264
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111202/1a0753c2/attachment.asc>
More information about the ffmpeg-devel
mailing list