gpt-3.5-turbo-0613· openai
Suzhen/CodeChat
what command line should I use with ffmpeg to join two files and resize
- User
what command line should I use with ffmpeg to join two files and resize
- Assistant
You can use the following command line with ffmpeg to join two files and resize them:
codeffmpeg -i input1.mp4 -i input2.mp4 -filter_complex "[0:v]scale=640:480[v0];[1:v]scale=640:480[v1];[v0][0:a][v1][1:a]concat=n=2:v=1:a=1[out]" -map "[out]" output.mp4This command uses the
concatfilter_complex to join the video and audio streams of the input files. Thescalefilter is used to resize the video to a resolution of 640x480.Make sure to replace
input1.mp4andinput2.mp4with the actual file names of your input files, andoutput.mp4with the desired output file name.