Hi, Fellows. I noticed, that FFmpeg doesn't watch on AVFrame field interlaced_frame and without option -deinterlace never does deinterlacing, and with option -deinterlace always does deinterlacing. May be I mistaken, but it seems to me, that FFmpeg should be able to deinterlace only interlaced frames. Something like -deinterlace-if-needed option. If this makes sense, I will post patch with new option soon. What do you think? -- Mikhail Pritula
Le 27 nov. 09 ? 13:39, Mikhail Pritula a ?crit :
Hi, Fellows.
I noticed, that FFmpeg doesn't watch on AVFrame field interlaced_frame and without option -deinterlace never does deinterlacing, and with option -deinterlace always does deinterlacing.
May be I mistaken, but it seems to me, that FFmpeg should be able to deinterlace only interlaced frames.
Something like -deinterlace-if-needed option.
If this makes sense, I will post patch with new option soon.
What do you think?
(my 2 cents, I'm not an FFmpeg dev) there is a lot of buggy files on the internet, taggued as progressive but with an interlaced contents. so "-deinterlace-if-needed will tell: "no need" if "-deinterlace-if-needed" is the new behavior for "-deinterlace", some concerns could occur? if "-deinterlace-if-needed" is a new option? (I'm not an FFmpeg dev to give some advise to you) bye Herv?
On Fri, Nov 27, 2009 at 03:39:54PM +0300, Mikhail Pritula wrote:
Hi, Fellows.
I noticed, that FFmpeg doesn't watch on AVFrame field interlaced_frame and without option -deinterlace never does deinterlacing, and with option -deinterlace always does deinterlacing.
May be I mistaken, but it seems to me, that FFmpeg should be able to deinterlace only interlaced frames.
Something like -deinterlace-if-needed option.
If this makes sense, I will post patch with new option soon.
What do you think?
deinterlacing belogs in seperate (libavfilter) video filters, there you can add this option. But not in ffmpeg.c the filter stuff in there is deprecated [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Observe your enemies, for they first find out your faults. -- Antisthenes
Hi, Fellows.
I noticed, that FFmpeg doesn't watch on AVFrame field interlaced_frame and without option -deinterlace never does deinterlacing, and with option -deinterlace always does deinterlacing.
May be I mistaken, but it seems to me, that FFmpeg should be able to deinterlace only interlaced frames.
Something like -deinterlace-if-needed option.
If this makes sense, I will post patch with new option soon.
What do you think?
deinterlacing belogs in seperate (libavfilter) video filters, there you can add this option. But not in ffmpeg.c the filter stuff in there is deprecated
I got it, but I not see how pass info about every frame is it interlaced in fact. As I understood, I can pass arguments to filter, and I can operate only picture, but not frame. So, how can I pass from FFmpeg information, stored in AVFrame (especially, interlaced_frame flag) to my filter? What is correct way to do it?
On Mon, Dec 07, 2009 at 05:31:03PM +0300, Mikhail Pritula wrote:
Hi, Fellows.
I noticed, that FFmpeg doesn't watch on AVFrame field interlaced_frame and without option -deinterlace never does deinterlacing, and with option -deinterlace always does deinterlacing.
May be I mistaken, but it seems to me, that FFmpeg should be able to deinterlace only interlaced frames.
Something like -deinterlace-if-needed option.
If this makes sense, I will post patch with new option soon.
What do you think?
deinterlacing belogs in seperate (libavfilter) video filters, there you can add this option. But not in ffmpeg.c the filter stuff in there is deprecated
I got it, but I not see how pass info about every frame is it interlaced in fact. As I understood, I can pass arguments to filter, and I can operate only picture, but not frame. So, how can I pass from FFmpeg information, stored in AVFrame (especially, interlaced_frame flag) to my filter? What is correct way to do it?
you can probably add inerlaced & top_field_first flags to AVFilterPicRef [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Thouse who are best at talking, realize last or never when they are wrong.
participants (3)
-
herve.flores@free.fr -
michaelni@gmx.at -
pritula@yandex-team.ru