VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. hi, sorry for my bad English,
    I like to combine 2 or more videos,
    but sometimes a video has a larger dimension,
    for example a 1080p video combine with 720p video,
    I like to make the 720p is stretch to 1080p (the height and the weight),
    but because I like to make it automatic,
    is there any code to do this?
    (you do not need to type the height and the weight every time)


    thank you, have a nice day
    Quote Quote  
  2. Member
    Join Date
    Feb 2006
    Location
    United States
    Search Comp PM
    Originally Posted by kucing View Post
    hi, sorry for my bad English,
    I like to combine 2 or more videos,
    but sometimes a video has a larger dimension,
    for example a 1080p video combine with 720p video,
    I like to make the 720p is stretch to 1080p (the height and the weight),
    but because I like to make it automatic,
    is there any code to do this?
    (you do not need to type the height and the weight every time)


    thank you, have a nice day
    to combine videos, see here - https://stackoverflow.com/questions/7333232/how-to-concatenate-two-mp4-files-using-ffmpeg
    to Resize/Scale/Change Resolution of a Video, see here - https://ottverse.com/change-resolution-resize-scale-video-using-ffmpeg/
    Quote Quote  
  3. @ october262 thank you for the reply,
    can you explain what this code does?

    -filter_complex "[0:v] [0:a] [1:v] [1:a] [2:v] [2:a] \
    concat=n=3:v=1:a=1 [v] [a]" \
    -map "[v]" -map "[a]"

    my biggest problem is what I must to do to stretch lowest dimension video
    Quote Quote  
  4. Member
    Join Date
    Feb 2006
    Location
    United States
    Search Comp PM
    Originally Posted by kucing View Post
    @ october262 thank you for the reply,
    can you explain what this code does?

    -filter_complex "[0:v] [0:a] [1:v] [1:a] [2:v] [2:a] \
    concat=n=3:v=1:a=1 [v] [a]" \
    -map "[v]" -map "[a]"

    my biggest problem is what I must to do to stretch lowest dimension video
    use the scale filter to stretch the video - https://trac.ffmpeg.org/wiki/Scaling
    Quote Quote  
  5. thank you again october262,
    -I can scaling
    -I can concatenating
    my problem is to do both tasks simultaneously,
    can you provide a working command?

    and another task is wise to do 2 step separaty?:
    1. scaling lower resolution video to large video
    2. concatenating large resolution video with the scaled video
    Quote Quote  
  6. Member
    Join Date
    Feb 2006
    Location
    United States
    Search Comp PM
    Originally Posted by kucing View Post
    thank you again october262,
    -I can scaling
    -I can concatenating
    my problem is to do both tasks simultaneously,
    can you provide a working command?

    and another task is wise to do 2 step separaty?:
    1. scaling lower resolution video to large video
    2. concatenating large resolution video with the scaled video
    try the -filter_complex https://programmierfrage.com/items/how-to-run-multiple-ffmpeg-tasks-in-php-shell-exec
    Quote Quote  
  7. i tried multiple times for hours
    -input error,
    -filter error,
    -no error, output file unplayable,
    -no error, output file playable, double video size, only the first video appear
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!