[FFmpeg-user] time padding when muxing

Nicolas George nicolas.george at normalesup.org
Wed Aug 22 09:36:45 CEST 2012


Le sextidi 6 fructidor, an CCXX, Robin Gareus a écrit :
> Suppose I have a 1 minute video and a 2 minute audio track.
> 
> I want a muxed version:
>   20 sec black,  the 1 min video, 40 sec black
> along with the 2min audio-track.
> 
> Is this possible using a single command?

With the color video source and the concat video filter, it seems quite
easy:

ffmpeg -i video.mkv -i audio.wav -vf "
color=c=black:s=${SIZ}:d=20 [pre] ;
color=c=black:s=${SIZ}:d=40 [post] ;
[pre] [in] [post] concat=n=3" output.mkv

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20120822/b4d85e99/attachment.asc>


More information about the ffmpeg-user mailing list