[FFmpeg-devel] question on mosiac video issues -shortest

Kyle Douglas kyle.douglas at verizondigitalmedia.com
Mon May 22 02:36:07 EEST 2017


When using the param -shortest appears to have no impact on my ffmpeg
command using multiple inputs as source. One is a looping slate video that
stops and it seems to stop all other inputs when making a mp4 archive. Any
suggestions on what I can do as using another param or output syntax?

3 examples of syntax i used
 [top][middle][bottom]vstack=inputs=3:shortest=1"\

 [top][middle][bottom]vstack=inputs=3:shortest=0"\

-shortest  videos/output.mp4 -y

# FFMPEG COMMAND TESTING
cmd = """
ffmpeg \
-i '{0}' \
-i '{1}' \
-i '{2}' \
-i '{3}' \
-i '{4}' \
-i '{5}' \
-i '{6}' \
-i '{7}' \
-i '{8}' \
-filter_complex \
"[0:v] setpts=PTS-STARTPTS, scale=320x180[vid1];\
 [1:v] setpts=PTS-STARTPTS, scale=320x180[vid2];\
 [2:v] setpts=PTS-STARTPTS, scale=320x180[vid3];\
 [3:v] setpts=PTS-STARTPTS, scale=320x180[vid4];\
 [4:v] setpts=PTS-STARTPTS, scale=320x180[vid5];\
 [5:v] setpts=PTS-STARTPTS, scale=320x180[vid6];\
 [6:v] setpts=PTS-STARTPTS, scale=320x180[vid7];\
 [7:v] setpts=PTS-STARTPTS, scale=320x180[vid8];\
 [8:v] setpts=PTS-STARTPTS, scale=320x180[vid9];\
 [vid1][vid2][vid3]hstack=inputs=3[top];\
 [vid4][vid5][vid6]hstack=inputs=3[middle];\
 [vid7][vid8][vid9]hstack=inputs=3[bottom];\
 [top][middle][bottom]vstack=inputs=3"\
 videos/output.mp4 -y
""".format(url[0], url[1], url[2], url[3],url[4], url[5], url[6], url[1],
url[2])


-- 
*Kyle Douglas *| Application Support Engineer
Verizon Digital Media Services
*p: +1 310.302.3385 <(310)%3023385>   m: +1 213-269-1089 <(213)%2691089> e:*
 kyle.douglas at verizondigitalmedia.com
13031 W Jefferson Blvd. Building 900, Los Angeles, CA 90094 |
VerizonDigitalMedia.com


More information about the ffmpeg-devel mailing list