Re: [FFmpeg-devel] [PATCH] doc/outdevs: Add declink signal generator example

2018-03-15 Thread Mike Goins
On Fri, Mar 9, 2018 at 3:38 PM, Devin Heitmueller
 wrote:
>
>>> +ffmpeg -re -f lavfi -i "testsrc=s=1920x1080:rate=3/1000" -f lavfi -i 
>>> "sine=frequency=1000:sample_rate=48000" +-ac 2 -acodec pcm_s16le 
>>> -pix_fmt uyvy422 -format_code Hi30 -f decklink 'DeckLink Studio 2'
>>
>> You should not need the -re flag, the decklink outdev blocks if it gets too 
>> many frames and because of this the "encoding" speed should be limited to 
>> realtime even without -re. Or you see something different?

If don't use -re I get an average of ~31 fps and speed 1.03x, but with
-re the status stays at 30 fps and 1x.  No idea why the difference.

> Also, isn’t -format_code a capture parameter?  Is it even valid to provide 
> that on output?
>
> I had plans to add support for -format_code for output - if it’s already 
> working then that’s great.

You are right, -format_code does not appear to do anything for the output.


> Devin
> ___
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


[FFmpeg-devel] [PATCH] doc/outdevs: Add declink signal generator example

2018-02-28 Thread Mike Goins
Signed-off-by: Mike Goins 
---
 doc/outdevs.texi | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/doc/outdevs.texi b/doc/outdevs.texi
index daf7b1ae62..1ca81ba139 100644
--- a/doc/outdevs.texi
+++ b/doc/outdevs.texi
@@ -180,6 +180,13 @@ Play video clip with non-standard framerate or video size:
 ffmpeg -i test.avi -f decklink -pix_fmt uyvy422 -s 720x486 -r 24000/1001 
'DeckLink Mini Monitor'
 @end example
 
+@item
+Signal Generator mode:
+@example
+ffmpeg -re -f lavfi -i "testsrc=s=1920x1080:rate=3/1000" -f lavfi -i 
"sine=frequency=1000:sample_rate=48000" 
+-ac 2 -acodec pcm_s16le -pix_fmt uyvy422 -format_code Hi30 -f decklink 
'DeckLink Studio 2'
+@end example
+
 @end itemize
 
 @section libndi_newtek
-- 
2.16.2

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


Re: [FFmpeg-devel] [PATCH] avformat/opensrt: add Haivision Open SRT protocol

2018-03-08 Thread Mike Goins
On Thu, Mar 8, 2018 at 7:55 PM, Michael Niedermayer
 wrote:
