[Libav-user] My attempt to transcode is writing only a single stream of a two streams output format

Leandro Moreira leandro.ribeiro.moreira at gmail.com
Sun Dec 10 14:15:20 EET 2017


I called encode_frame at each decode too
https://github.com/leandromoreira/ffmpeg-libav-tutorial/blob/transcoding/2_transcoding.c#L213


I just used malloc for my own structures
https://github.com/leandromoreira/ffmpeg-libav-tutorial/blob/transcoding/2_transcoding.c#L32
but I'll change it

I pushed some changes on my machine, it shouldn't break though. Now, the
only warning message I'm having are:

[libx264 @ 0x7f8044000c00] MB rate (489600000) > level limit (2073600)
[mp4 @ 0x7f8043829000] track 1: codec frame size is not set
[libx264 @ 0x7f8044000c00] forced frame type (5) at 4 was changed to frame
type (3)

And sure, my final file doesn't play on VLC although I can listen to the
audio.

Thanks

On Sun, Dec 10, 2017 at 9:59 AM Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> 2017-12-10 12:51 GMT+01:00 JULIAN GARDNER <joolzg at btinternet.com>:
> > There are a few problems with the code.
> >
> > 1. Use calloc not malloc initialising your structures
>
> I would have expected that the API requires you to
> use av_*alloc* - does it not?
>
> Please avoid top-posting here, Carl Eugen
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20171210/175297af/attachment.html>


More information about the Libav-user mailing list