I am using FFmpeg to concat videos in my android application.I have followed some of the steps to merge videos of different formats. For mp4 videos, i have to convert all input files to MPEG-2 TS files and then merge all the .ts files to get an output mp4 file.
I have a problem in merging the videos if they are of different resolutions(say one is 640*480 and the other is 1280*720).The output video does not merge properly(sometimes it throws an error in Streams). Is there any way to handle this without losing the quality of videos?
Lets say i am merging two videos one with audio and the other without audio.When i try to merge these two i am getting errors in Audio Streams.Is there any way to handle this also(videos should be merged with or without audio)?
I am facing problems in above two things and spent more time without success. Any idea is greatly appreciated.