to make a potable example (that anyone can run, without needing your input
files), you can use -producer noise (generates both audio and video noise)
Also skip encoding to an output file and let melt play it:
melt \
colour:black out=100 \
-producer noise out=100 \
-mix 100 -mixer luma -mixer mix:-1 \
colour:black out=100 \
-mix 100 -mixer luma -mixer mix:-1
What's your end goal?
I suggest using https://www.shotcut.org to do what you need. If it is only
one, then hit encode and you are done. If you are doing something
automated, File, Save, foo.mlt, Close shotcut and look at foo.mlt. it's
just xml ;)
fiddle with foo.mlt, "melt foo.mlt" to test.
to encode the results:
melt foo.mlt -consumer avformat:outfile.mp4 acodec=aac vcodec=libx264
On Sun, Jun 12, 2016 at 11:59 AM, Grant Edwards <grant.b.edwa...@gmail.com>
wrote:
> On 2016-06-11, Grant Edwards <grant.b.edwa...@gmail.com> wrote:
>
> > I'm trying to do a simple fade-in (audio and video) at the beginning
> > and fade-out at the end of a video clip. According to numerous
> > examples, I thought this should do it:
> >
> > melt \
> > colour:black out=100 \
> > infile.mp4 \
> > -mix 100 -mixer luma -mixer mix:-1 \
> > colour:black out=100 \
> > -mix 100 -mixer luma -mixer mix:-1 \
> > -consumer avformat:outfile.mp4 acodec=aac vcodec=libx264
> >
> >
> > But the audio dosn't fade in or out. It comes on full volume at the
> > start of the output and stays full volume until the output ends.
>
> The problem appears to be that "colour:black" doesn't have an audio
> track, so "-mixer mix:-1" does nothing. IMO, a more intuitive result
> would be to treat "no audio track" as silence and fade to/from silence.
>
> I ended up creating an acutal mp4 video clip containing black frames
> plus a silent audio track and using that instead of colour:black.
> That works as expected, but it seems like a bit of a kludge.
>
> There's probably a smarter way to do it, but I haven't been able to
> figure out what it is. :/
>
> --
> Grant
>
>
>
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
> _______________________________________________
> Mlt-devel mailing list
> Mlt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mlt-devel
>
--
Carl K
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel