Re: [FFmpeg-devel] [PATCH] libkvazaar: add support for interlaced coding

2016-01-29 Thread Ari Koivula
On Fri, Jan 29, 2016 at 1:33 PM, Hendrik Leppkes wrote: > You could of course pack both field-pictures into the same AVPacket, > but that doesn't yield you proper timestamps for the second, and will > probably also screw up a bunch of other things later on. > Packing both pictures into the same

Re: [FFmpeg-devel] [PATCH] libkvazaar: add support for interlaced coding

2016-01-29 Thread Hendrik Leppkes
On Thu, Jan 28, 2016 at 10:17 PM, Ari Koivula wrote: > I'm not quite sure if I'm going about this interlacing thing correctly, so > I figured I should send in a patch and ask. > > Is AV_CODEC_FLAG_INTERLACED_DCT the correct flag to look at? There is also > AV_CODEC_FLAG_INTERLACED_ME, but libx264

Re: [FFmpeg-devel] [PATCH] libkvazaar: add support for interlaced coding

2016-01-29 Thread Ari Koivula
On Thu, Jan 28, 2016 at 11:49 PM, Carl Eugen Hoyos wrote: > Ari Koivula koivu.la> writes: > > > Tell libkvazaar to use field coding when -flags +ildct > > is detected, resulting in two pictures being output for > > every frame instead of one. > > Is this really how it should be done? And is this

Re: [FFmpeg-devel] [PATCH] libkvazaar: add support for interlaced coding

2016-01-28 Thread Carl Eugen Hoyos
Ari Koivula koivu.la> writes: > Tell libkvazaar to use field coding when -flags +ildct > is detected, resulting in two pictures being output for > every frame instead of one. Is this really how it should be done? And is this useful? Imo, decoding should be fixed first, but that absolutely ma

Re: [FFmpeg-devel] [PATCH] libkvazaar: add support for interlaced coding

2016-01-28 Thread Ari Koivula
I'm not quite sure if I'm going about this interlacing thing correctly, so I figured I should send in a patch and ask. Is AV_CODEC_FLAG_INTERLACED_DCT the correct flag to look at? There is also AV_CODEC_FLAG_INTERLACED_ME, but libx264 uses only DCT. Is outputting more than one picture per frame o

[FFmpeg-devel] [PATCH] libkvazaar: add support for interlaced coding

2016-01-28 Thread Ari Koivula
Tell libkvazaar to use field coding when -flags +ildct is detected, resulting in two pictures being output for every frame instead of one. Signed-off-by: Ari Koivula --- configure | 2 +- libavcodec/libkvazaar.c | 12 2 files changed, 13 insertions(+), 1 deletion(-)