2009/7/19 Stas Oskin <[email protected]>:
> I'm trans-coding a MP4 media to H.264, and noticed that resulting files are
> of same size or larger, as the source MP4 files.
>
> It started to happen with the latest versions of FFMPEG (post 0.5), the
> previous versions produced sizes 3-2 smaller.
>
> The code does about the same as this command line - ffmpeg -i source.mp4
> -vcodec libx264 -flags +loop target.mp4 - preserving same codec settings and
> setting the loop flag.
>
> Any idea what was changed, and what should I specify to get the new reduced
> sizes?

Not sure what was changed, unless it was the default bit rate or something.

> P.S. I posted this question to FFMPEG list before, as I thought that perhaps
> there was some parameter change, and was answered that now libx264 presets
> control the encoding behavior.
>
> Question, is using presets required also when using libavcodec (and what
> code turns them on then), or the usual codec settings still apply?

It would probably be best to duplicate the preset file parsing
function from ffmpeg.c in your code and parse the appropriate preset
file.

Regards,
Rob
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to