Making H.264 less blocky

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Making H.264 less blocky

SyRenity
Hi.

Any way to make the H.264 video less blocked?

I read about several commands that control libx264 (-flags +loop), any
idea how to apply them on the code level?

Regards.
_______________________________________________
libav-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user
Reply | Threaded
Open this post in threaded view
|

Re: Making H.264 less blocky

Stefano Sabatini
On date Thursday 2008-07-24 17:51:47 +0300, Stas Oskin wrote:
> Hi.
>
> Any way to make the H.264 video less blocked?
>
> I read about several commands that control libx264 (-flags +loop), any
> idea how to apply them on the code level?

Hi, basically you have two interfaces:

1) directly setting the context before to perform avcodec_open(),
e.g. with:
ctx->flags |= CODEC_FLAG_LOOP_FILTER;

2) use the av_set_* interface (check libavcodec/opt.[ch]) before to
perform avcodec_open(), e.g. with:
av_set_string(ctx, "flags", "+loop", 1);

Also check the libavcodec/utils.c file for all the possible options
you can set.

HTH, regards.
_______________________________________________
libav-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user
Reply | Threaded
Open this post in threaded view
|

Re: Making H.264 less blocky

SyRenity
> Hi, basically you have two interfaces:
>
>  1) directly setting the context before to perform avcodec_open(),
>  e.g. with:
>  ctx->flags |= CODEC_FLAG_LOOP_FILTER;
>
>  2) use the av_set_* interface (check libavcodec/opt.[ch]) before to
>  perform avcodec_open(), e.g. with:
>  av_set_string(ctx, "flags", "+loop", 1);
>
>  Also check the libavcodec/utils.c file for all the possible options
>  you can set.

Thanks, will try it out.
_______________________________________________
libav-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user
Reply | Threaded
Open this post in threaded view
|

Re: Making H.264 less blocky

SyRenity
Hi.

> > Hi, basically you have two interfaces:
>  >
>  >  1) directly setting the context before to perform avcodec_open(),
>  >  e.g. with:
>  >  ctx->flags |= CODEC_FLAG_LOOP_FILTER;
>  >
>  >  2) use the av_set_* interface (check libavcodec/opt.[ch]) before to
>  >  perform avcodec_open(), e.g. with:
>  >  av_set_string(ctx, "flags", "+loop", 1);
>  >
>  >  Also check the libavcodec/utils.c file for all the possible options
>  >  you can set.

Thanks, this works for H.264 - does it much nice looking.

1) Any idea how to apply the same filter to older MPEG4?
2) Is it possible to reduce the required CPU load for this filter?

Thanks again.
_______________________________________________
libav-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user