I'm using ffmpeg to create several single splitscreen videos out of 2 separate videos. The 2 videos have audio so I want to extract the 2 video's audio streams as 2 separate mp3s and also create a thumbnail out of the finished splitscreen video. Is it possible to do these 3 actions in one pass?
Here is the code I'd use to create the splitscreen video:
ffmpeg -i input0.mov -i input1.mov -filter_complex "scale=640x360[v0];scale=640x360[v1];[v0][v1] xstack=inputs=2:layout=0_0|w0_0|[v]" -map "[v]" -an output.mp4
Here is the code I'd use to create the thumbnail of the resultant splitscreen video:
ffmpeg -y -i input.mp4 -vframes 1 OUTPUT.jpg
Here is the code I'd use to create one mp3
ffmpeg -i input0.mov output0.mp3