[FFmpeg-devel] muxing-example.c - libx264

Germán Milano g.milano87 at gmail.com
Sat Dec 3 14:04:15 CET 2011


That's great!. Where could i get the new version of the muxing-example?, so
i can see what was wrong and try it.

Thanks!,
German

On Fri, Dec 2, 2011 at 8:32 PM, Michael Niedermayer <michaelni at gmx.at>wrote:

> 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
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
>


More information about the ffmpeg-devel mailing list