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

Reply via email to