Hello I would like to stack two videos side-by-side. Unfortunately videos with variable dimensions makes ffmpeg to process it forever without any CPU usage. Is there any workaround for this problem?
ffmpeg -i recording_6xhrmurOwA9XPfJc0RuoRB.webm -i recording_3MMLYntHfAlATjyofcW8UM.webm -y -filter_complex "[0:v]fps=fps=25[x3];[x3]scale=w=640:h=480:force_original_aspect_ratio=decrease[x4];[x4]pad=w=640:h=480:x=(ow-iw)/2:y=(oh-ih)/2[x5];[1:v]fps=fps=25[x8];[x8]scale=w=640:h=480:force_original_aspect_ratio=decrease[x9];[x9]pad=w=640:h=480:x=(ow-iw)/2:y=(oh-ih)/2[x10];[x5][x10]hstack=inputs=2:shortest=1[vid]" -vcodec libx264 -map [vid] -f mp4 -preset slower -crf 23 out.mp4 Processing only that variable-dimension video without stacking works: ffmpeg -i recording_3MMLYntHfAlATjyofcW8UM.webm -y -filter_complex "[0:v]fps=fps=25[x3];[x3]scale=w=640:h=480:force_original_aspect_ratio=decrease:[x4];[x4]pad=w=640:h=480:x=(ow-iw)/2:y=(oh-ih)/2[vid]" -vcodec libx264 -map [vid] -f mp4 -preset slower -crf 23 out.mp4 I am using ffmpeg version 3.1.4-1 (on Debian). Input files can be found at https://drive.google.com/open?id=0B6M72P2gzYmwbG1fWUJsUGpUZzg Also is there a way to make ffmpeg fail and exit in such conditions - when its CPU usage decreases to zero and processing doesn't stop? Thanks in advance Best regards -- Martin Ždila _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