>
> On Mon, Mar 05, 2018 at 05:09:04PM +0100, Sven Dueking wrote:
> >
> >
> > > -Ursprüngliche Nachricht-
> > > Von: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] Im Auftrag
> > > von Sven Dueking
> > > Gesendet: Dienstag, 27. Februar 2018 08:27
> > > An: 'FFmpeg development discussions and patches'
> > > Betreff: Re: [FFmpeg-devel] [PATCH] avformat/opensrt: add Haivision
> > > Open SRT protocol
> > >
> > >
> > >
> > > > -Ursprüngliche Nachricht-
> > > > Von: Sven Dueking [mailto:s...@nablet.com]
> > > > Gesendet: Mittwoch, 21. Februar 2018 15:25
> > > > An: 'FFmpeg development discussions and patches'
> > > > Betreff: AW: [FFmpeg-devel] [PATCH] avformat/opensrt: add Haivision
> > > > Open SRT protocol
> > > >
> > > >
> > > >
> > > > > -Ursprüngliche Nachricht-
> > > > > Von: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] Im
> > > > > Auftrag von Michael Niedermayer
> > > > > Gesendet: Mittwoch, 21. Februar 2018 14:35
> > > > > An: FFmpeg development discussions and patches
> > > > > Betreff: Re: [FFmpeg-devel] [PATCH] avformat/opensrt: add Haivision
> > > > > Open SRT protocol
> > > > >
> > > > > On Wed, Feb 21, 2018 at 10:16:48AM +0100, Sven Dueking wrote:
> > > > > > protocol requires libsrt (https://github.com/Haivision/srt) to be
> > > > > > installed
> > > > > >
> > > > > > Signed-off-by: Sven Dueking 
> > > > > > ---
> > > > > >  MAINTAINERS |   1 +
> > > > > >  configure   |   5 +
> > > > > >  doc/protocols.texi  | 134 ++-
> > > > > >  libavformat/Makefile|   1 +
> > > > > >  libavformat/opensrt.c   | 589
> > > > > > 
> > > > > >  libavformat/protocols.c |   1 +
> > > > > >  6 files changed, 730 insertions(+), 1 deletion(-)  create mode
> > > > > > 100644 libavformat/opensrt.c
> > > > > >
> > > > > > diff --git a/MAINTAINERS b/MAINTAINERS index b691bd5..3e0355a
> > > > 100644
> > > > > > --- a/MAINTAINERS
> > > > > > +++ b/MAINTAINERS
> > > > > > @@ -499,6 +499,7 @@ Protocols:
> > > > > >http.cRonald S. Bultje
> > > > > >libssh.c  Lukasz Marek
> > > > > >mms*.cRonald S. Bultje
> > > > > > +  opensrt.c sven Dueking
> > > > > >udp.c Luca Abeni
> > > > > >icecast.c Marvin Scholz
> > > > > >
> > > > > > diff --git a/configure b/configure index 013308c..9a78bae 100755
> > > > > > --- a/configure
> > > > > > +++ b/configure
> > > > > > @@ -294,6 +294,7 @@ External library support:
> > > > > >--enable-opengl  enable OpenGL rendering [no]
> > > > > >--enable-openssl enable openssl, needed for https
> > > > support
> > > > > > if gnutls or libtls is not used [no]
> > > > > > +  --enable-opensrt enable Haivision Open SRT protocol
> > > [no]
> > > > > >--disable-sndio  disable sndio support [autodetect]
> > > > > >--disable-schannel   disable SChannel SSP, needed for TLS
> > > > support
> > > > > on
> > > > > > Windows if openssl and gnutls are not
> > > > > > used [autodetect] @@ -1648,6 +1649,7 @@ EXTERNAL_LIBRARY_LIST="
> > > > > >  mediacodec
> > > > > >  openal
> > > > > >  opengl
> > > > > > +opensrt
> > > > >
> > > > > there is something wrong with newlines this patch is corrupted and
> > > > > cannot be tested or applied
> > > > >
> > > > > [...]
> > > >
> > > > Hi Michael,
> > > >
> > > > Sorry, no idea why this happens. Patch attached.
> > >
> > > Ping ?!
> > >
> > > >
> > > > > --
> > > > > Michael GnuPG fingerprint:
> > > > 9FF2128B147EF6730BADF133611EC787040B0FAB
> > > > >
> > > > > Rewriting code that is poorly written but fully understood is good.
> > > > > Rewriting code that one doesnt understand is a sign that one is
> > > less
> > > > > smart then the original author, trying to rewrite it will not make
> > > > > it
> > > > better.
> > >
> >
> > Any chance to get feedback ?
>
> is anyone working on a review of this patch or intends to review it ?
>
> If not i intend to push it after a light review (i think there are
> other people around who are more qualified to review this than i am)


Just a cursory glance at the moment, I can functionally test tomorrow
(pretty familiar with SRT).

+{ "timeout","set timeout of socket I/O operations",
  OFFSET(rw_timeout),
AV_OPT_TYPE_DURATION, { .i64 = -1 }, -1, INT_MAX,   .flags = D|E },
+{ "listen_timeout", "Connection awaiting timeout",
  OFFSET(listen_timeout),
AV_OPT_TYPE_DURATION, { .i64 = -1 }, -1, INT_MAX,   .flags = D|E },

Is there guidance for option descriptions?  The capitalization is inconsistent.

+{ "mss","the Maximum Transfer Unit",