[FFmpeg-devel] [PATCH 2/2] Add sample_aspect_ratio fields to vsrc_buffer arguments. This fixes aspect handling in ffmpeg This is based on a patch by baptiste

Michael Niedermayer michaelni
Sun Feb 6 16:17:59 CET 2011


On Sun, Feb 06, 2011 at 04:03:56PM +0100, Stefano Sabatini wrote:
> On date Sunday 2011-02-06 00:26:17 +0100, Michael Niedermayer encoded:
> > On Sat, Feb 05, 2011 at 04:27:32PM +0100, Stefano Sabatini wrote:
> > > On date Friday 2011-02-04 17:11:41 -0800, Baptiste Coudurier encoded:
> > > > On 02/04/2011 12:33 AM, Stefano Sabatini wrote:
> > > > >[...]
> > > > >
> > > > >  }
> > > > >@@ -2825,6 +2835,12 @@ static void opt_frame_pix_fmt(const char *arg)
> > > > >
> > > > >  static void opt_frame_aspect_ratio(const char *arg)
> > > > >  {
> > > > >+#if CONFIG_AVFILTER
> > > > >+    av_log(NULL, AV_LOG_ERROR,
> > > > >+           "Option 'aspect' is incompatible with filters, "
> > > > >+           "use -vf together with the setdar filter instead\n");
> > > > >+    ffmpeg_exit(1);
> > > > >+#else
> > > > 
> > > > Seriously guys, can you please stop this nonsense ?
> > > > -aspect is used with stream copy as well.
> > >
> > > New tentative approach, tested with CONFIG_AVFILTER = 1, -aspect N:D
> > > -vf F, -vf F -aspect N:D, stream copy and CONFIG_AVFILTER = 0,
> > > regression test passed.
> > 
> > dont forget to test that your cases get aspects both on init time as well as
> > per frame time correct
> 
> I don't think this was never supported, so I'd rather skip it for now
> (which should be addressed by filtegraph dynamic reconfiguration).

it works in ffmpeg at videolan except for the stream copy case where one of the
2 is wrong but it was wrong before libavfilter there too according to my tests.
And yes i do test before pushing changes

If you send patches against videolan i can help you think about how to fix the
remaining issues there. But with patches against ffmpeg.org its less work for
me to fix it myself in videolan and ignore what is submitted here because you
work on a basis that is much buggier and these are bugs ive fixed already.

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110206/9fe3bdda/attachment.pgp>



More information about the ffmpeg-devel mailing list