Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-05-05 Thread James Almer
On 5/5/2018 5:33 AM, wm4 wrote: > On Fri, 4 May 2018 21:51:38 -0300 > James Almer wrote: > >> On 5/4/2018 9:19 PM, Michael Niedermayer wrote: >>> On Fri, May 04, 2018 at 02:02:02PM -0300, James Almer wrote: On 5/4/2018 1:51 PM, wm4 wrote: > On Fri, 4 May 2018 13:30:38 -0300 > Jam

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-05-05 Thread Paul B Mahol
On 5/5/18, wm4 wrote: > On Fri, 4 May 2018 21:51:38 -0300 > James Almer wrote: > >> On 5/4/2018 9:19 PM, Michael Niedermayer wrote: >> > On Fri, May 04, 2018 at 02:02:02PM -0300, James Almer wrote: >> >> On 5/4/2018 1:51 PM, wm4 wrote: >> >>> On Fri, 4 May 2018 13:30:38 -0300 >> >>> James Almer

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-05-05 Thread wm4
On Fri, 4 May 2018 21:51:38 -0300 James Almer wrote: > On 5/4/2018 9:19 PM, Michael Niedermayer wrote: > > On Fri, May 04, 2018 at 02:02:02PM -0300, James Almer wrote: > >> On 5/4/2018 1:51 PM, wm4 wrote: > >>> On Fri, 4 May 2018 13:30:38 -0300 > >>> James Almer wrote: > >>> > On 5/4/

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-05-04 Thread Michael Niedermayer
On Fri, May 04, 2018 at 09:51:38PM -0300, James Almer wrote: > On 5/4/2018 9:19 PM, Michael Niedermayer wrote: > > On Fri, May 04, 2018 at 02:02:02PM -0300, James Almer wrote: > >> On 5/4/2018 1:51 PM, wm4 wrote: > >>> On Fri, 4 May 2018 13:30:38 -0300 > >>> James Almer wrote: > >>> > On 5/4/

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-05-04 Thread James Almer
On 5/4/2018 9:19 PM, Michael Niedermayer wrote: > On Fri, May 04, 2018 at 02:02:02PM -0300, James Almer wrote: >> On 5/4/2018 1:51 PM, wm4 wrote: >>> On Fri, 4 May 2018 13:30:38 -0300 >>> James Almer wrote: >>> On 5/4/2018 12:58 PM, wm4 wrote: > On Sat, 28 Apr 2018 19:05:29 +0200 > wm

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-05-04 Thread Michael Niedermayer
On Fri, May 04, 2018 at 02:02:02PM -0300, James Almer wrote: > On 5/4/2018 1:51 PM, wm4 wrote: > > On Fri, 4 May 2018 13:30:38 -0300 > > James Almer wrote: > > > >> On 5/4/2018 12:58 PM, wm4 wrote: > >>> On Sat, 28 Apr 2018 19:05:29 +0200 > >>> wm4 wrote: > >>> > This can "demux" .vpy fi

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-05-04 Thread James Almer
On 5/4/2018 1:51 PM, wm4 wrote: > On Fri, 4 May 2018 13:30:38 -0300 > James Almer wrote: > >> On 5/4/2018 12:58 PM, wm4 wrote: >>> On Sat, 28 Apr 2018 19:05:29 +0200 >>> wm4 wrote: >>> This can "demux" .vpy files. Some minor code copied from other LGPL parts of FFmpeg. >>>

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-05-04 Thread wm4
On Fri, 4 May 2018 13:30:38 -0300 James Almer wrote: > On 5/4/2018 12:58 PM, wm4 wrote: > > On Sat, 28 Apr 2018 19:05:29 +0200 > > wm4 wrote: > > > >> This can "demux" .vpy files. > >> > >> Some minor code copied from other LGPL parts of FFmpeg. > >> > >> I did not found a good way to test a

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-05-04 Thread James Almer
On 5/4/2018 12:58 PM, wm4 wrote: > On Sat, 28 Apr 2018 19:05:29 +0200 > wm4 wrote: > >> This can "demux" .vpy files. >> >> Some minor code copied from other LGPL parts of FFmpeg. >> >> I did not found a good way to test a few of the more obscure features, >> like VFR nodes, compat pixel formats,

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-05-04 Thread Gyan Doshi
On 5/4/2018 9:28 PM, wm4 wrote: --- configure | 5 + libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/vapoursynth.c | 421 ++ 4 files changed, 428 insertions(+) create mode 100644 libavformat

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-05-04 Thread wm4
On Sat, 28 Apr 2018 19:05:29 +0200 wm4 wrote: > This can "demux" .vpy files. > > Some minor code copied from other LGPL parts of FFmpeg. > > I did not found a good way to test a few of the more obscure features, > like VFR nodes, compat pixel formats, or nodes with dynamic size/format > changes

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-04-29 Thread James Almer
On 4/28/2018 2:05 PM, wm4 wrote: > This can "demux" .vpy files. > > Some minor code copied from other LGPL parts of FFmpeg. > > I did not found a good way to test a few of the more obscure features, > like VFR nodes, compat pixel formats, or nodes with dynamic size/format > changes. These can be

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-04-28 Thread James Almer
On 4/28/2018 3:38 PM, wm4 wrote: > On Sat, 28 Apr 2018 15:28:13 -0300 > James Almer wrote: > >> On 4/28/2018 2:05 PM, wm4 wrote: >>> This can "demux" .vpy files. >>> > > >>> +pkt->data = pkt->buf->data; >>> +pkt->size = pkt->buf->size; >>> +pkt->flags |= AV_PKT_FLAG_TRUSTED; >>>

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-04-28 Thread wm4
On Sat, 28 Apr 2018 15:28:13 -0300 James Almer wrote: > On 4/28/2018 2:05 PM, wm4 wrote: > > This can "demux" .vpy files. > > > > +pkt->data = pkt->buf->data; > > +pkt->size = pkt->buf->size; > > +pkt->flags |= AV_PKT_FLAG_TRUSTED; > > + > > +if (vs->is_cfr) > > +pk

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-04-28 Thread James Almer
On 4/28/2018 2:05 PM, wm4 wrote: > This can "demux" .vpy files. > > Some minor code copied from other LGPL parts of FFmpeg. > > I did not found a good way to test a few of the more obscure features, > like VFR nodes, compat pixel formats, or nodes with dynamic size/format > changes. These can be

[FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-04-28 Thread wm4
This can "demux" .vpy files. Some minor code copied from other LGPL parts of FFmpeg. I did not found a good way to test a few of the more obscure features, like VFR nodes, compat pixel formats, or nodes with dynamic size/format changes. These can be easily implemented on demand. --- configure

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-04-28 Thread wm4
On Sat, 28 Apr 2018 11:58:27 -0300 James Almer wrote: > On 4/28/2018 8:51 AM, wm4 wrote: > > On Sat, 28 Apr 2018 11:08:01 +0800 > > Steven Liu wrote: > > > >>> On 28 Apr 2018, at 03:37, wm4 wrote: > >>> > > > >>> + > >>> +if (strncmp(pd->name, "xyz", 3) == 0) > >>> +

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-04-28 Thread James Almer
On 4/28/2018 8:51 AM, wm4 wrote: > On Sat, 28 Apr 2018 11:08:01 +0800 > Steven Liu wrote: > >>> On 28 Apr 2018, at 03:37, wm4 wrote: >>> > >>> + >>> +if (strncmp(pd->name, "xyz", 3) == 0) >>> +continue; >> >> liuqideMacBook-Pro:xxx liuqi$ ../tools/patcheck >> ~/Downloads/

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-04-28 Thread wm4
On Fri, 27 Apr 2018 22:27:47 -0300 James Almer wrote: > On 4/27/2018 4:37 PM, wm4 wrote: > > From: wm4 > > > > require_pkg_config libvapoursynth "vapoursynth-script >= 42" VSScript.h > > vsscript_init || die "ERROR: vapoursynth or vsscript not found"; > > die() is needed only with test_pk

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-04-28 Thread wm4
On Sat, 28 Apr 2018 11:08:01 +0800 Steven Liu wrote: > > On 28 Apr 2018, at 03:37, wm4 wrote: > > > > + > > +if (strncmp(pd->name, "xyz", 3) == 0) > > +continue; > > liuqideMacBook-Pro:xxx liuqi$ ../tools/patcheck > ~/Downloads/FFmpeg-devel-avformat-add-vapoursynth-wrap

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-04-27 Thread Steven Liu
> On 28 Apr 2018, at 03:37, wm4 wrote: > > From: wm4 > > This can "demux" .vpy files. > > Some minor code copied from other LGPL parts of FFmpeg. > > Possibly support VS compat pixel formats. > > TODO: > - check whether VS can change format midstream > - test vfr mode, return proper timest

Re: [FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-04-27 Thread James Almer
On 4/27/2018 4:37 PM, wm4 wrote: > From: wm4 > > This can "demux" .vpy files. > > Some minor code copied from other LGPL parts of FFmpeg. > > Possibly support VS compat pixel formats. > > TODO: > - check whether VS can change format midstream > - test vfr mode, return proper timestamps when us

[FFmpeg-devel] [PATCH] avformat: add vapoursynth wrapper

2018-04-27 Thread wm4
From: wm4 This can "demux" .vpy files. Some minor code copied from other LGPL parts of FFmpeg. Possibly support VS compat pixel formats. TODO: - check whether VS can change format midstream - test vfr mode, return proper timestamps when using it - drop "lib" prefix? --- configure